<?php if (!defined('ABSPATH')) exit; use pQuery\Html5Parser; use pQuery\HtmlFormatter; function str_get_dom($str, $return_root = true) { $a = new Html5Parser($str); return (($return_root) ? $a->root : $a); } function file_get_dom($file, $return_root = true, $use_include_path = false, $context = null) { if (version_compare(PHP_VERSION, '5.0.0', '>=')) $f = file_get_contents($file, $use_include_path, $context); else { if ($context !== null) trigger_error('Context parameter not supported in this PHP version'); $f = file_get_contents($file, $use_include_path); } return (($f === false) ? false : str_get_dom($f, $return_root)); } function dom_format(&$root, $options = array()) { $formatter = new HtmlFormatter($options); return $formatter->format($root); } if (version_compare(PHP_VERSION, '5.0.0', '<')) { function str_split($string) { $res = array(); $size = strlen($string); for ($i = 0; $i < $size; $i++) { $res[] = $string[$i]; } return $res; } } if (version_compare(PHP_VERSION, '5.2.0', '<')) { function array_fill_keys($keys, $value) { $res = array(); foreach($keys as $k) { $res[$k] = $value; } return $res; } } if (!defined('GANON_NO_INCLUDES')) { define('GANON_NO_INCLUDES', true); include_once('IQuery.php'); include_once('gan_tokenizer.php'); include_once('gan_parser_html.php'); include_once('gan_node_html.php'); include_once('gan_selector_html.php'); include_once('gan_formatter.php'); } ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
third party | Folder | 0700 |
|
|
IQuery.php | File | 751 B | 0644 |
|
gan_formatter.php | File | 9.64 KB | 0644 |
|
gan_node_html.php | File | 36.7 KB | 0644 |
|
gan_parser_html.php | File | 15.59 KB | 0644 |
|
gan_selector_html.php | File | 15.04 KB | 0644 |
|
gan_tokenizer.php | File | 6.86 KB | 0644 |
|
gan_xml2array.php | File | 1.75 KB | 0644 |
|
ganon.php | File | 1.38 KB | 0644 |
|
index.php | File | 0 B | 0644 |
|
pQuery.php | File | 4.19 KB | 0644 |
|