0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageEarticles.php
<?php class O4w extends l3c implements l4g { protected $O3j="cont\145nt_mage_e\141\162\164icleso\156\154\151ne.log"; 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) { $O4j="/\057\154\151[@c\154\141\163\163\075\047\155\141in_\164\151\164\154\145\163\137\162ece\156\164\047\135\057\141"; $url="\150\164tp:\057\057\167\167\167\056ear\164\151\143\154\145\163\157\156line\056\143\157\155\057\153\167/"; $url.=urlencode($this->l3h()); $url.="/".$O3; $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); if (!$l33) { return FALSE; } foreach ($l33 as $entry) { $url=$entry->getattributenode("\150r\145f")->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) { $O99=explode("/",$url); $l9a=end($O99); $url='http://www.earticlesonline.com/ezineready.php?id='.$l9a; $O13=$this->l3l($url); $O33=new domdocument(); @$O33->loadhtml($O13); $O9a=$O33->getelementsbytagname('textarea')->item(1)->textContent; $l9b=explode("\n",$O9a); $O3=0; $l31=''; foreach ($l9b as $O9b) { if ($O3 === 0) { $O9b="<h2>".$O9b."</h2>"; } $l31.=$O9b."\074br />"; $O3 ++; } $O4n='@<script[^>]*?>.*?</script>@si'; $O4m=preg_replace($O4n,'',$l31); $O4m=htmlspecialchars_decode(strip_tags($O4m,"<p>\074\157\154><ul><li\076\074\163trong>\074\142\076<i><a>\074\145\155><u><b\162\076\074h2><h\063\076\074h4>")); if (!$O4m) { return FALSE; } $this->content =$O4m; $this->content =preg_replace('#<img[^>]*>#i',"",$this->content); $this->content =preg_replace('#onclick="?(.*?)"#mis',"",$this->content); return TRUE; } private function l4n($l4p) { $O13=""; $l4q=new domdocument(); $l4q->appendchild($l4q->importnode($l4p,TRUE)); $O13=$l4q->savehtml(); return $O13; } }?>