0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: BestSpinner.php
<?php class O48 { private $url='http://thebestspinner.com/api.php'; private $O91=NULL; private $O3r=NULL; public function __construct() { $this->O3r =new l43(); $this->O3r->load(); } private function l92($url,$data,&$O92) { $O7=curl_init(); curl_setopt($O7,CURLOPT_URL,$url); curl_setopt($O7,CURLOPT_POST,TRUE); curl_setopt($O7,CURLOPT_POSTFIELDS,$this->l93($data)); curl_setopt($O7,CURLOPT_FOLLOWLOCATION,TRUE); curl_setopt($O7,CURLOPT_RETURNTRANSFER,1); curl_setopt($O7,CURLOPT_REFERER,$url); curl_setopt($O7,CURLOPT_TIMEOUT,012); curl_setopt($O7,CURLOPT_CONNECTTIMEOUT,2); $O93=trim(curl_exec($O7)); curl_close($O7); return $O93; } private function l93($data) { $l94=""; foreach ($data as $Oj => $lk) { $l94.= "$Oj=".urlencode($lk)."&"; } return $l94; } private function O94() { $O3l=$this->O3r->l2f('bestSpinnerUsername'); $password=$this->O3r->l2f('bestSpinnerPassword'); if (!$O3l || !$password) { return FALSE; } $O91=$this->O3r->l2f('bestSpinnerSession'); $l95=$this->O3r->l2f('bestSpinnerSessionCreatedTime'); if (!$O91 || (time()-$l95>=0250600)) { $data=array(); $data['action']='authenticate'; $data['format']='php'; $data['username']=$O3l; $data['password']=$password; $l31=unserialize($this->l92($this->url ,$data,$O92)); if ($l31['success'] == 'true') { $O91=$l31['session']; $l95=time(); $this->O3r->set('bestSpinnerSession',$O91); $this->O3r->set('bestSpinnerSessionCreatedTime',$l95); $this->O3r->save(); return $O91; } else { return FALSE; } } else { return $O91; } } private function O95() { } private function l96($O13,$O27) { $data=array(); $data['session']=$this->O91; $data['format']='php'; $data['text']=$O13; $data['action']=$O27; $data['maxsyns']='3'; if ($O27 == 'replaceEveryonesFavorites') { $data['quality']='1'; } $l31=$this->l92($this->url ,$data,$O92); $l31=unserialize($l31); $this->O96 =$l31; if ($l31['success'] == 'true') { return $l31['output']; } else { return FALSE; } } public function l49($O13,$O5w) { $l97=dirname( __FILE__)."\057t\142\163\056\154\157\147"; $O97=array(); $O97[$O5w]['tbs']=TRUE; $this->O91 =$this->O94(); if (!$this->O91) { $O97['AuthOutput']=$this->O96; $O97[$O5w]['success']=FALSE; $O97=serialize($O97)."\n"; file_put_contents($l97,$O97,FILE_APPEND); return $O13; } $l98=$this->l96($O13,'rewriteText'); if (!$l98) { $O97[$O5w]['success']=FALSE; $O97['error']=$l98['error']; $O97=serialize($O97)."\n"; file_put_contents($l97,$O97,FILE_APPEND); return $O13; } else { $O97[$O5w]['success']=TRUE; $O97=serialize($O97)."\n"; file_put_contents($l97,$O97,FILE_APPEND); return $l98; } } }?>