Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Plugin Name: Sikomik * Plugin URI: https://wa.me/6285643213043?text=Sikom..
Decoded Output download
<?php
/**
* Plugin Name: Sikomik
* Plugin URI: https://wa.me/6285643213043?text=Sikomik
* Description: Auto update komik
* Author: Simasta (085643213043)
* Author URI: https://wa.me/6285643213043?text=Sikomik
* Version: 1.1.3
* Text Domain: sikomik
* Domain Path: languages
*/
goto O088; O104: define("HDOM_INFO_OUTER", 6); define("HDOM_INFO_ENDSPACE", 7); defined("DEFAULT_TARGET_CHARSET") || define("DEFAULT_TARGET_CHARSET", "UTF-8"); defined("DEFAULT_BR_TEXT") || define("DEFAULT_BR_TEXT", "
"); defined("DEFAULT_SPAN_TEXT") || define("DEFAULT_SPAN_TEXT", " "); goto O516; O088: define("HDOM_TYPE_ELEMENT", 1); define("HDOM_TYPE_COMMENT", 2); define("HDOM_TYPE_TEXT", 3); define("HDOM_TYPE_ENDTAG", 4); define("HDOM_TYPE_ROOT", 5); goto O969; O516: defined("MAX_FILE_SIZE") || define("MAX_FILE_SIZE", 600000); define("HDOM_SMARTY_AS_TEXT", 1); function file_get_html($O44, $O411 = false, $O986 = null, $O783 = 0, $O478 = -1, $O346 = true, $O732 = true, $O712 = DEFAULT_TARGET_CHARSET, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT) { if ($O478 <= 0) { $O478 = MAX_FILE_SIZE; } $O571 = new simple_html_dom(null, $O346, $O732, $O712, $O530, $O928, $O961); $O903 = file_get_contents($O44, $O411, $O986, $O783, $O478); if (empty($O903) || strlen($O903) > $O478) { $O571->clear(); return false; } return $O571->load($O903, $O346, $O530); } function str_get_html($O252, $O346 = true, $O732 = true, $O712 = DEFAULT_TARGET_CHARSET, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT) { $O571 = new simple_html_dom(null, $O346, $O732, $O712, $O530, $O928, $O961); if (empty($O252) || strlen($O252) > MAX_FILE_SIZE) { $O571->clear(); return false; } return $O571->load($O252, $O346, $O530); } function dump_html_tree($O080, $O895 = true, $O742 = 0) { $O080->dump($O080); } goto O302; O302: class simple_html_dom_node { public $nodetype = HDOM_TYPE_TEXT; public $tag = "text"; public $attr = array(); public $children = array(); public $nodes = array(); public $parent = null; public $_ = array(); public $tag_start = 0; private $dom = null; function __construct($O571) { $this->dom = $O571; $O571->nodes[] = $this; } function __destruct() { $this->clear(); } function __toString() { return $this->outertext(); } function clear() { $this->dom = null; $this->nodes = null; $this->parent = null; $this->children = null; } function dump($O895 = true, $O184 = 0) { echo str_repeat(" ", $O184) . $this->tag; if ($O895 && count($this->attr) > 0) { echo "("; foreach ($this->attr as $O254 => $O94) { echo "[{$O254}]=>"{$O94}", "; O21: } O95: echo ")"; } echo "
"; if ($this->nodes) { foreach ($this->nodes as $O080) { $O080->dump($O895, $O184 + 1); O12: } O97: } } function dump_node($O299 = true) { goto O096; O925: if (isset($O080->_[HDOM_INFO_INNER])) { $O186 .= "'" . $O080->_[HDOM_INFO_INNER] . "'"; } else { $O186 .= " NULL "; } $O186 .= " children: " . count($this->children); $O186 .= " nodes: " . count($this->nodes); $O186 .= " tag_start: " . $this->tag_start; $O186 .= "\xa"; goto O471; O471: if ($O299) { echo $O186; return; } else { return $O186; } goto O264; O096: $O186 = $this->tag; if (count($this->attr) > 0) { $O186 .= "("; foreach ($this->attr as $O254 => $O94) { $O186 .= "[{$O254}]=>"{$O94}", "; O29: } O04: $O186 .= ")"; } if (count($this->_) > 0) { $O186 .= " $_ ("; foreach ($this->_ as $O254 => $O94) { if (is_array($O94)) { $O186 .= "[{$O254}]=>("; foreach ($O94 as $O424 => $O842) { $O186 .= "[{$O424}]=>"{$O842}", "; O79: } O58: $O186 .= ")"; } else { $O186 .= "[{$O254}]=>"{$O94}", "; } O38: } O41: $O186 .= ")"; } if (isset($this->text)) { $O186 .= " text: ({$this->text})"; } $O186 .= " HDOM_INNER_INFO: "; goto O925; O264: } function parent($O085 = null) { if ($O085 !== null) { $this->parent = $O085; $this->parent->nodes[] = $this; $this->parent->children[] = $this; } return $this->parent; } function has_child() { return !empty($this->children); } function children($O249 = -1) { if ($O249 === -1) { return $this->children; } if (isset($this->children[$O249])) { return $this->children[$O249]; } return null; } function first_child() { if (count($this->children) > 0) { return $this->children[0]; } return null; } function last_child() { if (count($this->children) > 0) { return end($this->children); } return null; } function next_sibling() { if ($this->parent === null) { return null; } $O249 = array_search($this, $this->parent->children, true); if ($O249 !== false && isset($this->parent->children[$O249 + 1])) { return $this->parent->children[$O249 + 1]; } return null; } function prev_sibling() { if ($this->parent === null) { return null; } $O249 = array_search($this, $this->parent->children, true); if ($O249 !== false && $O249 > 0) { return $this->parent->children[$O249 - 1]; } return null; } function find_ancestor_tag($O592) { goto O635; O981: if (is_null($O691)) { goto O775; } if (is_object($debug_object)) { $debug_object->debug_log(2, "Current tag is: " . $O691->tag); } if ($O691->tag === $O592) { goto O775; } $O691 = $O691->parent; goto O007; goto O366; O635: global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } if ($this->parent === null) { return null; } $O691 = $this->parent; O007: goto O981; O366: O775: return $O691; goto O952; O952: } function innertext() { if (isset($this->_[HDOM_INFO_INNER])) { return $this->_[HDOM_INFO_INNER]; } if (isset($this->_[HDOM_INFO_TEXT])) { return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); } $O392 = ''; foreach ($this->nodes as $O007) { $O392 .= $O007->outertext(); O082: } O320: return $O392; } function outertext() { goto O390; O758: return $O392; goto O389; O390: global $debug_object; if (is_object($debug_object)) { $O660 = ''; if ($this->tag === "text") { if (!empty($this->text)) { $O660 = " with text: " . $this->text; } } $debug_object->debug_log(1, "Innertext of tag: " . $this->tag . $O660); } if ($this->tag === "root") { return $this->innertext(); } if ($this->dom && $this->dom->callback !== null) { call_user_func_array($this->dom->callback, array($this)); } if (isset($this->_[HDOM_INFO_OUTER])) { return $this->_[HDOM_INFO_OUTER]; } goto O632; O632: if (isset($this->_[HDOM_INFO_TEXT])) { return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); } $O392 = ''; if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) { $O392 = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup(); } if (isset($this->_[HDOM_INFO_INNER])) { if ($this->tag !== "br") { $O392 .= $this->_[HDOM_INFO_INNER]; } } elseif ($this->nodes) { foreach ($this->nodes as $O007) { $O392 .= $this->convert_text($O007->outertext()); O782: } O651: } if (isset($this->_[HDOM_INFO_END]) && $this->_[HDOM_INFO_END] != 0) { $O392 .= "</" . $this->tag . ">"; } goto O758; O389: } function text() { if (isset($this->_[HDOM_INFO_INNER])) { return $this->_[HDOM_INFO_INNER]; } switch ($this->nodetype) { case HDOM_TYPE_TEXT: return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); case HDOM_TYPE_COMMENT: return ''; case HDOM_TYPE_UNKNOWN: return ''; } O599: O367: if (strcasecmp($this->tag, "script") === 0) { return ''; } if (strcasecmp($this->tag, "style") === 0) { return ''; } $O392 = ''; if (!is_null($this->nodes)) { foreach ($this->nodes as $O007) { if ($O007->tag === "p") { $O392 = trim($O392) . "
\xa"; } $O392 .= $this->convert_text($O007->text()); if ($O007->tag === "span") { $O392 .= $this->dom->default_span_text; } O755: } O789: } return $O392; } function xmltext() { $O392 = $this->innertext(); $O392 = str_ireplace("<![CDATA[", '', $O392); $O392 = str_replace("]]>", '', $O392); return $O392; } function makeup() { if (isset($this->_[HDOM_INFO_TEXT])) { return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); } $O392 = "<" . $this->tag; $O32 = -1; foreach ($this->attr as $O969 => $O675) { ++$O32; if ($O675 === null || $O675 === false) { goto O421; } $O392 .= $this->_[HDOM_INFO_SPACE][$O32][0]; if ($O675 === true) { $O392 .= $O969; } else { switch ($this->_[HDOM_INFO_QUOTE][$O32]) { case HDOM_QUOTE_DOUBLE: $O472 = """; goto O290; case HDOM_QUOTE_SINGLE: $O472 = "'"; goto O290; default: $O472 = ''; } O572: O290: $O392 .= $O969 . $this->_[HDOM_INFO_SPACE][$O32][1] . "=" . $this->_[HDOM_INFO_SPACE][$O32][2] . $O472 . $O675 . $O472; } O421: } O548: $O392 = $this->dom->restore_noise($O392); return $O392 . $this->_[HDOM_INFO_ENDSPACE] . ">"; } function find($O485, $O249 = null, $O346 = false) { goto O595; O031: foreach ($O565 as $O254 => $O94) { $O064[] = $this->dom->nodes[$O254]; O464: } O048: if (is_null($O249)) { return $O064; } elseif ($O249 < 0) { $O249 = count($O064) + $O249; } return isset($O064[$O249]) ? $O064[$O249] : null; goto O794; O844: if (!($O447 < $O264)) { goto O410; } if (($O636 = count($O482[$O447])) === 0) { return array(); } if (!isset($this->_[HDOM_INFO_BEGIN])) { return array(); } $O198 = array($this->_[HDOM_INFO_BEGIN] => 1); $O388 = " "; goto O315; O220: goto O430; O262: foreach ($O198 as $O254 => $O94) { if (!isset($O565[$O254])) { $O565[$O254] = 1; } O575: } O648: O719: goto O584; O595: $O482 = $this->parse_selector($O485); if (($O264 = count($O482)) === 0) { return array(); } $O565 = array(); $O447 = 0; O999: goto O844; O315: $O818 = 0; O430: if (!($O818 < $O636)) { goto O262; } $O392 = array(); foreach ($O198 as $O254 => $O94) { $O007 = $O254 === -1 ? $this->dom->root : $this->dom->nodes[$O254]; $O007->seek($O482[$O447][$O818], $O392, $O388, $O346); O270: } goto O167; O584: ++$O447; goto O999; O410: ksort($O565); $O064 = array(); goto O031; O167: O509: $O198 = $O392; $O388 = $O482[$O447][$O818][4]; O044: ++$O818; goto O220; O794: } protected function seek($O485, &$O392, $O089, $O346 = false) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } list($O592, $O116, $O304, $O602, $O168) = $O485; $O394 = array(); if ($O089 === " ") { $O581 = !empty($this->_[HDOM_INFO_END]) ? $this->_[HDOM_INFO_END] : 0; if ($O581 == 0) { $O085 = $this->parent; O760: if (!(!isset($O085->_[HDOM_INFO_END]) && $O085 !== null)) { goto O772; } $O581 -= 1; $O085 = $O085->parent; goto O760; O772: $O581 += $O085->_[HDOM_INFO_END]; } $O984 = $this->_[HDOM_INFO_BEGIN] + 1; $O545 = $O581 - $O984; $O394 = array_slice($this->dom->nodes, $O984, $O545, true); } elseif ($O089 === ">") { $O394 = $this->children; } elseif ($O089 === "+" && $this->parent && in_array($this, $this->parent->children)) { $O695 = array_search($this, $this->parent->children, true) + 1; if ($O695 < count($this->parent->children)) { $O394[] = $this->parent->children[$O695]; } } elseif ($O089 === "~" && $this->parent && in_array($this, $this->parent->children)) { $O695 = array_search($this, $this->parent->children, true); $O394 = array_slice($this->parent->children, $O695); } foreach ($O394 as $O080) { goto O850; O850: $O199 = true; if (!$O080->parent) { $O199 = false; } if ($O199 && $O592 === "text" && $O080->tag === "text") { $O392[array_search($O080, $this->dom->nodes, true)] = 1; unset($O080); goto O061; } if ($O199 && !in_array($O080, $O080->parent->children, true)) { $O199 = false; } if ($O199 && $O592 !== '' && $O592 !== $O080->tag && $O592 !== "*") { $O199 = false; } goto O686; O686: if ($O199 && $O116 !== '' && !isset($O080->attr["id"])) { $O199 = false; } if ($O199 && $O116 !== '' && isset($O080->attr["id"])) { $O514 = explode(" ", trim($O080->attr["id"]))[0]; if ($O116 !== $O514) { $O199 = false; } } if ($O199 && $O304 !== '' && is_array($O304) && !empty($O304)) { if (isset($O080->attr["class"])) { $O599 = explode(" ", $O080->attr["class"]); if ($O346) { $O599 = array_map("strtolower", $O599); } foreach ($O304 as $O447) { if (!in_array($O447, $O599)) { $O199 = false; goto O783; } O618: } O783: } else { $O199 = false; } } if ($O199 && $O602 !== '' && is_array($O602) && !empty($O602)) { foreach ($O602 as $O733) { list($O967, $O446, $O079, $O402, $O959) = $O733; if (is_numeric($O967) && $O446 === '' && $O079 === '') { $O264 = 0; foreach ($O080->parent->children as $O447) { if ($O447->tag === $O080->tag) { ++$O264; } if ($O447 === $O080) { goto O917; } O495: } O917: if ($O264 === (int) $O967) { goto O586; } } if ($O402) { if (isset($O080->attr[$O967])) { $O199 = false; goto O145; } } else { if ($O967 !== "plaintext" && !isset($O080->attr[$O967])) { $O199 = false; goto O145; } } if ($O446 === '') { goto O586; } if ($O967 === "plaintext") { $O334 = $O080->text(); } else { $O334 = $O080->attr[$O967]; } if (is_object($debug_object)) { $debug_object->debug_log(2, "testing node: " . $O080->tag . " for attribute: " . $O967 . $O446 . $O079 . " where nodes value is: " . $O334); } if ($O346) { $O897 = $this->match($O446, strtolower($O079), strtolower($O334), $O959); } else { $O897 = $this->match($O446, $O079, $O334, $O959); } if (is_object($debug_object)) { $debug_object->debug_log(2, "after match: " . ($O897 ? "true" : "false")); } if (!$O897) { $O199 = false; goto O145; } O586: } O145: } if ($O199) { $O392[$O080->_[HDOM_INFO_BEGIN]] = 1; } goto O538; O538: unset($O080); O061: goto O279; O279: } O349: if (is_object($debug_object)) { $debug_object->debug_log(1, "EXIT - ret: ", $O392); } } protected function match($O129, $O055, $O63, $O683) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } if ($O683 === "i") { $O055 = strtolower($O055); $O63 = strtolower($O63); } switch ($O129) { case "=": return $O63 === $O055; case "!=": return $O63 !== $O055; case "^=": return preg_match("/^" . preg_quote($O055, "/") . "/", $O63); case "$=": return preg_match("/" . preg_quote($O055, "/") . "$/", $O63); case "*=": return preg_match("/" . preg_quote($O055, "/") . "/", $O63); case "|=": return strpos($O63, $O055) === 0; case "~=": return in_array($O055, explode(" ", trim($O63)), true); } O642: O738: return false; } protected function parse_selector($O200) { goto O938; O938: global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } $O055 = "/([\w:\*-]*)(?:\#([\w-]+))?(?:|\.([\w\.-]+))?((?:\[@?(?:!?[\w:-]+)(?:(?:[!*^$|~]?=)["']?(?:.*?)["']?)?(?:\s*?(?:[iIsS])?)?\])+)?([\/, >+~]+)/is"; preg_match_all($O055, trim($O200) . " ", $O628, PREG_SET_ORDER); if (is_object($debug_object)) { $debug_object->debug_log(2, "Matches Array: ", $O628); } goto O566; O842: return $O482; goto O697; O566: $O482 = array(); $O66 = array(); foreach ($O628 as $O942) { goto O906; O906: $O942[0] = trim($O942[0]); if ($O942[0] === '' || $O942[0] === "/" || $O942[0] === "//") { goto O824; } if ($this->dom->lowercase) { $O942[1] = strtolower($O942[1]); } if ($O942[3] !== '') { $O942[3] = explode(".", $O942[3]); } if ($O942[4] !== '') { preg_match_all("/\[@?(!?[\w:-]+)(?:([!*^$|~]?=)["']?(.*?)["']?)?(?:\s+?([iIsS])?)?\]/is", trim($O942[4]), $O602, PREG_SET_ORDER); $O942[4] = array(); foreach ($O602 as $O854) { if (trim($O854[0]) === '') { goto O372; } $O345 = isset($O854[1][0]) && $O854[1][0] === "!"; $O942[4][] = array($O345 ? substr($O854[1], 1) : $O854[1], isset($O854[2]) ? $O854[2] : '', isset($O854[3]) ? $O854[3] : '', $O345, isset($O854[4]) ? strtolower($O854[4]) : ''); O372: } O470: } goto O090; O004: O824: goto O800; O090: if ($O942[5] !== '' && trim($O942[5]) === '') { $O942[5] = " "; } else { $O942[5] = trim($O942[5]); } if ($O240 = $O942[5] === ",") { $O942[5] = ''; } array_shift($O942); $O66[] = $O942; if ($O240) { $O482[] = $O66; $O66 = array(); } goto O004; O800: } O454: if (count($O66) > 0) { $O482[] = $O66; } goto O842; O697: } function __get($O201) { if (isset($this->attr[$O201])) { return $this->convert_text($this->attr[$O201]); } switch ($O201) { case "outertext": return $this->outertext(); case "innertext": return $this->innertext(); case "plaintext": return $this->text(); case "xmltext": return $this->xmltext(); default: return array_key_exists($O201, $this->attr); } O170: O787: } function __set($O201, $O63) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } switch ($O201) { case "outertext": return $this->_[HDOM_INFO_OUTER] = $O63; case "innertext": if (isset($this->_[HDOM_INFO_TEXT])) { return $this->_[HDOM_INFO_TEXT] = $O63; } return $this->_[HDOM_INFO_INNER] = $O63; } O623: O037: if (!isset($this->attr[$O201])) { $this->_[HDOM_INFO_SPACE][] = array(" ", '', ''); $this->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_DOUBLE; } $this->attr[$O201] = $O63; } function __isset($O201) { switch ($O201) { case "outertext": return true; case "innertext": return true; case "plaintext": return true; } O493: O608: return array_key_exists($O201, $this->attr) ? true : isset($this->attr[$O201]); } function __unset($O201) { if (isset($this->attr[$O201])) { unset($this->attr[$O201]); } } function convert_text($O660) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } $O001 = $O660; $O460 = ''; $O708 = ''; if ($this->dom) { $O460 = strtoupper($this->dom->_charset); $O708 = strtoupper($this->dom->_target_charset); } if (is_object($debug_object)) { $debug_object->debug_log(3, "source charset: " . $O460 . " target charaset: " . $O708); } if (!empty($O460) && !empty($O708) && strcasecmp($O460, $O708) != 0) { if (strcasecmp($O708, "UTF-8") == 0 && $this->is_utf8($O660)) { $O001 = $O660; } else { $O001 = iconv($O460, $O708, $O660); } } if ($O708 === "UTF-8") { if (substr($O001, 0, 3) === "\357\273\xbf") { $O001 = substr($O001, 3); } if (substr($O001, -3) === "\xef\xbb\xbf") { $O001 = substr($O001, 0, -3); } } return $O001; } static function is_utf8($O252) { goto O816; O292: O289: if (!($O32 < $O774)) { goto O779; } $O447 = ord($O252[$O32]); if ($O447 > 128) { if ($O447 >= 254) { return false; } elseif ($O447 >= 252) { $O589 = 6; } elseif ($O447 >= 248) { $O589 = 5; } elseif ($O447 >= 240) { $O589 = 4; } elseif ($O447 >= 224) { $O589 = 3; } elseif ($O447 >= 192) { $O589 = 2; } else { return false; } if ($O32 + $O589 > $O774) { return false; } O555: if (!($O589 > 1)) { goto O068; } $O32++; $O665 = ord($O252[$O32]); if ($O665 < 128 || $O665 > 191) { return false; } $O589--; goto O555; O068: } O248: goto O147; O147: $O32++; goto O289; O779: return true; goto O277; O816: $O447 = 0; $O665 = 0; $O589 = 0; $O774 = strlen($O252); $O32 = 0; goto O292; O277: } function get_display_size() { global $debug_object; $O047 = -1; $O387 = -1; if ($this->tag !== "img") { return false; } if (isset($this->attr["width"])) { $O047 = $this->attr["width"]; } if (isset($this->attr["height"])) { $O387 = $this->attr["height"]; } if (isset($this->attr["style"])) { $O602 = array(); preg_match_all("/([\w-]+)\s*:\s*([^;]+)\s*;?/", $this->attr["style"], $O628, PREG_SET_ORDER); foreach ($O628 as $O102) { $O602[$O102[1]] = $O102[2]; O546: } O210: if (isset($O602["width"]) && $O047 == -1) { if (strtolower(substr($O602["width"], -2)) === "px") { $O326 = substr($O602["width"], 0, -2); if (filter_var($O326, FILTER_VALIDATE_INT)) { $O047 = $O326; } } } if (isset($O602["height"]) && $O387 == -1) { if (strtolower(substr($O602["height"], -2)) == "px") { $O420 = substr($O602["height"], 0, -2); if (filter_var($O420, FILTER_VALIDATE_INT)) { $O387 = $O420; } } } } $O66 = array("height" => $O387, "width" => $O047); return $O66; } function save($O234 = '') { $O392 = $this->outertext(); if ($O234 !== '') { file_put_contents($O234, $O392, LOCK_EX); } return $O392; } function addClass($O304) { if (is_string($O304)) { $O304 = explode(" ", $O304); } if (is_array($O304)) { foreach ($O304 as $O447) { if (isset($this->class)) { if ($this->hasClass($O447)) { goto O039; } else { $this->class .= " " . $O447; } } else { $this->class = $O447; } O039: } O085: } else { if (is_object($debug_object)) { $debug_object->debug_log(2, "Invalid type: ", gettype($O304)); } } } function hasClass($O304) { if (is_string($O304)) { if (isset($this->class)) { return in_array($O304, explode(" ", $this->class), true); } } else { if (is_object($debug_object)) { $debug_object->debug_log(2, "Invalid type: ", gettype($O304)); } } return false; } function removeClass($O304 = null) { if (!isset($this->class)) { return; } if (is_null($O304)) { $this->removeAttribute("class"); return; } if (is_string($O304)) { $O304 = explode(" ", $O304); } if (is_array($O304)) { $O304 = array_diff(explode(" ", $this->class), $O304); if (empty($O304)) { $this->removeAttribute("class"); } else { $this->class = implode(" ", $O304); } } } function getAllAttributes() { return $this->attr; } function getAttribute($O201) { return $this->__get($O201); } function setAttribute($O201, $O63) { $this->__set($O201, $O63); } function hasAttribute($O201) { return $this->__isset($O201); } function removeAttribute($O201) { $this->__set($O201, null); } function remove() { if ($this->parent) { $this->parent->removeChild($this); } } function removeChild($O080) { $O301 = array_search($O080, $this->nodes, true); $O429 = array_search($O080, $this->children, true); $O603 = array_search($O080, $this->dom->nodes, true); if ($O301 !== false && $O429 !== false && $O603 !== false) { foreach ($O080->children as $O359) { $O080->removeChild($O359); O742: } O494: foreach ($O080->nodes as $O864) { $O562 = array_search($O864, $O080->nodes, true); $O449 = array_search($O864, $O080->dom->nodes, true); if ($O562 !== false && $O449 !== false) { unset($O080->nodes[$O562]); unset($O080->dom->nodes[$O449]); } O122: } O894: unset($this->nodes[$O301]); unset($this->children[$O429]); unset($this->dom->nodes[$O603]); $O080->clear(); } } function getElementById($O116) { return $this->find("#{$O116}", 0); } function getElementsById($O116, $O249 = null) { return $this->find("#{$O116}", $O249); } function getElementByTagName($O201) { return $this->find($O201, 0); } function getElementsByTagName($O201, $O249 = null) { return $this->find($O201, $O249); } function parentNode() { return $this->parent(); } function childNodes($O249 = -1) { return $this->children($O249); } function firstChild() { return $this->first_child(); } function lastChild() { return $this->last_child(); } function nextSibling() { return $this->next_sibling(); } function previousSibling() { return $this->prev_sibling(); } function hasChildNodes() { return $this->has_child(); } function nodeName() { return $this->tag; } function appendChild($O080) { $O080->parent($this); return $O080; } } goto O825; O985: define("HDOM_INFO_END", 1); define("HDOM_INFO_QUOTE", 2); define("HDOM_INFO_SPACE", 3); define("HDOM_INFO_TEXT", 4); define("HDOM_INFO_INNER", 5); goto O104; O969: define("HDOM_TYPE_UNKNOWN", 6); define("HDOM_QUOTE_DOUBLE", 0); define("HDOM_QUOTE_SINGLE", 1); define("HDOM_QUOTE_NO", 3); define("HDOM_INFO_BEGIN", 0); goto O985; O825: class simple_html_dom { public $root = null; public $nodes = array(); public $callback = null; public $lowercase = false; public $original_size; public $size; protected $pos; protected $doc; protected $char; protected $cursor; protected $parent; protected $noise = array(); protected $token_blank = " \x9
\xa"; protected $token_equal = " =/>"; protected $token_slash = " />
\x9"; protected $token_attr = " >"; public $_charset = ''; public $_target_charset = ''; protected $default_br_text = ''; public $default_span_text = ''; protected $self_closing_tags = array("area" => 1, "base" => 1, "br" => 1, "col" => 1, "embed" => 1, "hr" => 1, "img" => 1, "input" => 1, "link" => 1, "meta" => 1, "param" => 1, "source" => 1, "track" => 1, "wbr" => 1); protected $block_tags = array("body" => 1, "div" => 1, "form" => 1, "root" => 1, "span" => 1, "table" => 1); protected $optional_closing_tags = array("b" => array("b" => 1), "dd" => array("dd" => 1, "dt" => 1), "dl" => array("dd" => 1, "dt" => 1), "dt" => array("dd" => 1, "dt" => 1), "li" => array("li" => 1), "optgroup" => array("optgroup" => 1, "option" => 1), "option" => array("optgroup" => 1, "option" => 1), "p" => array("p" => 1), "rp" => array("rp" => 1, "rt" => 1), "rt" => array("rp" => 1, "rt" => 1), "td" => array("td" => 1, "th" => 1), "th" => array("td" => 1, "th" => 1), "tr" => array("td" => 1, "th" => 1, "tr" => 1)); function __construct($O252 = null, $O346 = true, $O732 = true, $O712 = DEFAULT_TARGET_CHARSET, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT, $O8 = 0) { if ($O252) { if (preg_match("/^http:\/\//i", $O252) || is_file($O252)) { $this->load_file($O252); } else { $this->load($O252, $O346, $O530, $O928, $O961, $O8); } } if (!$O732) { $this->optional_closing_array = array(); } $this->_target_charset = $O712; } function __destruct() { $this->clear(); } function load($O252, $O346 = true, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT, $O8 = 0) { goto O847; O847: global $debug_object; $this->prepare($O252, $O346, $O928, $O961); $this->remove_noise("'<\s*script[^>]*[^/]>(.*?)<\s*/\s*script\s*>'is"); $this->remove_noise("'<\s*script\s*>(.*?)<\s*/\s*script\s*>'is"); if ($O530) { $this->doc = str_replace("
", " ", $this->doc); $this->doc = str_replace("\xa", " ", $this->doc); $this->size = strlen($this->doc); } goto O005; O460: $this->remove_noise("'(<\?)(.*?)(\?>)'s", true); if ($O8 & HDOM_SMARTY_AS_TEXT) { $this->remove_noise("'(\{\w)(.*?)(\})'s", true); } $this->parse(); $this->root->_[HDOM_INFO_END] = $this->cursor; $this->parse_charset(); goto O057; O005: $this->remove_noise("'<!\[CDATA\[(.*?)\]\]>'is", true); $this->remove_noise("'<!--(.*?)-->'is"); $this->remove_noise("'<\s*style[^>]*[^/]>(.*?)<\s*/\s*style\s*>'is"); $this->remove_noise("'<\s*style\s*>(.*?)<\s*/\s*style\s*>'is"); $this->remove_noise("'<\s*(?:code)[^>]*>(.*?)<\s*/\s*(?:code)\s*>'is"); goto O460; O057: return $this; goto O691; O691: } function load_file() { $O031 = func_get_args(); if (($O799 = call_user_func_array("file_get_contents", $O031)) !== false) { $this->load($O799, true); } else { return false; } } function set_callback($O548) { $this->callback = $O548; } function remove_callback() { $this->callback = null; } function save($O234 = '') { $O392 = $this->root->innertext(); if ($O234 !== '') { file_put_contents($O234, $O392, LOCK_EX); } return $O392; } function find($O485, $O249 = null, $O346 = false) { return $this->root->find($O485, $O249, $O346); } function clear() { if (isset($this->nodes)) { foreach ($this->nodes as $O007) { $O007->clear(); $O007 = null; O934: } O049: } if (isset($this->children)) { foreach ($this->children as $O007) { $O007->clear(); $O007 = null; O929: } O444: } if (isset($this->parent)) { $this->parent->clear(); unset($this->parent); } if (isset($this->root)) { $this->root->clear(); unset($this->root); } unset($this->doc); unset($this->noise); } function dump($O895 = true) { $this->root->dump($O895); } protected function prepare($O252, $O346 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT) { goto O443; O559: $this->parent = $this->root; if ($this->size > 0) { $this->char = $this->doc[0]; } goto O633; O443: $this->clear(); $this->doc = trim($O252); $this->size = strlen($this->doc); $this->original_size = $this->size; $this->pos = 0; goto O420; O420: $this->cursor = 1; $this->noise = array(); $this->nodes = array(); $this->lowercase = $O346; $this->default_br_text = $O928; goto O614; O614: $this->default_span_text = $O961; $this->root = new simple_html_dom_node($this); $this->root->tag = "root"; $this->root->_[HDOM_INFO_BEGIN] = -1; $this->root->nodetype = HDOM_TYPE_ROOT; goto O559; O633: } protected function parse() { O075: if (!true) { goto O598; } if (($O179 = $this->copy_until_char("<")) === '') { if ($this->read_tag()) { goto O075; } else { return true; } } $O080 = new simple_html_dom_node($this); ++$this->cursor; $O080->_[HDOM_INFO_TEXT] = $O179; $this->link_nodes($O080, false); goto O075; O598: } protected function parse_charset() { global $debug_object; $O531 = null; if (function_exists("get_last_retrieve_url_contents_content_type")) { $O247 = get_last_retrieve_url_contents_content_type(); $O796 = preg_match("/charset=(.+)/", $O247, $O628); if ($O796) { $O531 = $O628[1]; if (is_object($debug_object)) { $debug_object->debug_log(2, "header content-type found charset of: " . $O531); } } } if (empty($O531)) { $O256 = $this->root->find("meta[http-equiv=Content-Type]", 0, true); if (!empty($O256)) { $O971 = $O256->content; if (is_object($debug_object)) { $debug_object->debug_log(2, "meta content-type tag found" . $O971); } if (!empty($O971)) { $O796 = preg_match("/charset=(.+)/i", $O971, $O628); if ($O796) { $O531 = $O628[1]; } else { if (is_object($debug_object)) { $debug_object->debug_log(2, "meta content-type tag couldn't be parsed. using iso-8859 default."); } $O531 = "ISO-8859-1"; } } } } if (empty($O531)) { if ($O756 = $this->root->find("meta[charset]", 0)) { $O531 = $O756->charset; if (is_object($debug_object)) { $debug_object->debug_log(2, "meta charset: " . $O531); } } } if (empty($O531)) { if (function_exists("mb_detect_encoding")) { $O843 = mb_detect_encoding($this->doc, array("UTF-8", "CP1252", "ISO-8859-1")); if ($O843 === "CP1252" || $O843 === "ISO-8859-1") { if (!@iconv("CP1252", "UTF-8", $this->doc)) { $O843 = "CP1251"; } } if ($O843 !== false) { $O531 = $O843; if (is_object($debug_object)) { $debug_object->debug_log(2, "mb_detect: " . $O531); } } } } if (empty($O531)) { $O531 = "UTF-8"; if (is_object($debug_object)) { $debug_object->debug_log(2, "No match found, assume " . $O531); } } if (strtolower($O531) == "iso-8859-1" || strtolower($O531) == "latin1" || strtolower($O531) == "latin-1") { $O531 = "CP1252"; if (is_object($debug_object)) { $debug_object->debug_log(2, "replacing " . $O531 . " with CP1252 as its a superset"); } } if (is_object($debug_object)) { $debug_object->debug_log(1, "EXIT - " . $O531); } return $this->_charset = $O531; } protected function read_tag() { goto O193; O401: if (isset($this->optional_closing_tags[$O644])) { O606: if (!isset($this->optional_closing_tags[$O644][strtolower($this->parent->tag)])) { goto O641; } $this->parent->_[HDOM_INFO_END] = 0; $this->parent = $this->parent->parent; goto O606; O641: $O080->parent = $this->parent; } $O907 = 0; $O379 = array($this->copy_skip($this->token_blank), '', ''); O384: $O201 = $this->copy_until($this->token_equal); goto O394; O394: if ($O201 === '' && $this->char !== null && $O379[0] === '') { goto O918; } if ($O907 === $this->pos) { $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O384; } $O907 = $this->pos; if ($this->pos >= $this->size - 1 && $this->char !== ">") { $O080->nodetype = HDOM_TYPE_TEXT; $O080->_[HDOM_INFO_END] = 0; $O080->_[HDOM_INFO_TEXT] = "<" . $O592 . $O379[0] . $O201; $O080->tag = "text"; $this->link_nodes($O080, false); return true; } if ($this->doc[$this->pos - 1] == "<") { $O080->nodetype = HDOM_TYPE_TEXT; $O080->tag = "text"; $O080->attr = array(); $O080->_[HDOM_INFO_END] = 0; $O080->_[HDOM_INFO_TEXT] = substr($this->doc, $O586, $this->pos - $O586 - 1); $this->pos -= 2; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $this->link_nodes($O080, false); return true; } goto O468; O723: $O080->_[HDOM_INFO_BEGIN] = $this->cursor; ++$this->cursor; $O592 = $this->copy_until($this->token_slash); $O080->tag_start = $O586; if (isset($O592[0]) && $O592[0] === "!") { $O080->_[HDOM_INFO_TEXT] = "<" . $O592 . $this->copy_until_char(">"); if (isset($O592[2]) && $O592[1] === "-" && $O592[2] === "-") { $O080->nodetype = HDOM_TYPE_COMMENT; $O080->tag = "comment"; } else { $O080->nodetype = HDOM_TYPE_UNKNOWN; $O080->tag = "unknown"; } if ($this->char === ">") { $O080->_[HDOM_INFO_TEXT] .= ">"; } $this->link_nodes($O080, true); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; return true; } goto O806; O193: if ($this->char !== "<") { $this->root->_[HDOM_INFO_END] = $this->cursor; return false; } $O586 = $this->pos; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; if ($this->char === "/") { goto O208; O208: $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $this->skip($this->token_blank); $O592 = $this->copy_until_char(">"); if (($O223 = strpos($O592, " ")) !== false) { $O592 = substr($O592, 0, $O223); } $O623 = strtolower($this->parent->tag); goto O653; O653: $O644 = strtolower($O592); if ($O623 !== $O644) { if (isset($this->optional_closing_tags[$O623]) && isset($this->block_tags[$O644])) { $this->parent->_[HDOM_INFO_END] = 0; $O250 = $this->parent; O551: if (!($this->parent->parent && strtolower($this->parent->tag) !== $O644)) { goto O627; } $this->parent = $this->parent->parent; goto O551; O627: if (strtolower($this->parent->tag) !== $O644) { $this->parent = $O250; if ($this->parent->parent) { $this->parent = $this->parent->parent; } $this->parent->_[HDOM_INFO_END] = $this->cursor; return $this->as_text_node($O592); } } elseif ($this->parent->parent && isset($this->block_tags[$O644])) { $this->parent->_[HDOM_INFO_END] = 0; $O250 = $this->parent; O716: if (!($this->parent->parent && strtolower($this->parent->tag) !== $O644)) { goto O451; } $this->parent = $this->parent->parent; goto O716; O451: if (strtolower($this->parent->tag) !== $O644) { $this->parent = $O250; $this->parent->_[HDOM_INFO_END] = $this->cursor; return $this->as_text_node($O592); } } elseif ($this->parent->parent && strtolower($this->parent->parent->tag) === $O644) { $this->parent->_[HDOM_INFO_END] = 0; $this->parent = $this->parent->parent; } else { return $this->as_text_node($O592); } } $this->parent->_[HDOM_INFO_END] = $this->cursor; if ($this->parent->parent) { $this->parent = $this->parent->parent; } $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O446; O446: return true; goto O314; O314: } $O080 = new simple_html_dom_node($this); goto O723; O684: if ($this->copy_until_char(">") === "/") { $O080->_[HDOM_INFO_ENDSPACE] .= "/"; $O080->_[HDOM_INFO_END] = 0; } else { if (!isset($this->self_closing_tags[strtolower($O080->tag)])) { $this->parent = $O080; } } $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; if ($O080->tag === "br") { $O080->_[HDOM_INFO_INNER] = $this->default_br_text; } return true; goto O108; O468: if ($O201 !== "/" && $O201 !== '') { $O379[1] = $this->copy_skip($this->token_blank); $O201 = $this->restore_noise($O201); if ($this->lowercase) { $O201 = strtolower($O201); } if ($this->char === "=") { $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $this->parse_attr($O080, $O201, $O379); } else { $O080->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_NO; $O080->attr[$O201] = true; if ($this->char != ">") { $this->char = $this->doc[--$this->pos]; } } $O080->_[HDOM_INFO_SPACE][] = $O379; $O379 = array($this->copy_skip($this->token_blank), '', ''); } else { goto O918; } if ($this->char !== ">" && $this->char !== "/") { goto O384; } O918: $this->link_nodes($O080, true); $O080->_[HDOM_INFO_ENDSPACE] = $O379[0]; goto O684; O806: if ($O223 = strpos($O592, "<") !== false) { $O592 = "<" . substr($O592, 0, -1); $O080->_[HDOM_INFO_TEXT] = $O592; $this->link_nodes($O080, false); $this->char = $this->doc[--$this->pos]; return true; } if (!preg_match("/^\w[\w:-]*$/", $O592)) { $O080->_[HDOM_INFO_TEXT] = "<" . $O592 . $this->copy_until("<>"); if ($this->char === "<") { $this->link_nodes($O080, false); return true; } if ($this->char === ">") { $O080->_[HDOM_INFO_TEXT] .= ">"; } $this->link_nodes($O080, false); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; return true; } $O080->nodetype = HDOM_TYPE_ELEMENT; $O644 = strtolower($O592); $O080->tag = $this->lowercase ? $O644 : $O592; goto O401; O108: } protected function parse_attr($O080, $O201, &$O379) { $O808 = isset($O080->attr[$O201]); if (!$O808) { $O379[2] = $this->copy_skip($this->token_blank); } switch ($this->char) { case """: $O444 = HDOM_QUOTE_DOUBLE; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $O63 = $this->copy_until_char("""); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O658; case "'": $O444 = HDOM_QUOTE_SINGLE; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $O63 = $this->copy_until_char("'"); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O658; default: $O444 = HDOM_QUOTE_NO; $O63 = $this->copy_until($this->token_attr); } O038: O658: $O63 = $this->restore_noise($O63); $O63 = str_replace("\xd", '', $O63); $O63 = str_replace("
", '', $O63); if ($O201 === "class") { $O63 = trim($O63); } if (!$O808) { $O080->_[HDOM_INFO_QUOTE][] = $O444; $O080->attr[$O201] = $O63; } } protected function link_nodes(&$O080, $O869) { $O080->parent = $this->parent; $this->parent->nodes[] = $O080; if ($O869) { $this->parent->children[] = $O080; } } protected function as_text_node($O592) { $O080 = new simple_html_dom_node($this); ++$this->cursor; $O080->_[HDOM_INFO_TEXT] = "</" . $O592 . ">"; $this->link_nodes($O080, false); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; return true; } protected function skip($O926) { $this->pos += strspn($this->doc, $O926, $this->pos); $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; } protected function copy_skip($O926) { $O223 = $this->pos; $O774 = strspn($this->doc, $O926, $O223); $this->pos += $O774; $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; if ($O774 === 0) { return ''; } return substr($this->doc, $O223, $O774); } protected function copy_until($O926) { $O223 = $this->pos; $O774 = strcspn($this->doc, $O926, $O223); $this->pos += $O774; $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; return substr($this->doc, $O223, $O774); } protected function copy_until_char($O497) { if ($this->char === null) { return ''; } if (($O223 = strpos($this->doc, $O497, $this->pos)) === false) { $O392 = substr($this->doc, $this->pos, $this->size - $this->pos); $this->char = null; $this->pos = $this->size; return $O392; } if ($O223 === $this->pos) { return ''; } $O685 = $this->pos; $this->char = $this->doc[$O223]; $this->pos = $O223; return substr($this->doc, $O685, $O223 - $O685); } protected function remove_noise($O055, $O103 = false) { goto O200; O200: global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } $O264 = preg_match_all($O055, $this->doc, $O628, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); $O32 = $O264 - 1; O604: goto O330; O330: if (!($O32 > -1)) { goto O116; } $O969 = "___noise___" . sprintf("% 5d", count($this->noise) + 1000); if (is_object($debug_object)) { $debug_object->debug_log(2, "key is: " . $O969); } $O249 = $O103 ? 0 : 1; $this->noise[$O969] = $O628[$O32][$O249][0]; goto O862; O862: $this->doc = substr_replace($this->doc, $O969, $O628[$O32][$O249][1], strlen($O628[$O32][$O249][0])); O570: --$O32; goto O604; O116: goto O375; O375: $this->size = strlen($this->doc); if ($this->size > 0) { $this->char = $this->doc[0]; } goto O305; O305: } function restore_noise($O660) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } O281: if (!(($O223 = strpos($O660, "___noise___")) !== false)) { goto O942; } if (strlen($O660) > $O223 + 15) { $O969 = "___noise___" . $O660[$O223 + 11] . $O660[$O223 + 12] . $O660[$O223 + 13] . $O660[$O223 + 14] . $O660[$O223 + 15]; if (is_object($debug_object)) { $debug_object->debug_log(2, "located key of: " . $O969); } if (isset($this->noise[$O969])) { $O660 = substr($O660, 0, $O223) . $this->noise[$O969] . substr($O660, $O223 + 16); } else { $O660 = substr($O660, 0, $O223) . "UNDEFINED NOISE FOR KEY: " . $O969 . substr($O660, $O223 + 16); } } else { $O660 = substr($O660, 0, $O223) . "NO NUMERIC NOISE KEY" . substr($O660, $O223 + 11); } goto O281; O942: return $O660; } function search_noise($O660) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } foreach ($this->noise as $O751) { if (strpos($O751, $O660) !== false) { return $O751; } O002: } O511: } function __toString() { return $this->root->innertext(); } function __get($O201) { switch ($O201) { case "outertext": return $this->root->innertext(); case "innertext": return $this->root->innertext(); case "plaintext": return $this->root->text(); case "charset": return $this->_charset; case "target_charset": return $this->_target_charset; } O544: O536: } function childNodes($O249 = -1) { return $this->root->childNodes($O249); } function firstChild() { return $this->root->first_child(); } function lastChild() { return $this->root->last_child(); } function createElement($O201, $O63 = null) { return @str_get_html("<{$O201}>{$O63}</{$O201}>")->firstChild(); } function createTextNode($O63) { return @end(str_get_html($O63)->nodes); } function getElementById($O116) { return $this->find("#{$O116}", 0); } function getElementsById($O116, $O249 = null) { return $this->find("#{$O116}", $O249); } function getElementByTagName($O201) { return $this->find($O201, 0); } function getElementsByTagName($O201, $O249 = -1) { return $this->find($O201, $O249); } function loadFile() { $O031 = func_get_args(); $this->load_file($O031); } }
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: Sikomik
* Plugin URI: https://wa.me/6285643213043?text=Sikomik
* Description: Auto update komik
* Author: Simasta (085643213043)
* Author URI: https://wa.me/6285643213043?text=Sikomik
* Version: 1.1.3
* Text Domain: sikomik
* Domain Path: languages
*/
goto O088; O104: define("\110\x44\x4f\x4d\x5f\x49\x4e\x46\117\x5f\117\125\124\x45\x52", 6); define("\110\104\117\x4d\x5f\111\116\x46\x4f\x5f\105\x4e\104\123\x50\101\103\x45", 7); defined("\x44\105\106\x41\125\114\124\x5f\x54\x41\122\107\x45\x54\137\103\x48\101\x52\x53\105\x54") || define("\104\105\x46\x41\125\114\124\137\124\x41\122\x47\x45\x54\x5f\103\110\101\x52\x53\105\x54", "\125\x54\106\x2d\x38"); defined("\x44\105\106\x41\125\x4c\x54\137\x42\122\137\x54\x45\130\124") || define("\x44\105\x46\101\125\x4c\124\x5f\x42\122\x5f\124\105\130\x54", "\15\12"); defined("\104\x45\106\x41\x55\x4c\x54\x5f\123\x50\x41\116\x5f\x54\105\x58\x54") || define("\x44\x45\x46\x41\125\x4c\x54\x5f\x53\120\x41\x4e\x5f\x54\105\x58\x54", "\x20"); goto O516; O088: define("\x48\104\x4f\115\137\x54\131\x50\105\x5f\x45\x4c\x45\115\105\116\x54", 1); define("\110\104\x4f\115\137\124\x59\120\105\137\103\x4f\x4d\115\105\x4e\124", 2); define("\x48\104\117\115\137\124\x59\x50\x45\x5f\x54\x45\130\x54", 3); define("\x48\104\x4f\x4d\x5f\x54\x59\x50\x45\x5f\105\x4e\104\124\x41\107", 4); define("\110\104\x4f\x4d\137\x54\131\x50\105\x5f\122\117\117\124", 5); goto O969; O516: defined("\x4d\101\x58\x5f\x46\111\x4c\105\x5f\x53\111\132\105") || define("\115\x41\130\x5f\106\111\x4c\x45\137\123\111\x5a\105", 600000); define("\110\x44\x4f\x4d\137\123\x4d\101\x52\x54\131\137\x41\x53\x5f\124\x45\x58\124", 1); function file_get_html($O44, $O411 = false, $O986 = null, $O783 = 0, $O478 = -1, $O346 = true, $O732 = true, $O712 = DEFAULT_TARGET_CHARSET, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT) { if ($O478 <= 0) { $O478 = MAX_FILE_SIZE; } $O571 = new simple_html_dom(null, $O346, $O732, $O712, $O530, $O928, $O961); $O903 = file_get_contents($O44, $O411, $O986, $O783, $O478); if (empty($O903) || strlen($O903) > $O478) { $O571->clear(); return false; } return $O571->load($O903, $O346, $O530); } function str_get_html($O252, $O346 = true, $O732 = true, $O712 = DEFAULT_TARGET_CHARSET, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT) { $O571 = new simple_html_dom(null, $O346, $O732, $O712, $O530, $O928, $O961); if (empty($O252) || strlen($O252) > MAX_FILE_SIZE) { $O571->clear(); return false; } return $O571->load($O252, $O346, $O530); } function dump_html_tree($O080, $O895 = true, $O742 = 0) { $O080->dump($O080); } goto O302; O302: class simple_html_dom_node { public $nodetype = HDOM_TYPE_TEXT; public $tag = "\x74\145\x78\x74"; public $attr = array(); public $children = array(); public $nodes = array(); public $parent = null; public $_ = array(); public $tag_start = 0; private $dom = null; function __construct($O571) { $this->dom = $O571; $O571->nodes[] = $this; } function __destruct() { $this->clear(); } function __toString() { return $this->outertext(); } function clear() { $this->dom = null; $this->nodes = null; $this->parent = null; $this->children = null; } function dump($O895 = true, $O184 = 0) { echo str_repeat("\11", $O184) . $this->tag; if ($O895 && count($this->attr) > 0) { echo "\x28"; foreach ($this->attr as $O254 => $O94) { echo "\x5b{$O254}\x5d\x3d\76\42{$O94}\42\x2c\40"; O21: } O95: echo "\x29"; } echo "\12"; if ($this->nodes) { foreach ($this->nodes as $O080) { $O080->dump($O895, $O184 + 1); O12: } O97: } } function dump_node($O299 = true) { goto O096; O925: if (isset($O080->_[HDOM_INFO_INNER])) { $O186 .= "\47" . $O080->_[HDOM_INFO_INNER] . "\x27"; } else { $O186 .= "\40\x4e\x55\x4c\114\x20"; } $O186 .= "\x20\143\x68\x69\154\x64\162\145\156\72\40" . count($this->children); $O186 .= "\40\x6e\x6f\x64\145\163\72\40" . count($this->nodes); $O186 .= "\x20\164\x61\147\x5f\x73\164\x61\x72\x74\x3a\40" . $this->tag_start; $O186 .= "\xa"; goto O471; O471: if ($O299) { echo $O186; return; } else { return $O186; } goto O264; O096: $O186 = $this->tag; if (count($this->attr) > 0) { $O186 .= "\50"; foreach ($this->attr as $O254 => $O94) { $O186 .= "\x5b{$O254}\x5d\x3d\76\42{$O94}\42\x2c\x20"; O29: } O04: $O186 .= "\51"; } if (count($this->_) > 0) { $O186 .= "\40\44\x5f\x20\50"; foreach ($this->_ as $O254 => $O94) { if (is_array($O94)) { $O186 .= "\133{$O254}\135\x3d\76\50"; foreach ($O94 as $O424 => $O842) { $O186 .= "\133{$O424}\135\x3d\76\x22{$O842}\42\x2c\40"; O79: } O58: $O186 .= "\x29"; } else { $O186 .= "\133{$O254}\x5d\75\x3e\42{$O94}\x22\x2c\x20"; } O38: } O41: $O186 .= "\x29"; } if (isset($this->text)) { $O186 .= "\x20\x74\145\170\x74\72\40\50{$this->text}\51"; } $O186 .= "\40\x48\x44\117\115\x5f\x49\x4e\x4e\x45\122\137\x49\x4e\x46\x4f\72\40"; goto O925; O264: } function parent($O085 = null) { if ($O085 !== null) { $this->parent = $O085; $this->parent->nodes[] = $this; $this->parent->children[] = $this; } return $this->parent; } function has_child() { return !empty($this->children); } function children($O249 = -1) { if ($O249 === -1) { return $this->children; } if (isset($this->children[$O249])) { return $this->children[$O249]; } return null; } function first_child() { if (count($this->children) > 0) { return $this->children[0]; } return null; } function last_child() { if (count($this->children) > 0) { return end($this->children); } return null; } function next_sibling() { if ($this->parent === null) { return null; } $O249 = array_search($this, $this->parent->children, true); if ($O249 !== false && isset($this->parent->children[$O249 + 1])) { return $this->parent->children[$O249 + 1]; } return null; } function prev_sibling() { if ($this->parent === null) { return null; } $O249 = array_search($this, $this->parent->children, true); if ($O249 !== false && $O249 > 0) { return $this->parent->children[$O249 - 1]; } return null; } function find_ancestor_tag($O592) { goto O635; O981: if (is_null($O691)) { goto O775; } if (is_object($debug_object)) { $debug_object->debug_log(2, "\x43\x75\162\162\x65\x6e\x74\x20\x74\141\147\x20\x69\x73\72\40" . $O691->tag); } if ($O691->tag === $O592) { goto O775; } $O691 = $O691->parent; goto O007; goto O366; O635: global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } if ($this->parent === null) { return null; } $O691 = $this->parent; O007: goto O981; O366: O775: return $O691; goto O952; O952: } function innertext() { if (isset($this->_[HDOM_INFO_INNER])) { return $this->_[HDOM_INFO_INNER]; } if (isset($this->_[HDOM_INFO_TEXT])) { return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); } $O392 = ''; foreach ($this->nodes as $O007) { $O392 .= $O007->outertext(); O082: } O320: return $O392; } function outertext() { goto O390; O758: return $O392; goto O389; O390: global $debug_object; if (is_object($debug_object)) { $O660 = ''; if ($this->tag === "\164\x65\x78\164") { if (!empty($this->text)) { $O660 = "\40\x77\151\x74\x68\x20\x74\145\170\x74\72\40" . $this->text; } } $debug_object->debug_log(1, "\111\x6e\x6e\145\x72\164\145\170\164\x20\x6f\x66\x20\164\141\x67\72\40" . $this->tag . $O660); } if ($this->tag === "\162\157\x6f\x74") { return $this->innertext(); } if ($this->dom && $this->dom->callback !== null) { call_user_func_array($this->dom->callback, array($this)); } if (isset($this->_[HDOM_INFO_OUTER])) { return $this->_[HDOM_INFO_OUTER]; } goto O632; O632: if (isset($this->_[HDOM_INFO_TEXT])) { return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); } $O392 = ''; if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) { $O392 = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup(); } if (isset($this->_[HDOM_INFO_INNER])) { if ($this->tag !== "\x62\x72") { $O392 .= $this->_[HDOM_INFO_INNER]; } } elseif ($this->nodes) { foreach ($this->nodes as $O007) { $O392 .= $this->convert_text($O007->outertext()); O782: } O651: } if (isset($this->_[HDOM_INFO_END]) && $this->_[HDOM_INFO_END] != 0) { $O392 .= "\74\57" . $this->tag . "\x3e"; } goto O758; O389: } function text() { if (isset($this->_[HDOM_INFO_INNER])) { return $this->_[HDOM_INFO_INNER]; } switch ($this->nodetype) { case HDOM_TYPE_TEXT: return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); case HDOM_TYPE_COMMENT: return ''; case HDOM_TYPE_UNKNOWN: return ''; } O599: O367: if (strcasecmp($this->tag, "\x73\x63\x72\x69\x70\164") === 0) { return ''; } if (strcasecmp($this->tag, "\x73\164\171\x6c\145") === 0) { return ''; } $O392 = ''; if (!is_null($this->nodes)) { foreach ($this->nodes as $O007) { if ($O007->tag === "\160") { $O392 = trim($O392) . "\12\xa"; } $O392 .= $this->convert_text($O007->text()); if ($O007->tag === "\163\160\141\x6e") { $O392 .= $this->dom->default_span_text; } O755: } O789: } return $O392; } function xmltext() { $O392 = $this->innertext(); $O392 = str_ireplace("\74\x21\133\103\104\x41\x54\101\133", '', $O392); $O392 = str_replace("\135\x5d\76", '', $O392); return $O392; } function makeup() { if (isset($this->_[HDOM_INFO_TEXT])) { return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]); } $O392 = "\74" . $this->tag; $O32 = -1; foreach ($this->attr as $O969 => $O675) { ++$O32; if ($O675 === null || $O675 === false) { goto O421; } $O392 .= $this->_[HDOM_INFO_SPACE][$O32][0]; if ($O675 === true) { $O392 .= $O969; } else { switch ($this->_[HDOM_INFO_QUOTE][$O32]) { case HDOM_QUOTE_DOUBLE: $O472 = "\x22"; goto O290; case HDOM_QUOTE_SINGLE: $O472 = "\47"; goto O290; default: $O472 = ''; } O572: O290: $O392 .= $O969 . $this->_[HDOM_INFO_SPACE][$O32][1] . "\75" . $this->_[HDOM_INFO_SPACE][$O32][2] . $O472 . $O675 . $O472; } O421: } O548: $O392 = $this->dom->restore_noise($O392); return $O392 . $this->_[HDOM_INFO_ENDSPACE] . "\76"; } function find($O485, $O249 = null, $O346 = false) { goto O595; O031: foreach ($O565 as $O254 => $O94) { $O064[] = $this->dom->nodes[$O254]; O464: } O048: if (is_null($O249)) { return $O064; } elseif ($O249 < 0) { $O249 = count($O064) + $O249; } return isset($O064[$O249]) ? $O064[$O249] : null; goto O794; O844: if (!($O447 < $O264)) { goto O410; } if (($O636 = count($O482[$O447])) === 0) { return array(); } if (!isset($this->_[HDOM_INFO_BEGIN])) { return array(); } $O198 = array($this->_[HDOM_INFO_BEGIN] => 1); $O388 = "\40"; goto O315; O220: goto O430; O262: foreach ($O198 as $O254 => $O94) { if (!isset($O565[$O254])) { $O565[$O254] = 1; } O575: } O648: O719: goto O584; O595: $O482 = $this->parse_selector($O485); if (($O264 = count($O482)) === 0) { return array(); } $O565 = array(); $O447 = 0; O999: goto O844; O315: $O818 = 0; O430: if (!($O818 < $O636)) { goto O262; } $O392 = array(); foreach ($O198 as $O254 => $O94) { $O007 = $O254 === -1 ? $this->dom->root : $this->dom->nodes[$O254]; $O007->seek($O482[$O447][$O818], $O392, $O388, $O346); O270: } goto O167; O584: ++$O447; goto O999; O410: ksort($O565); $O064 = array(); goto O031; O167: O509: $O198 = $O392; $O388 = $O482[$O447][$O818][4]; O044: ++$O818; goto O220; O794: } protected function seek($O485, &$O392, $O089, $O346 = false) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } list($O592, $O116, $O304, $O602, $O168) = $O485; $O394 = array(); if ($O089 === "\x20") { $O581 = !empty($this->_[HDOM_INFO_END]) ? $this->_[HDOM_INFO_END] : 0; if ($O581 == 0) { $O085 = $this->parent; O760: if (!(!isset($O085->_[HDOM_INFO_END]) && $O085 !== null)) { goto O772; } $O581 -= 1; $O085 = $O085->parent; goto O760; O772: $O581 += $O085->_[HDOM_INFO_END]; } $O984 = $this->_[HDOM_INFO_BEGIN] + 1; $O545 = $O581 - $O984; $O394 = array_slice($this->dom->nodes, $O984, $O545, true); } elseif ($O089 === "\76") { $O394 = $this->children; } elseif ($O089 === "\x2b" && $this->parent && in_array($this, $this->parent->children)) { $O695 = array_search($this, $this->parent->children, true) + 1; if ($O695 < count($this->parent->children)) { $O394[] = $this->parent->children[$O695]; } } elseif ($O089 === "\176" && $this->parent && in_array($this, $this->parent->children)) { $O695 = array_search($this, $this->parent->children, true); $O394 = array_slice($this->parent->children, $O695); } foreach ($O394 as $O080) { goto O850; O850: $O199 = true; if (!$O080->parent) { $O199 = false; } if ($O199 && $O592 === "\164\145\170\164" && $O080->tag === "\x74\145\x78\164") { $O392[array_search($O080, $this->dom->nodes, true)] = 1; unset($O080); goto O061; } if ($O199 && !in_array($O080, $O080->parent->children, true)) { $O199 = false; } if ($O199 && $O592 !== '' && $O592 !== $O080->tag && $O592 !== "\52") { $O199 = false; } goto O686; O686: if ($O199 && $O116 !== '' && !isset($O080->attr["\x69\144"])) { $O199 = false; } if ($O199 && $O116 !== '' && isset($O080->attr["\151\x64"])) { $O514 = explode("\x20", trim($O080->attr["\151\144"]))[0]; if ($O116 !== $O514) { $O199 = false; } } if ($O199 && $O304 !== '' && is_array($O304) && !empty($O304)) { if (isset($O080->attr["\143\x6c\141\x73\163"])) { $O599 = explode("\x20", $O080->attr["\143\x6c\141\163\163"]); if ($O346) { $O599 = array_map("\x73\164\x72\164\157\x6c\x6f\167\x65\162", $O599); } foreach ($O304 as $O447) { if (!in_array($O447, $O599)) { $O199 = false; goto O783; } O618: } O783: } else { $O199 = false; } } if ($O199 && $O602 !== '' && is_array($O602) && !empty($O602)) { foreach ($O602 as $O733) { list($O967, $O446, $O079, $O402, $O959) = $O733; if (is_numeric($O967) && $O446 === '' && $O079 === '') { $O264 = 0; foreach ($O080->parent->children as $O447) { if ($O447->tag === $O080->tag) { ++$O264; } if ($O447 === $O080) { goto O917; } O495: } O917: if ($O264 === (int) $O967) { goto O586; } } if ($O402) { if (isset($O080->attr[$O967])) { $O199 = false; goto O145; } } else { if ($O967 !== "\160\154\x61\x69\156\164\x65\x78\x74" && !isset($O080->attr[$O967])) { $O199 = false; goto O145; } } if ($O446 === '') { goto O586; } if ($O967 === "\160\154\141\x69\x6e\x74\x65\170\164") { $O334 = $O080->text(); } else { $O334 = $O080->attr[$O967]; } if (is_object($debug_object)) { $debug_object->debug_log(2, "\x74\x65\163\x74\151\156\x67\40\x6e\x6f\x64\x65\72\40" . $O080->tag . "\40\x66\x6f\162\40\141\x74\164\162\x69\x62\x75\x74\x65\x3a\40" . $O967 . $O446 . $O079 . "\x20\167\150\145\x72\145\40\156\x6f\144\145\x73\x20\166\141\x6c\165\145\40\x69\163\x3a\x20" . $O334); } if ($O346) { $O897 = $this->match($O446, strtolower($O079), strtolower($O334), $O959); } else { $O897 = $this->match($O446, $O079, $O334, $O959); } if (is_object($debug_object)) { $debug_object->debug_log(2, "\141\x66\164\145\162\x20\155\141\x74\143\x68\72\x20" . ($O897 ? "\164\x72\x75\x65" : "\146\141\154\x73\145")); } if (!$O897) { $O199 = false; goto O145; } O586: } O145: } if ($O199) { $O392[$O080->_[HDOM_INFO_BEGIN]] = 1; } goto O538; O538: unset($O080); O061: goto O279; O279: } O349: if (is_object($debug_object)) { $debug_object->debug_log(1, "\x45\130\x49\x54\x20\55\40\x72\145\x74\x3a\40", $O392); } } protected function match($O129, $O055, $O63, $O683) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } if ($O683 === "\151") { $O055 = strtolower($O055); $O63 = strtolower($O63); } switch ($O129) { case "\x3d": return $O63 === $O055; case "\41\x3d": return $O63 !== $O055; case "\136\75": return preg_match("\x2f\136" . preg_quote($O055, "\x2f") . "\x2f", $O63); case "\44\x3d": return preg_match("\x2f" . preg_quote($O055, "\x2f") . "\44\57", $O63); case "\52\x3d": return preg_match("\57" . preg_quote($O055, "\57") . "\x2f", $O63); case "\x7c\75": return strpos($O63, $O055) === 0; case "\x7e\x3d": return in_array($O055, explode("\x20", trim($O63)), true); } O642: O738: return false; } protected function parse_selector($O200) { goto O938; O938: global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } $O055 = "\57\x28\x5b\x5c\167\72\134\52\55\x5d\52\x29\x28\x3f\x3a\134\43\50\133\134\x77\55\135\53\x29\x29\77\x28\77\x3a\174\134\56\50\x5b\134\x77\134\56\55\x5d\53\51\x29\x3f\x28\x28\x3f\72\134\133\100\x3f\x28\x3f\x3a\41\x3f\x5b\134\167\x3a\x2d\x5d\53\51\50\x3f\72\50\x3f\72\x5b\x21\x2a\x5e\44\x7c\x7e\x5d\77\x3d\51\x5b\x22\47\135\x3f\x28\x3f\72\x2e\52\77\x29\x5b\x22\47\135\77\x29\77\50\77\x3a\134\163\52\x3f\50\x3f\x3a\133\151\x49\x73\x53\x5d\51\77\51\x3f\134\135\x29\x2b\x29\77\x28\x5b\x5c\x2f\54\x20\x3e\53\176\x5d\x2b\51\x2f\151\x73"; preg_match_all($O055, trim($O200) . "\x20", $O628, PREG_SET_ORDER); if (is_object($debug_object)) { $debug_object->debug_log(2, "\115\141\x74\x63\150\145\163\x20\101\162\x72\141\x79\72\x20", $O628); } goto O566; O842: return $O482; goto O697; O566: $O482 = array(); $O66 = array(); foreach ($O628 as $O942) { goto O906; O906: $O942[0] = trim($O942[0]); if ($O942[0] === '' || $O942[0] === "\x2f" || $O942[0] === "\57\x2f") { goto O824; } if ($this->dom->lowercase) { $O942[1] = strtolower($O942[1]); } if ($O942[3] !== '') { $O942[3] = explode("\56", $O942[3]); } if ($O942[4] !== '') { preg_match_all("\57\134\133\100\x3f\50\x21\x3f\x5b\x5c\x77\72\55\135\53\x29\x28\x3f\x3a\x28\133\x21\52\136\x24\174\x7e\x5d\77\x3d\x29\133\x22\x27\x5d\x3f\x28\56\52\77\x29\x5b\42\x27\x5d\x3f\x29\x3f\x28\77\x3a\134\x73\53\77\x28\x5b\x69\111\x73\123\135\x29\x3f\51\77\x5c\135\x2f\151\163", trim($O942[4]), $O602, PREG_SET_ORDER); $O942[4] = array(); foreach ($O602 as $O854) { if (trim($O854[0]) === '') { goto O372; } $O345 = isset($O854[1][0]) && $O854[1][0] === "\41"; $O942[4][] = array($O345 ? substr($O854[1], 1) : $O854[1], isset($O854[2]) ? $O854[2] : '', isset($O854[3]) ? $O854[3] : '', $O345, isset($O854[4]) ? strtolower($O854[4]) : ''); O372: } O470: } goto O090; O004: O824: goto O800; O090: if ($O942[5] !== '' && trim($O942[5]) === '') { $O942[5] = "\40"; } else { $O942[5] = trim($O942[5]); } if ($O240 = $O942[5] === "\x2c") { $O942[5] = ''; } array_shift($O942); $O66[] = $O942; if ($O240) { $O482[] = $O66; $O66 = array(); } goto O004; O800: } O454: if (count($O66) > 0) { $O482[] = $O66; } goto O842; O697: } function __get($O201) { if (isset($this->attr[$O201])) { return $this->convert_text($this->attr[$O201]); } switch ($O201) { case "\157\165\164\145\162\x74\x65\x78\x74": return $this->outertext(); case "\x69\156\156\x65\162\x74\145\170\x74": return $this->innertext(); case "\x70\x6c\x61\x69\x6e\x74\145\170\164": return $this->text(); case "\x78\x6d\154\x74\x65\170\164": return $this->xmltext(); default: return array_key_exists($O201, $this->attr); } O170: O787: } function __set($O201, $O63) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } switch ($O201) { case "\x6f\x75\164\145\x72\x74\x65\170\164": return $this->_[HDOM_INFO_OUTER] = $O63; case "\x69\x6e\156\145\x72\x74\145\x78\164": if (isset($this->_[HDOM_INFO_TEXT])) { return $this->_[HDOM_INFO_TEXT] = $O63; } return $this->_[HDOM_INFO_INNER] = $O63; } O623: O037: if (!isset($this->attr[$O201])) { $this->_[HDOM_INFO_SPACE][] = array("\x20", '', ''); $this->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_DOUBLE; } $this->attr[$O201] = $O63; } function __isset($O201) { switch ($O201) { case "\157\x75\164\x65\162\x74\x65\170\164": return true; case "\151\x6e\156\145\x72\x74\145\170\x74": return true; case "\x70\154\x61\x69\x6e\164\145\x78\x74": return true; } O493: O608: return array_key_exists($O201, $this->attr) ? true : isset($this->attr[$O201]); } function __unset($O201) { if (isset($this->attr[$O201])) { unset($this->attr[$O201]); } } function convert_text($O660) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } $O001 = $O660; $O460 = ''; $O708 = ''; if ($this->dom) { $O460 = strtoupper($this->dom->_charset); $O708 = strtoupper($this->dom->_target_charset); } if (is_object($debug_object)) { $debug_object->debug_log(3, "\x73\157\x75\x72\143\x65\40\143\x68\x61\x72\163\145\164\x3a\x20" . $O460 . "\40\x74\141\162\147\145\164\x20\143\x68\141\x72\x61\x73\145\x74\x3a\40" . $O708); } if (!empty($O460) && !empty($O708) && strcasecmp($O460, $O708) != 0) { if (strcasecmp($O708, "\125\x54\x46\55\x38") == 0 && $this->is_utf8($O660)) { $O001 = $O660; } else { $O001 = iconv($O460, $O708, $O660); } } if ($O708 === "\x55\124\106\55\x38") { if (substr($O001, 0, 3) === "\357\273\xbf") { $O001 = substr($O001, 3); } if (substr($O001, -3) === "\xef\xbb\xbf") { $O001 = substr($O001, 0, -3); } } return $O001; } static function is_utf8($O252) { goto O816; O292: O289: if (!($O32 < $O774)) { goto O779; } $O447 = ord($O252[$O32]); if ($O447 > 128) { if ($O447 >= 254) { return false; } elseif ($O447 >= 252) { $O589 = 6; } elseif ($O447 >= 248) { $O589 = 5; } elseif ($O447 >= 240) { $O589 = 4; } elseif ($O447 >= 224) { $O589 = 3; } elseif ($O447 >= 192) { $O589 = 2; } else { return false; } if ($O32 + $O589 > $O774) { return false; } O555: if (!($O589 > 1)) { goto O068; } $O32++; $O665 = ord($O252[$O32]); if ($O665 < 128 || $O665 > 191) { return false; } $O589--; goto O555; O068: } O248: goto O147; O147: $O32++; goto O289; O779: return true; goto O277; O816: $O447 = 0; $O665 = 0; $O589 = 0; $O774 = strlen($O252); $O32 = 0; goto O292; O277: } function get_display_size() { global $debug_object; $O047 = -1; $O387 = -1; if ($this->tag !== "\x69\155\x67") { return false; } if (isset($this->attr["\167\151\144\164\150"])) { $O047 = $this->attr["\x77\x69\x64\x74\x68"]; } if (isset($this->attr["\x68\x65\151\x67\150\x74"])) { $O387 = $this->attr["\150\x65\x69\x67\x68\x74"]; } if (isset($this->attr["\x73\164\x79\154\x65"])) { $O602 = array(); preg_match_all("\x2f\50\133\x5c\x77\55\x5d\53\x29\134\x73\52\72\x5c\x73\x2a\x28\133\136\73\135\x2b\51\x5c\163\52\x3b\77\x2f", $this->attr["\163\x74\171\x6c\x65"], $O628, PREG_SET_ORDER); foreach ($O628 as $O102) { $O602[$O102[1]] = $O102[2]; O546: } O210: if (isset($O602["\x77\x69\144\x74\150"]) && $O047 == -1) { if (strtolower(substr($O602["\x77\151\x64\164\150"], -2)) === "\160\x78") { $O326 = substr($O602["\x77\x69\x64\x74\x68"], 0, -2); if (filter_var($O326, FILTER_VALIDATE_INT)) { $O047 = $O326; } } } if (isset($O602["\150\x65\151\x67\150\x74"]) && $O387 == -1) { if (strtolower(substr($O602["\x68\x65\151\147\150\164"], -2)) == "\160\170") { $O420 = substr($O602["\x68\x65\x69\x67\x68\164"], 0, -2); if (filter_var($O420, FILTER_VALIDATE_INT)) { $O387 = $O420; } } } } $O66 = array("\x68\145\151\x67\x68\x74" => $O387, "\x77\x69\144\164\150" => $O047); return $O66; } function save($O234 = '') { $O392 = $this->outertext(); if ($O234 !== '') { file_put_contents($O234, $O392, LOCK_EX); } return $O392; } function addClass($O304) { if (is_string($O304)) { $O304 = explode("\40", $O304); } if (is_array($O304)) { foreach ($O304 as $O447) { if (isset($this->class)) { if ($this->hasClass($O447)) { goto O039; } else { $this->class .= "\x20" . $O447; } } else { $this->class = $O447; } O039: } O085: } else { if (is_object($debug_object)) { $debug_object->debug_log(2, "\x49\156\x76\x61\x6c\151\x64\40\x74\171\160\x65\x3a\x20", gettype($O304)); } } } function hasClass($O304) { if (is_string($O304)) { if (isset($this->class)) { return in_array($O304, explode("\40", $this->class), true); } } else { if (is_object($debug_object)) { $debug_object->debug_log(2, "\111\x6e\166\x61\x6c\x69\144\x20\x74\x79\x70\145\x3a\40", gettype($O304)); } } return false; } function removeClass($O304 = null) { if (!isset($this->class)) { return; } if (is_null($O304)) { $this->removeAttribute("\x63\x6c\141\x73\163"); return; } if (is_string($O304)) { $O304 = explode("\x20", $O304); } if (is_array($O304)) { $O304 = array_diff(explode("\40", $this->class), $O304); if (empty($O304)) { $this->removeAttribute("\143\x6c\141\x73\x73"); } else { $this->class = implode("\40", $O304); } } } function getAllAttributes() { return $this->attr; } function getAttribute($O201) { return $this->__get($O201); } function setAttribute($O201, $O63) { $this->__set($O201, $O63); } function hasAttribute($O201) { return $this->__isset($O201); } function removeAttribute($O201) { $this->__set($O201, null); } function remove() { if ($this->parent) { $this->parent->removeChild($this); } } function removeChild($O080) { $O301 = array_search($O080, $this->nodes, true); $O429 = array_search($O080, $this->children, true); $O603 = array_search($O080, $this->dom->nodes, true); if ($O301 !== false && $O429 !== false && $O603 !== false) { foreach ($O080->children as $O359) { $O080->removeChild($O359); O742: } O494: foreach ($O080->nodes as $O864) { $O562 = array_search($O864, $O080->nodes, true); $O449 = array_search($O864, $O080->dom->nodes, true); if ($O562 !== false && $O449 !== false) { unset($O080->nodes[$O562]); unset($O080->dom->nodes[$O449]); } O122: } O894: unset($this->nodes[$O301]); unset($this->children[$O429]); unset($this->dom->nodes[$O603]); $O080->clear(); } } function getElementById($O116) { return $this->find("\x23{$O116}", 0); } function getElementsById($O116, $O249 = null) { return $this->find("\43{$O116}", $O249); } function getElementByTagName($O201) { return $this->find($O201, 0); } function getElementsByTagName($O201, $O249 = null) { return $this->find($O201, $O249); } function parentNode() { return $this->parent(); } function childNodes($O249 = -1) { return $this->children($O249); } function firstChild() { return $this->first_child(); } function lastChild() { return $this->last_child(); } function nextSibling() { return $this->next_sibling(); } function previousSibling() { return $this->prev_sibling(); } function hasChildNodes() { return $this->has_child(); } function nodeName() { return $this->tag; } function appendChild($O080) { $O080->parent($this); return $O080; } } goto O825; O985: define("\110\x44\x4f\115\x5f\111\116\x46\117\x5f\105\116\x44", 1); define("\110\x44\x4f\115\137\111\x4e\106\117\137\x51\x55\117\124\105", 2); define("\x48\x44\117\115\137\x49\x4e\106\x4f\x5f\123\120\x41\103\x45", 3); define("\x48\104\x4f\x4d\x5f\111\116\106\x4f\x5f\x54\x45\x58\x54", 4); define("\x48\104\x4f\115\x5f\x49\116\106\117\137\x49\116\x4e\105\122", 5); goto O104; O969: define("\110\104\117\x4d\137\124\131\x50\x45\137\x55\116\x4b\x4e\117\x57\x4e", 6); define("\110\x44\x4f\x4d\x5f\121\x55\117\124\105\x5f\x44\117\125\x42\114\x45", 0); define("\x48\104\x4f\115\x5f\121\x55\117\124\x45\137\123\111\116\x47\114\105", 1); define("\x48\x44\x4f\x4d\x5f\121\x55\x4f\x54\x45\x5f\x4e\x4f", 3); define("\x48\104\x4f\115\137\x49\x4e\106\x4f\137\102\x45\107\x49\116", 0); goto O985; O825: class simple_html_dom { public $root = null; public $nodes = array(); public $callback = null; public $lowercase = false; public $original_size; public $size; protected $pos; protected $doc; protected $char; protected $cursor; protected $parent; protected $noise = array(); protected $token_blank = "\40\x9\15\xa"; protected $token_equal = "\x20\x3d\x2f\76"; protected $token_slash = "\40\x2f\76\15\12\x9"; protected $token_attr = "\40\76"; public $_charset = ''; public $_target_charset = ''; protected $default_br_text = ''; public $default_span_text = ''; protected $self_closing_tags = array("\x61\162\145\x61" => 1, "\x62\x61\x73\x65" => 1, "\x62\162" => 1, "\x63\157\x6c" => 1, "\145\x6d\x62\x65\144" => 1, "\150\162" => 1, "\x69\x6d\147" => 1, "\x69\156\160\x75\164" => 1, "\x6c\x69\x6e\153" => 1, "\155\145\x74\x61" => 1, "\160\x61\x72\141\155" => 1, "\x73\x6f\x75\162\143\145" => 1, "\164\162\141\143\x6b" => 1, "\167\142\162" => 1); protected $block_tags = array("\x62\157\x64\171" => 1, "\144\x69\x76" => 1, "\146\157\x72\x6d" => 1, "\x72\157\157\164" => 1, "\163\x70\x61\x6e" => 1, "\x74\141\142\x6c\x65" => 1); protected $optional_closing_tags = array("\x62" => array("\142" => 1), "\144\x64" => array("\x64\x64" => 1, "\x64\164" => 1), "\144\x6c" => array("\x64\144" => 1, "\144\x74" => 1), "\x64\164" => array("\144\144" => 1, "\x64\164" => 1), "\x6c\151" => array("\154\x69" => 1), "\157\160\164\147\162\x6f\x75\x70" => array("\157\160\164\147\x72\157\x75\160" => 1, "\157\x70\x74\x69\157\156" => 1), "\157\160\164\151\157\x6e" => array("\x6f\x70\164\x67\162\x6f\x75\x70" => 1, "\157\x70\x74\151\x6f\x6e" => 1), "\160" => array("\x70" => 1), "\x72\x70" => array("\162\x70" => 1, "\x72\x74" => 1), "\x72\x74" => array("\162\x70" => 1, "\162\164" => 1), "\164\x64" => array("\164\x64" => 1, "\164\150" => 1), "\164\150" => array("\164\x64" => 1, "\x74\150" => 1), "\x74\x72" => array("\x74\x64" => 1, "\x74\150" => 1, "\164\x72" => 1)); function __construct($O252 = null, $O346 = true, $O732 = true, $O712 = DEFAULT_TARGET_CHARSET, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT, $O8 = 0) { if ($O252) { if (preg_match("\57\136\150\164\164\160\x3a\134\57\134\57\57\x69", $O252) || is_file($O252)) { $this->load_file($O252); } else { $this->load($O252, $O346, $O530, $O928, $O961, $O8); } } if (!$O732) { $this->optional_closing_array = array(); } $this->_target_charset = $O712; } function __destruct() { $this->clear(); } function load($O252, $O346 = true, $O530 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT, $O8 = 0) { goto O847; O847: global $debug_object; $this->prepare($O252, $O346, $O928, $O961); $this->remove_noise("\x27\x3c\134\163\x2a\x73\143\162\151\x70\x74\133\x5e\x3e\x5d\52\x5b\x5e\57\x5d\x3e\50\x2e\x2a\77\51\x3c\x5c\x73\x2a\57\x5c\163\x2a\x73\x63\x72\151\160\x74\134\x73\x2a\x3e\x27\151\x73"); $this->remove_noise("\x27\x3c\x5c\x73\52\163\143\x72\151\160\x74\x5c\x73\52\x3e\50\56\x2a\x3f\51\74\134\x73\x2a\x2f\x5c\x73\x2a\163\x63\162\x69\160\164\134\x73\52\x3e\47\x69\x73"); if ($O530) { $this->doc = str_replace("\15", "\x20", $this->doc); $this->doc = str_replace("\xa", "\x20", $this->doc); $this->size = strlen($this->doc); } goto O005; O460: $this->remove_noise("\47\x28\x3c\x5c\x3f\51\50\x2e\x2a\x3f\51\50\x5c\77\76\51\x27\163", true); if ($O8 & HDOM_SMARTY_AS_TEXT) { $this->remove_noise("\x27\50\x5c\173\134\x77\x29\50\56\x2a\77\51\50\134\x7d\x29\47\163", true); } $this->parse(); $this->root->_[HDOM_INFO_END] = $this->cursor; $this->parse_charset(); goto O057; O005: $this->remove_noise("\x27\x3c\41\134\x5b\x43\104\101\124\x41\134\x5b\x28\x2e\52\77\x29\134\135\x5c\135\76\47\151\x73", true); $this->remove_noise("\47\x3c\41\x2d\55\50\56\x2a\77\x29\55\55\76\x27\151\163"); $this->remove_noise("\47\x3c\134\x73\52\163\x74\171\154\x65\x5b\x5e\76\x5d\x2a\133\x5e\x2f\x5d\76\50\x2e\52\77\51\x3c\134\x73\52\57\134\163\x2a\163\164\171\x6c\x65\134\x73\52\x3e\x27\x69\163"); $this->remove_noise("\47\x3c\x5c\x73\x2a\x73\164\x79\x6c\x65\134\x73\x2a\76\50\x2e\x2a\77\51\x3c\x5c\x73\x2a\57\x5c\x73\52\x73\x74\171\x6c\x65\x5c\x73\x2a\76\x27\151\x73"); $this->remove_noise("\x27\74\134\x73\x2a\x28\x3f\x3a\x63\x6f\144\145\51\x5b\x5e\x3e\x5d\x2a\x3e\x28\x2e\52\x3f\x29\x3c\134\163\x2a\x2f\134\163\x2a\50\x3f\x3a\143\157\144\145\x29\x5c\163\x2a\76\x27\151\x73"); goto O460; O057: return $this; goto O691; O691: } function load_file() { $O031 = func_get_args(); if (($O799 = call_user_func_array("\146\151\x6c\x65\x5f\x67\145\164\137\143\157\156\164\x65\156\x74\163", $O031)) !== false) { $this->load($O799, true); } else { return false; } } function set_callback($O548) { $this->callback = $O548; } function remove_callback() { $this->callback = null; } function save($O234 = '') { $O392 = $this->root->innertext(); if ($O234 !== '') { file_put_contents($O234, $O392, LOCK_EX); } return $O392; } function find($O485, $O249 = null, $O346 = false) { return $this->root->find($O485, $O249, $O346); } function clear() { if (isset($this->nodes)) { foreach ($this->nodes as $O007) { $O007->clear(); $O007 = null; O934: } O049: } if (isset($this->children)) { foreach ($this->children as $O007) { $O007->clear(); $O007 = null; O929: } O444: } if (isset($this->parent)) { $this->parent->clear(); unset($this->parent); } if (isset($this->root)) { $this->root->clear(); unset($this->root); } unset($this->doc); unset($this->noise); } function dump($O895 = true) { $this->root->dump($O895); } protected function prepare($O252, $O346 = true, $O928 = DEFAULT_BR_TEXT, $O961 = DEFAULT_SPAN_TEXT) { goto O443; O559: $this->parent = $this->root; if ($this->size > 0) { $this->char = $this->doc[0]; } goto O633; O443: $this->clear(); $this->doc = trim($O252); $this->size = strlen($this->doc); $this->original_size = $this->size; $this->pos = 0; goto O420; O420: $this->cursor = 1; $this->noise = array(); $this->nodes = array(); $this->lowercase = $O346; $this->default_br_text = $O928; goto O614; O614: $this->default_span_text = $O961; $this->root = new simple_html_dom_node($this); $this->root->tag = "\162\x6f\x6f\164"; $this->root->_[HDOM_INFO_BEGIN] = -1; $this->root->nodetype = HDOM_TYPE_ROOT; goto O559; O633: } protected function parse() { O075: if (!true) { goto O598; } if (($O179 = $this->copy_until_char("\x3c")) === '') { if ($this->read_tag()) { goto O075; } else { return true; } } $O080 = new simple_html_dom_node($this); ++$this->cursor; $O080->_[HDOM_INFO_TEXT] = $O179; $this->link_nodes($O080, false); goto O075; O598: } protected function parse_charset() { global $debug_object; $O531 = null; if (function_exists("\147\x65\164\137\x6c\141\163\164\x5f\162\145\164\x72\x69\145\166\145\137\165\x72\x6c\137\x63\x6f\x6e\x74\145\x6e\164\163\137\143\x6f\x6e\164\x65\x6e\164\x5f\x74\x79\x70\145")) { $O247 = get_last_retrieve_url_contents_content_type(); $O796 = preg_match("\57\x63\x68\x61\x72\163\145\x74\x3d\50\56\x2b\51\x2f", $O247, $O628); if ($O796) { $O531 = $O628[1]; if (is_object($debug_object)) { $debug_object->debug_log(2, "\x68\145\141\x64\x65\162\x20\x63\157\156\164\145\156\x74\55\x74\x79\160\145\40\x66\x6f\165\x6e\144\40\x63\150\141\162\163\x65\164\40\x6f\x66\72\x20" . $O531); } } } if (empty($O531)) { $O256 = $this->root->find("\155\x65\x74\x61\133\x68\164\x74\160\x2d\145\x71\x75\x69\166\75\x43\157\156\x74\x65\156\x74\55\124\171\160\145\135", 0, true); if (!empty($O256)) { $O971 = $O256->content; if (is_object($debug_object)) { $debug_object->debug_log(2, "\x6d\x65\x74\x61\40\x63\157\156\x74\x65\x6e\x74\55\x74\171\160\145\40\164\141\x67\40\x66\x6f\x75\x6e\144" . $O971); } if (!empty($O971)) { $O796 = preg_match("\x2f\143\150\141\x72\x73\145\164\75\x28\56\x2b\x29\x2f\x69", $O971, $O628); if ($O796) { $O531 = $O628[1]; } else { if (is_object($debug_object)) { $debug_object->debug_log(2, "\155\145\x74\x61\x20\143\x6f\x6e\164\145\156\164\55\164\171\160\x65\40\x74\x61\x67\40\143\157\165\154\144\x6e\x27\164\40\142\145\40\160\x61\x72\x73\145\x64\56\40\165\163\151\x6e\147\40\151\x73\x6f\55\70\x38\65\71\x20\144\145\x66\141\165\x6c\x74\x2e"); } $O531 = "\x49\123\117\55\70\70\x35\71\55\x31"; } } } } if (empty($O531)) { if ($O756 = $this->root->find("\155\x65\164\141\133\143\x68\x61\x72\x73\x65\x74\135", 0)) { $O531 = $O756->charset; if (is_object($debug_object)) { $debug_object->debug_log(2, "\155\x65\x74\141\x20\x63\x68\141\162\x73\145\x74\x3a\x20" . $O531); } } } if (empty($O531)) { if (function_exists("\155\x62\137\144\145\x74\145\x63\164\x5f\145\156\143\x6f\144\x69\156\147")) { $O843 = mb_detect_encoding($this->doc, array("\x55\x54\106\x2d\x38", "\103\x50\61\x32\65\62", "\x49\123\x4f\x2d\70\70\65\x39\55\x31")); if ($O843 === "\103\x50\x31\62\x35\62" || $O843 === "\x49\x53\x4f\55\70\x38\65\x39\x2d\61") { if (!@iconv("\103\x50\61\62\65\62", "\125\x54\106\x2d\x38", $this->doc)) { $O843 = "\x43\x50\61\x32\x35\61"; } } if ($O843 !== false) { $O531 = $O843; if (is_object($debug_object)) { $debug_object->debug_log(2, "\x6d\142\137\x64\145\x74\145\143\164\x3a\x20" . $O531); } } } } if (empty($O531)) { $O531 = "\125\x54\x46\x2d\x38"; if (is_object($debug_object)) { $debug_object->debug_log(2, "\x4e\x6f\x20\x6d\x61\x74\x63\x68\40\146\x6f\165\156\144\54\x20\x61\163\163\x75\x6d\x65\x20" . $O531); } } if (strtolower($O531) == "\x69\x73\x6f\55\x38\x38\x35\71\x2d\61" || strtolower($O531) == "\x6c\x61\x74\151\156\61" || strtolower($O531) == "\154\141\164\151\156\55\x31") { $O531 = "\103\120\x31\x32\x35\x32"; if (is_object($debug_object)) { $debug_object->debug_log(2, "\x72\145\160\154\x61\x63\151\156\147\x20" . $O531 . "\40\x77\x69\164\x68\x20\103\120\61\62\65\x32\40\141\x73\x20\x69\164\x73\x20\x61\x20\x73\x75\x70\x65\162\163\145\164"); } } if (is_object($debug_object)) { $debug_object->debug_log(1, "\105\x58\x49\124\40\x2d\40" . $O531); } return $this->_charset = $O531; } protected function read_tag() { goto O193; O401: if (isset($this->optional_closing_tags[$O644])) { O606: if (!isset($this->optional_closing_tags[$O644][strtolower($this->parent->tag)])) { goto O641; } $this->parent->_[HDOM_INFO_END] = 0; $this->parent = $this->parent->parent; goto O606; O641: $O080->parent = $this->parent; } $O907 = 0; $O379 = array($this->copy_skip($this->token_blank), '', ''); O384: $O201 = $this->copy_until($this->token_equal); goto O394; O394: if ($O201 === '' && $this->char !== null && $O379[0] === '') { goto O918; } if ($O907 === $this->pos) { $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O384; } $O907 = $this->pos; if ($this->pos >= $this->size - 1 && $this->char !== "\76") { $O080->nodetype = HDOM_TYPE_TEXT; $O080->_[HDOM_INFO_END] = 0; $O080->_[HDOM_INFO_TEXT] = "\74" . $O592 . $O379[0] . $O201; $O080->tag = "\x74\x65\x78\164"; $this->link_nodes($O080, false); return true; } if ($this->doc[$this->pos - 1] == "\x3c") { $O080->nodetype = HDOM_TYPE_TEXT; $O080->tag = "\164\x65\170\164"; $O080->attr = array(); $O080->_[HDOM_INFO_END] = 0; $O080->_[HDOM_INFO_TEXT] = substr($this->doc, $O586, $this->pos - $O586 - 1); $this->pos -= 2; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $this->link_nodes($O080, false); return true; } goto O468; O723: $O080->_[HDOM_INFO_BEGIN] = $this->cursor; ++$this->cursor; $O592 = $this->copy_until($this->token_slash); $O080->tag_start = $O586; if (isset($O592[0]) && $O592[0] === "\x21") { $O080->_[HDOM_INFO_TEXT] = "\x3c" . $O592 . $this->copy_until_char("\76"); if (isset($O592[2]) && $O592[1] === "\x2d" && $O592[2] === "\x2d") { $O080->nodetype = HDOM_TYPE_COMMENT; $O080->tag = "\143\x6f\x6d\x6d\145\x6e\164"; } else { $O080->nodetype = HDOM_TYPE_UNKNOWN; $O080->tag = "\165\156\x6b\x6e\157\167\x6e"; } if ($this->char === "\76") { $O080->_[HDOM_INFO_TEXT] .= "\x3e"; } $this->link_nodes($O080, true); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; return true; } goto O806; O193: if ($this->char !== "\x3c") { $this->root->_[HDOM_INFO_END] = $this->cursor; return false; } $O586 = $this->pos; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; if ($this->char === "\x2f") { goto O208; O208: $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $this->skip($this->token_blank); $O592 = $this->copy_until_char("\76"); if (($O223 = strpos($O592, "\x20")) !== false) { $O592 = substr($O592, 0, $O223); } $O623 = strtolower($this->parent->tag); goto O653; O653: $O644 = strtolower($O592); if ($O623 !== $O644) { if (isset($this->optional_closing_tags[$O623]) && isset($this->block_tags[$O644])) { $this->parent->_[HDOM_INFO_END] = 0; $O250 = $this->parent; O551: if (!($this->parent->parent && strtolower($this->parent->tag) !== $O644)) { goto O627; } $this->parent = $this->parent->parent; goto O551; O627: if (strtolower($this->parent->tag) !== $O644) { $this->parent = $O250; if ($this->parent->parent) { $this->parent = $this->parent->parent; } $this->parent->_[HDOM_INFO_END] = $this->cursor; return $this->as_text_node($O592); } } elseif ($this->parent->parent && isset($this->block_tags[$O644])) { $this->parent->_[HDOM_INFO_END] = 0; $O250 = $this->parent; O716: if (!($this->parent->parent && strtolower($this->parent->tag) !== $O644)) { goto O451; } $this->parent = $this->parent->parent; goto O716; O451: if (strtolower($this->parent->tag) !== $O644) { $this->parent = $O250; $this->parent->_[HDOM_INFO_END] = $this->cursor; return $this->as_text_node($O592); } } elseif ($this->parent->parent && strtolower($this->parent->parent->tag) === $O644) { $this->parent->_[HDOM_INFO_END] = 0; $this->parent = $this->parent->parent; } else { return $this->as_text_node($O592); } } $this->parent->_[HDOM_INFO_END] = $this->cursor; if ($this->parent->parent) { $this->parent = $this->parent->parent; } $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O446; O446: return true; goto O314; O314: } $O080 = new simple_html_dom_node($this); goto O723; O684: if ($this->copy_until_char("\x3e") === "\57") { $O080->_[HDOM_INFO_ENDSPACE] .= "\x2f"; $O080->_[HDOM_INFO_END] = 0; } else { if (!isset($this->self_closing_tags[strtolower($O080->tag)])) { $this->parent = $O080; } } $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; if ($O080->tag === "\142\162") { $O080->_[HDOM_INFO_INNER] = $this->default_br_text; } return true; goto O108; O468: if ($O201 !== "\57" && $O201 !== '') { $O379[1] = $this->copy_skip($this->token_blank); $O201 = $this->restore_noise($O201); if ($this->lowercase) { $O201 = strtolower($O201); } if ($this->char === "\75") { $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $this->parse_attr($O080, $O201, $O379); } else { $O080->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_NO; $O080->attr[$O201] = true; if ($this->char != "\76") { $this->char = $this->doc[--$this->pos]; } } $O080->_[HDOM_INFO_SPACE][] = $O379; $O379 = array($this->copy_skip($this->token_blank), '', ''); } else { goto O918; } if ($this->char !== "\x3e" && $this->char !== "\x2f") { goto O384; } O918: $this->link_nodes($O080, true); $O080->_[HDOM_INFO_ENDSPACE] = $O379[0]; goto O684; O806: if ($O223 = strpos($O592, "\x3c") !== false) { $O592 = "\74" . substr($O592, 0, -1); $O080->_[HDOM_INFO_TEXT] = $O592; $this->link_nodes($O080, false); $this->char = $this->doc[--$this->pos]; return true; } if (!preg_match("\x2f\136\134\167\133\134\167\72\x2d\135\52\x24\x2f", $O592)) { $O080->_[HDOM_INFO_TEXT] = "\74" . $O592 . $this->copy_until("\74\x3e"); if ($this->char === "\74") { $this->link_nodes($O080, false); return true; } if ($this->char === "\76") { $O080->_[HDOM_INFO_TEXT] .= "\76"; } $this->link_nodes($O080, false); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; return true; } $O080->nodetype = HDOM_TYPE_ELEMENT; $O644 = strtolower($O592); $O080->tag = $this->lowercase ? $O644 : $O592; goto O401; O108: } protected function parse_attr($O080, $O201, &$O379) { $O808 = isset($O080->attr[$O201]); if (!$O808) { $O379[2] = $this->copy_skip($this->token_blank); } switch ($this->char) { case "\x22": $O444 = HDOM_QUOTE_DOUBLE; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $O63 = $this->copy_until_char("\42"); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O658; case "\47": $O444 = HDOM_QUOTE_SINGLE; $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; $O63 = $this->copy_until_char("\47"); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; goto O658; default: $O444 = HDOM_QUOTE_NO; $O63 = $this->copy_until($this->token_attr); } O038: O658: $O63 = $this->restore_noise($O63); $O63 = str_replace("\xd", '', $O63); $O63 = str_replace("\12", '', $O63); if ($O201 === "\x63\154\x61\x73\163") { $O63 = trim($O63); } if (!$O808) { $O080->_[HDOM_INFO_QUOTE][] = $O444; $O080->attr[$O201] = $O63; } } protected function link_nodes(&$O080, $O869) { $O080->parent = $this->parent; $this->parent->nodes[] = $O080; if ($O869) { $this->parent->children[] = $O080; } } protected function as_text_node($O592) { $O080 = new simple_html_dom_node($this); ++$this->cursor; $O080->_[HDOM_INFO_TEXT] = "\74\57" . $O592 . "\76"; $this->link_nodes($O080, false); $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null; return true; } protected function skip($O926) { $this->pos += strspn($this->doc, $O926, $this->pos); $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; } protected function copy_skip($O926) { $O223 = $this->pos; $O774 = strspn($this->doc, $O926, $O223); $this->pos += $O774; $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; if ($O774 === 0) { return ''; } return substr($this->doc, $O223, $O774); } protected function copy_until($O926) { $O223 = $this->pos; $O774 = strcspn($this->doc, $O926, $O223); $this->pos += $O774; $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; return substr($this->doc, $O223, $O774); } protected function copy_until_char($O497) { if ($this->char === null) { return ''; } if (($O223 = strpos($this->doc, $O497, $this->pos)) === false) { $O392 = substr($this->doc, $this->pos, $this->size - $this->pos); $this->char = null; $this->pos = $this->size; return $O392; } if ($O223 === $this->pos) { return ''; } $O685 = $this->pos; $this->char = $this->doc[$O223]; $this->pos = $O223; return substr($this->doc, $O685, $O223 - $O685); } protected function remove_noise($O055, $O103 = false) { goto O200; O200: global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } $O264 = preg_match_all($O055, $this->doc, $O628, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); $O32 = $O264 - 1; O604: goto O330; O330: if (!($O32 > -1)) { goto O116; } $O969 = "\x5f\x5f\x5f\156\x6f\151\x73\145\x5f\137\x5f" . sprintf("\45\40\x35\144", count($this->noise) + 1000); if (is_object($debug_object)) { $debug_object->debug_log(2, "\153\x65\x79\x20\151\x73\x3a\40" . $O969); } $O249 = $O103 ? 0 : 1; $this->noise[$O969] = $O628[$O32][$O249][0]; goto O862; O862: $this->doc = substr_replace($this->doc, $O969, $O628[$O32][$O249][1], strlen($O628[$O32][$O249][0])); O570: --$O32; goto O604; O116: goto O375; O375: $this->size = strlen($this->doc); if ($this->size > 0) { $this->char = $this->doc[0]; } goto O305; O305: } function restore_noise($O660) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } O281: if (!(($O223 = strpos($O660, "\x5f\x5f\137\x6e\157\x69\x73\x65\x5f\137\137")) !== false)) { goto O942; } if (strlen($O660) > $O223 + 15) { $O969 = "\x5f\x5f\137\156\157\151\x73\x65\x5f\137\137" . $O660[$O223 + 11] . $O660[$O223 + 12] . $O660[$O223 + 13] . $O660[$O223 + 14] . $O660[$O223 + 15]; if (is_object($debug_object)) { $debug_object->debug_log(2, "\x6c\157\143\x61\x74\x65\144\40\x6b\x65\x79\40\157\x66\72\40" . $O969); } if (isset($this->noise[$O969])) { $O660 = substr($O660, 0, $O223) . $this->noise[$O969] . substr($O660, $O223 + 16); } else { $O660 = substr($O660, 0, $O223) . "\x55\116\104\x45\x46\111\116\x45\x44\40\116\x4f\111\123\105\40\106\117\122\40\113\x45\x59\x3a\x20" . $O969 . substr($O660, $O223 + 16); } } else { $O660 = substr($O660, 0, $O223) . "\x4e\x4f\40\x4e\x55\x4d\x45\x52\x49\103\40\x4e\117\111\x53\105\x20\113\x45\x59" . substr($O660, $O223 + 11); } goto O281; O942: return $O660; } function search_noise($O660) { global $debug_object; if (is_object($debug_object)) { $debug_object->debug_log_entry(1); } foreach ($this->noise as $O751) { if (strpos($O751, $O660) !== false) { return $O751; } O002: } O511: } function __toString() { return $this->root->innertext(); } function __get($O201) { switch ($O201) { case "\x6f\x75\164\x65\x72\x74\x65\x78\x74": return $this->root->innertext(); case "\x69\156\x6e\x65\x72\164\145\170\x74": return $this->root->innertext(); case "\160\154\141\x69\156\164\145\170\x74": return $this->root->text(); case "\143\150\141\x72\x73\145\164": return $this->_charset; case "\164\141\162\x67\145\x74\x5f\143\150\x61\x72\163\145\x74": return $this->_target_charset; } O544: O536: } function childNodes($O249 = -1) { return $this->root->childNodes($O249); } function firstChild() { return $this->root->first_child(); } function lastChild() { return $this->root->last_child(); } function createElement($O201, $O63 = null) { return @str_get_html("\74{$O201}\76{$O63}\x3c\x2f{$O201}\x3e")->firstChild(); } function createTextNode($O63) { return @end(str_get_html($O63)->nodes); } function getElementById($O116) { return $this->find("\x23{$O116}", 0); } function getElementsById($O116, $O249 = null) { return $this->find("\x23{$O116}", $O249); } function getElementByTagName($O201) { return $this->find($O201, 0); } function getElementsByTagName($O201, $O249 = -1) { return $this->find($O201, $O249); } function loadFile() { $O031 = func_get_args(); $this->load_file($O031); } }
Function Calls
None |
Stats
MD5 | 8b9508ae8da82aae6585e474d8a6a74e |
Eval Count | 0 |
Decode Time | 79 ms |