0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageArticleBasement.php
<?php class l4x extends l3c implements l4g { protected $O3j="con\164e\156\164\137\155\141ge_\141\162\164\151\143\154eba\163\145\155\145\156\164\056\154\157g"; public function poll() { return $this->O4g(); } public function O4g() { try { for ($O3=1; $O3<5; $O3 ++) { if ($this->l4j($O3)) { return TRUE; } } return FALSE; } catch (exception $O2a) { if ($O2a->getcode()<0) { return FALSE; } } } public function l4j($O3) { $O4j="\057/h2[@\143\154\141ss='titl\145\047\135/a"; $url='http://www.articlebasement.com/?s='; $url.=str_replace("\040","+",$this->l3h())."&ta\142\156\157=2&paged\075".($O3); $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); if (!$l33) { return FALSE; } foreach ($l33 as $entry) { $url=$entry->getattributenode("href")->value; $l2r=md5($url); if ($this->exists($l2r)) { continue; } $l4h[]=$url; } if (!$l4h) { return FALSE; } shuffle($l4h); 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="\057/h1[@c\154\141\163s='title\047\135"; $O4l='//div[@class="entry"]'; $l4m="/\057\144\151v[@class\075\047\160ost-aut\150\157\162']/div[\100\143\154ass='\160\162\157file-c\157\156\164ent']"; $content=$this->l3o($O13,$O4l); if (!$content->item(0)->textContent) { return FALSE; } $O4m=$this->l4n($content->item(0)->childNodes); $O4n='@<script[^>]*?>.*?</script>@si'; $l9c='@<div[^>]*?>.*?</div>@si'; $O4m=preg_replace($O4n,'',$O4m); $O4m=preg_replace($l9c,'',$O4m); $O4m=strip_tags($O4m,"\074p><ol><ul>\074\154\151><stron\147\076\074b><i><\141\076\074em><u>\074\142\162><h2><\150\063\076<h4>"); $O4m=str_replace("\n","<br />",$O4m); $l4o=$this->l3o($O13,$l4l); $title="\074\150\062\076".$l4o->item(0)->textContent."\074\057\150\062\076"; 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','<a target="_blank" href',$O4o); $O4o=str_replace('h2>','h4>',$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; } }?>