0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageArticlesFactory.php
<?php class l50 extends l3c implements l4g { protected $O3j="content_\155\141ge_a\162\164\151clesfac\164\157\162y.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="h2"]/a'; $O5k="\150\164\164\160\072\057\057\167\167w.a\162\164\151\143\154\145\163\146act\157\162\171\056\143\157\155\057sea\162\143\150\057".urlencode($this->l3h())."/\160age$l52\056\150\164\155\154"; $O13=$this->l3l($O5k); $l33=$this->l3o($O13,$O4j); foreach ($l33 as $entry) { $l9f=$entry->getattributenode("\150ref")->value; if (strpos($l9f,"\163\145\141rch") !== 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="txt-main"]/h1[@class="h2"]'; $O4l='//div[@class="txt-main"]/p[not(@id) and not(@class)]'; $l4m='//div[@class="txt-main"]/div[not(@id) and not(@class)]'; $content=$this->l3o($O13,$O4l); $l4o=$this->l3o($O13,$l4l); $title="\074h2>".$l4o->item(0)->textContent."\074\057h2>"; if (!$content->item(0)->textContent) { return FALSE; } foreach ($content as $O6x) { $O4m.="\074\160>".$O6x->textContent."\074/p>"; } $O4n='@<script[^>]*?>.*?</script>@si'; $O9f='@<table[^>]*?>.*?</table>@si'; $O4m=preg_replace($O4n,'',$O4m); $O4m=preg_replace($O9f,'',$O4m); $O3p=$this->l3o($O13,$l4m); $O4o=$this->l4n($O3p->item(0)->childNodes); $this->content =$title.$O4m."\074p><st\162\157\156g>About \164\150\145 Author\074\057\163trong>\074\057\160><p>$O4o</p>"; $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; } }?>