0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
affiliate-mage
/
classes
/
[
Home
]
File: overstock.class.php
<?php class O1g { private $Os; private $O3a; private $O15; private $O22; private $l23; private $O23; private $l24; public function l18($Os) { $this->Os =urlencode($Os); } public function l1h($O3a) { $this->O3a =$O3a; } public function O17($O15) { $this->O15 = (int) $O15; } private function l25() { $this->O22 ='http://www.overstock.com/productxml?'; } private function O25() { $this->l25(); $this->l23 =$this->O22."\153eyw\157\162\144s=".$this->Os."&co\165\156\164\075".$this->O15."&quic\153\154\151\163t=1"; } private function l2a($url) { $l2h=3; $O2h=7; $O11=get_option('AM_Options'); if (! isset ($O11['AM_cj_timeout']) or $O11['AM_cj_timeout'] == '') { $l2h=3; } else { $l2h=$O11['AM_cj_timeout']; $O2h=$l2h+5; } if ($l2h == 0) { $O2h=1; } $content=''; try { $O7=curl_init(); curl_setopt($O7,CURLOPT_USERAGENT,"Mo\172illa/5.0 (\127\151\156dows; \125\073\040Window\163\040\116T 5.1\073\040\162v:1.7\056\063\051 Geck\157\057\06200410\060\061\040Fire\146\157\170/0.10.\061"); curl_setopt($O7,CURLOPT_URL,$url); curl_setopt($O7,CURLOPT_FOLLOWLOCATION,TRUE); curl_setopt($O7,CURLOPT_CONNECTTIMEOUT,$l2h); curl_setopt($O7,CURLOPT_TIMEOUT,$O2h); curl_setopt($O7,CURLOPT_MAXREDIRS,012); curl_setopt($O7,CURLOPT_RETURNTRANSFER,TRUE); $content=curl_exec($O7); $response=curl_getinfo($O7); curl_close($O7); } catch (exception $O2a) { $content=NULL; } return $content; } private function l2b() { $this->O2b =$this->l2a($this->l23); $this->l3b =simplexml_load_string($this->O2b ,'SimpleXMLElement',LIBXML_NOERROR|LIBXML_NOWARNING); } private function O2c($SKU) { $url="ht\164\160://\167\167w.j\144oq\157\143\171.\143\157m/\143\154ic\153-".$this->O3a."-106\066\0615\0703\077URL=htt\160\045\063A%\062F\0452\106w\167w\056ov\145rst\157\143k.co\155\045\062F%3Ffp%3Df%\0626\120A\107\105%3\104\120\122\117\104\125\103\124\045\0626\117\123\123\113\125\045\063\104".$SKU; return $url; } private function O3b($O2d) { $l1i=array(); $lg=get_option('AM_Options'); $O1s=new l1t(O0); $O3=0; if (count($this->l3b->OSTKPRODUCT) == 0) { return FALSE; } foreach ($this->l3b->OSTKPRODUCT as $Oj => $lk) { $O2e=NULL; $l1i[$O3]['url']=$this->O2c($lk->SKU); $l1i[$O3]['thumbNail']=$lk->ThumbnailURL; $l1i[$O3]['description']=str_replace("\046","\046\141\155\160\073",strip_tags($lk->ShortDescription)); $l1i[$O3]['title']=str_replace('"','',str_replace("\046","&am\160\073",strip_tags($lk->Name))); $l1i[$O3]['price']="\044".(double) $lk->Price; $O3 ++; } $this->l1i =$l1i; if ($lg['AM_Cache_Timeout']>0) { $data=$l1i; $O1s->set($O2d,$data,TRUE); } } public function O1h() { global $post; $O2d='overstock'.$post->post_name.$post->ID.$this->Os; $O1s=new l1t(O0); $data=$O1s->l2f($O2d,TRUE); if ($data === FALSE || $data == '') { $this->O25(); $this->l2b(); $this->O3b($O2d); } else { $this->l1i =$data; } } } ?>