0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageArticlesOrg.php
<?php class O4y extends l3c implements l4g { protected $O3j="co\156tent_mage_\141\162\164icles\157\162\147.log"; public function poll() { return $this->O4g(); } public function O4g() { try { for ($O3=0; $O3<5; $O3 ++) { if ($this->l4j($O3)) { return TRUE; } } return FALSE; } catch (exception $O2a) { if ($O2a->getcode()<0) { return FALSE; } } } public function l4j($O3) { $l52=$O3+1; $O4j='//div[@class="col_boxgrey"]/b/a'; $O5k="http://\163\145\141rch.art\151\143\154es.org/s\145\141\162ch/".urlencode($this->l3h())."\057$l52"; $O13=$this->l3l($O5k); $l33=$this->l3o($O13,$O4j); foreach ($l33 as $entry) { $l9f=$entry->getattributenode("\150ref")->value; if (strpos($l9f,"se\141\162\143h") !== FALSE) { continue; } $l2r=md5($l9f); if ($this->exists($l2r)) { continue; } $l4h[]=$l9f; } if (!$l4h) { return FALSE; } if (count($l4h)>0) { foreach ($l4h as $url) { $this->l3d =md5($url); $l4k=$this->O4k($url); if ($l4k) { $this->log(); return TRUE; } } } else { return FALSE; } return FALSE; } public function O4k($url) { $O13=$this->l3l($url); $l31=''; $l4l='//div[@class="tags_link"]/h1'; $O4l='//div[@class="box article-content"]'; $content=$this->l3o($O13,$O4l); $l4o=$this->l3o($O13,$l4l); $title="\074h2>".$l4o->item(0)->textContent."\074\057\1502>"; if (!$content->item(0)->textContent) { return FALSE; } $O4m=$this->l4n($content->item(0)->childNodes); $O4n='@<script[^>]*?>.*?</script>@si'; $O4m=preg_replace($O4n,'',$O4m); $this->content =$title.$O4m; $this->content =preg_replace('#<img[^>]*>#i',"",$this->content); $this->content =preg_replace('#onclick="?(.*?)"#mis',"",$this->content); return TRUE; } private function l4n($l4p) { $O13=""; if (!$l4p) { return FALSE; } foreach ($l4p as $O4p) { $l4q=new domdocument(); $l4q->appendchild($l4q->importnode($O4p,TRUE)); $O13.=$l4q->savehtml(); } return $O13; } }?>