0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageSimplySearch.php
<?php class l4y extends l3c implements l4g { protected $O3j="c\157nten\164\137\155age_sim\160\154\171search.\154\157\147"; 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) { $l4h=NULL; $O4j="//t\144\057\141\133\100\143\154ass\075\047\154\137\154\151\156k']"; $url="ht\164\160\072\057\057\167\167w.s\151\155\160\154\171\163\145arch\064\151\164\056\143\157m/a\162\164\151\143\154\145\163e.p\150\160\077\153\145\171\167\157rd="; $url.=urlencode($this->l3h())."\046\160\141ge=".($O3); $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); if (!$l33) { return FALSE; } foreach ($l33 as $entry) { $url=$entry->getattributenode("hre\146")->value; if (preg_match('#author-articles#',$url)) { continue; } if (preg_match('#page=#',$url)) { continue; } $url=str_replace('/article/','/articlecode/',$url); $url='http://www.simplysearch4it.com'.$url; $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) { $this->log(); return TRUE; } } } else { return FALSE; } return FALSE; } public function O4k($url) { $O13=$this->l3l($url); $l31=''; $O33=new domdocument(); @$O33->loadhtml($O13); preg_match('~<input type="text" size="54" name="name1" value="(.*?)">~',$O13,$l14); $title=$l14[1]; $O4m=$this->l9d($O33->getelementsbytagname('textarea')->item(0)); $O4o=$this->l9d($O33->getelementsbytagname('textarea')->item(1)); if (!$O4m) { return FALSE; } $O4n='@<script[^>]*?>.*?</script>@si'; $O4m=preg_replace($O4n,'',$O4m); $O4m=strip_tags($O4m,"<p>\074\157l><ul\076\074li><st\162\157ng><b\076\074i><\141\076<em>\074\165><br><\150\062\076<h3><h\064\076"); $title="\074h2>".$title."</\150\062\076"; if (!$O4m) { return FALSE; } $this->content =$title.$O4m; $O4o=str_replace('<a href','<a target="_blank" href',$O4o); $O4o=str_replace('Article Source:','<br />Article Source: ',$O4o); $this->l3p(preg_replace('#<img[^>]*>#i',"",$O4o)); return TRUE; } private function O9d($l4e) { return preg_replace('@(?<![.*">])\\b(?:(?:https?|ftp|file)://|[a-z]\\.)[-A-Z0-9+&#/%=~_|$?!:,.]*[A-Z0-9+&#/%=~_|$]@i',' <a href="\\0" target="_blank">\\0</a> ',$l4e); } private function l9d($O5p) { $l9e=""; $l4p=$O5p->childNodes; foreach ($l4p as $O4p) { $O9e=new domdocument(); $O9e->appendchild($O9e->importnode($O4p,TRUE)); $l9e.=trim($O9e->savehtml()); } return $l9e; } 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; } }?>