0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMagePubarticles.php
<?php include_once "C\157ntentMageO\160\164\151ons.php"; class O4x extends l3c implements l4g { protected $O3j="content_ma\147\145\137pubarticl\145\163\056log"; public function poll() { return $this->O4g(); } public function O4g() { try { for ($O3=1; $O3<012; $O3 ++) { if ($this->l4j($O3)) { return TRUE; } } return FALSE; } catch (exception $O2a) { if ($O2a->getcode()<0) { return FALSE; } } } public function l4j($O3) { $O3r=new l43(); $O3r->load(); $O9c=$O3r->l2f("\160\165bArticle\163\101\156\163wers"); $l4h=NULL; $O4j="\057\057p[@class\075\047\164itle']\057\141"; $url="\150\164tp://www.\160\165\142articles\056\143\157m/searc\150\056\160hp?q="; $url.=urlencode($this->l3h())."\046\160age=".($O3); $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); if (!$l33) { return FALSE; } foreach ($l33 as $entry) { $url=$entry->getattributenode("hr\145\146")->value; if (!$O9c) { if (preg_match('#^http:\\/\\/answers#',$url)) { continue; } } if (!preg_match('#^http#',$url)) { $url='http://www.pubarticles.com'.$url; } $l2r=md5($url); if ($this->exists($l2r)) { continue; } $l4h[]=$url; } 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="//d\151\166\133\100\143\154ass\075\047\147\137\143\157\156\137\154t']\057\150\061\133\100\143\154\141ss=\047\147\137\164\151\164\154\145\1376']"; $O4l='//p[@class="content_desc_4 mt23 mb0"]'; $l4m="//di\166\133\100\143\154ass\075\047\165\156\151\164\137\160\145opl\145\047\135"; $content=$this->l3o($O13,$O4l); if (!$content->item(0)->textContent || $content->item(0)->textContent == 'NULL' || $content->item(0)->textContent === NULL) { return FALSE; } $O4m=$this->l4n($content->item(0)->childNodes); $O4n='@<script[^>]*?>.*?</script>@si'; $O4m=preg_replace($O4n,'',$O4m); $O4m=strip_tags($O4m,"<p><ol><\165\154\076<li><st\162\157\156g><b><i>\074\141\076<em><\165\076\074br><h2\076\074\1503><h4\076"); $l4o=$this->l3o($O13,$l4l); $title="\074h2>".$l4o->item(0)->textContent."\074\057\1502>"; if (!$O4m) { return FALSE; } $this->content =$title.$O4m; $O3p=$this->l3o($O13,$l4m); $O4o=$this->l4n($O3p->item(0)->childNodes); $O4o=str_replace('<a href="/author','<a href="http://www.pubarticles.com/author',$O4o); $O4o=str_replace('<a href','<a target="_blank" href',$O4o); $O4o=str_replace('h2>','h4>',$O4o); $O4o= "\074\142\162\040\057><b\162\040\057\076$O4o"; $this->l3p(preg_replace('#<img[^>]*>#i',"",$O4o)); 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; } }?>