0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageGoArticles.php
<?php class O4u extends l3c implements l4g { protected $O3j="co\156tent_mag\145\137\147oartic\154\145\163.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) { $O57=($O3>0) ? $O3*0144: 0; $O4j="\057/div\133\100cl\141s\163\075'\163\137articl\145\047\135/div[@\143\154\141ss='s\137\141\162ticle_\151\156\146o']/a"; $url="\150\164\164p://goart\151\143\154es.com/\163\145\141\162ch/?t\171\160\145=&q=".urlencode($this->l3h())."\046\163\164art=$O57\046\154imit=100"; $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); foreach ($l33 as $entry) { $url='http://goarticles.com'.$entry->getattributenode("\150ref")->value; $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) { return TRUE; } } } else { return FALSE; } return FALSE; } public function O4k($url) { $url=$url."p\165\142lish"; $O13=$this->l3l($url); $l31=''; $l4l="\057\057\150\061\133\100class='art_head']"; preg_match_all('~<textarea.*?>(.*?)</textarea>~',$O13,$l58); $O4m=htmlspecialchars_decode(strip_tags($l58[1][0],"\074p\076\074\157\154\076\074\165\154><l\151\076\074\163\164\162\157ng>\074\142\076\074\151\076\074\141\076<em\076\074\165\076\074\142\162\076\074h2>\074\150\063\076\074\150\064>")); $O4o="<h4\076\101\142\157\165\164\040\164he \101\165\164\150\157\162</h\064\076".htmlspecialchars_decode(strip_tags($l58[1][1],"<p>\074\157\154\076\074\165\154\076\074li>\074\163\164\162\157\156\147\076\074b><\151\076\074\141\076\074\145\155\076<u>\074\142\162\076\074\150\062\076\074h3>\074\150\064\076")); $l4o=$this->l3o($O13,$l4l); $title="\074\150\062>".$l4o->item(0)->textContent."</h2>"; if (!$O4m) { return FALSE; } $this->content =$title.$O4m.$O4o; $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; } }?>