0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMageFlickr.php
<?php class O4t extends l3c implements l4g { protected $O3j="co\156t\145\156\164\137\155\141\147\145\137\146lic\153\162\056\154\157\147"; public $l3f=TRUE; private function l55($url) { $O3m=get_option('ContentMageOptions'); $content=''; $O7=curl_init(); curl_setopt($O7,CURLOPT_USERAGENT,"M\157\172ill\141\057\065\056\060\040\050\127\151ndo\167\163\073\040\125\073\040\127\151\156\144ows \116\124\040\065\056\061\073\040\162\166\0721.7\056\063\051\040\107\145\143\153o/2\060\060\064\061\060\060\061\040\106ire\146\157\170\057\060\056\061\060.1"); curl_setopt($O7,CURLOPT_URL,$url); curl_setopt($O7,CURLOPT_FOLLOWLOCATION,TRUE); curl_setopt($O7,CURLOPT_CONNECTTIMEOUT,012); curl_setopt($O7,CURLOPT_TIMEOUT,036); curl_setopt($O7,CURLOPT_MAXREDIRS,012); curl_setopt($O7,CURLOPT_RETURNTRANSFER,TRUE); if ($O3m['interfaceAddress'] != '') { curl_setopt($O7,CURLOPT_INTERFACE,trim($O3m['interfaceAddress'])); } $content=curl_exec($O7); curl_close($O7); return $content; } public function O4g() { $O4j="/\057\141\057img[@c\154\141\163s='pc_\151\155\147']"; $O55=urlencode($this->l3h()); $url="http:\057\057www.fli\143\153\162.com/\163\145\141rch/?\161\075".$O55; $url.="&l=c\143\046\143t=0&mt=\160\150\157tos&adv=\061\046\172=e"; $O13=$this->l3l($url); $l33=$this->l3o($O13,$O4j); foreach ($l33 as $entry) { $url=$entry->getattributenode("src")->value; $this->l3d =md5($url); if ($this->exists($this->l3d)) { continue; } $l56=str_replace("/","",$this->l3h()); $O3=1; do { $O56=""; if ($O3 != 1) { $O56="\137".$O3; } $l1y=l3s::$O1p."\057../..\057\165\160loads/".$l56.$O56."\056\152pg"; $O3 ++; } while (file_exists($l1y)); $O4m=$this->l55($url); if (!$O4m) { return FALSE; } $l57=imagecreatefromstring($O4m); imagejpeg($l57,$l1y,0144); chmod($l1y,0666); $l56=basename($l1y); $l1y=get_option("\163i\164\145\165\162\154"); if (substr($l1y,-1) != "/") { $l1y.="/"; } $l1y.="wp\055\143\157\156\164\145nt/\165\160\154\157\141\144s/".$l56; $keyword=htmlentities($this->l3h(),ENT_QUOTES,'UTF-8'); $this->content =str_replace(array('{$url}','{$keyword}'),array($l1y,$keyword,),$this->l3j()); return TRUE; } return FALSE; } public function poll() { return $this->O4g(); } } ?>