0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageArticleBase.php
<?php class O4i extends l3c implements l4g { protected $O3j="\143ontent_m\141\147\145_article\142\141\163e.log"; public function poll() { return $this->O4g(); } public function O4g() { try { for ($O3=1; $O3<024; $O3 ++) { if ($this->l4j($O3)) { return TRUE; } } return FALSE; } catch (exception $O2a) { if ($O2a->getcode()<0) { return FALSE; } } } public function l4j($O3) { $O4j="//d\151\166\133\100\143\154ass\075\047\141\162\164\151\143\154e_r\157\167\047\135\057\144\151\166\133\100cla\163\163\075\047\164\151\164\154\145']/\150\063\057\141"; $url="ht\164\160\072\057\057\167ww.\141\162\164\151\143l\145sbas\145\056\143om/fin\144\055\141rticl\145\163\056php?q="; $url.=urlencode($this->l3h())."&p\141\147\145\075".($O3); $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); if (!$l33) { return FALSE; } foreach ($l33 as $entry) { $url=$entry->getattributenode("\150r\145\146")->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\057div[@clas\163\075\047article\137\160\147']/h1"; $O4l='//div[@class="article_cnt"]/div[@class="KonaBody"]'; $l4m="\057/div[@cla\163\163\075'articl\145\137\141uthor']"; $content=$this->l3o($O13,$O4l); if (!$content->item(0)->textContent) { 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><s\164\162\157ng><b><i\076\074\141><em>\074\165\076<br><h\062\076\074h3><h\064\076"); $l4o=$this->l3o($O13,$l4l); $title="<h2>".$l4o->item(0)->textContent."\074\057\1502>"; if (!$O4m) { return FALSE; } $this->content =$title.$O4m; $options=new l43(); $options->load(); if ($options->l2f("\141Base_sho\167\101\165thorBio")) { $O3p=$this->l3o($O13,$l4m); $O4o=$this->l4n($O3p->item(0)->childNodes); $this->l3p(preg_replace('#<img[^>]*>#i',"",$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; } }?>