0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageFreeLibrary.php
<?php class O50 extends l3c implements l4g { protected $O3j="c\157ntent_ma\147\145\137freelib\162\141\162y.log"; public function poll() { return $this->O4g(); } public function O4g() { try { if ($this->l4j($O3)) { return TRUE; } return FALSE; } catch (exception $O2a) { if ($O2a->getcode()<0) { return FALSE; } } } public function l4j($O3) { $l52=$O3+1; $O4j='//td[@class="title"]/a'; $O5k="htt\160\072\057\057\167\167\167\056\164\150\145\146ree\154\151\142\162\141\162\171\056\143\157m/_/sea\162\143\150/Searc\150\056\141spx?\123\145\141rchBy=\060\046\127ord=".urlencode($this->l3h())."&Search\075\123\145arch&By=\060"; $O13=$this->l3l($O5k); $l33=$this->l3o($O13,$O4j); foreach ($l33 as $entry) { $l9f="\150\164\164p://www\056\164\150efreeli\142\162\141ry.c\157\155".$entry->getattributenode("h\162\145\146")->value; if (strpos($l9f,"sea\162\143\150") !== FALSE) { continue; } $l2r=md5($l9f); if ($this->exists($l2r)) { continue; } $l4h[]=$l9f; } 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='//td[@id="article_text"]/h1[@id="article_title"]'; $O4l='//td[@id="article_text"]'; $content=$this->l3o($O13,$O4l); $l4o=$this->l3o($O13,$l4l); $title="<h2\076".$l4o->item(0)->textContent."\074\057\150\062\076"; if (!$content->item(0)->textContent) { return FALSE; } $O4m=$this->l4n($content->item(0)->childNodes); $O4n='@<script[^>]*?>.*?</script>@si'; $O9f='@<table[^>]*?>.*?</table>@si'; $O9g='@<span[^>]*?>.*?</span>@si'; $l9c='@<div[^>]*?>.*?</div>@si'; $l9h='@<h1[^>]*?>.*?</h1>@si'; $O4m=preg_replace($O4n,'',$O4m); $O4m=preg_replace($O9f,'',$O4m); $O4m=preg_replace($O9g,'',$O4m); $O4m=preg_replace($l9c,'',$O4m); $O4m=preg_replace($l9h,'',$O4m); $this->content =$title.$O4m; $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; } }?>