0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
affiliate-mage
/
classes
/
[
Home
]
File: cj.class.php
<?php class l1j { private $Os; private $O2f; private $l2g; private $O2g; private $O15; private $O22; private $l23; private $O23; private $l24; public function l18($Os) { $this->Os =$Os; } public function O1j($O2f) { $this->O2f =$O2f; } public function l1k($l2g) { $this->l2g =$l2g; } public function O1k($O2g) { $this->O2g =$O2g; } public function O17($O15) { $this->O15 = (int) $O15; } private function l25() { $this->O22 ='https://product-search.api.cj.com/v2/product-search?'; } private function O25() { $this->l25(); $this->l23 =$this->O22."webs\151\164\145\055\151\144\075".$this->O2f."&\153\145\171\167\157rds\075".$this->Os."\046\154\157\167-pr\151\143\145\075\061"."&r\145\143\157\162\144s-p\145\162\055\160\141\147e=".$this->O15; if ( isset ($this->l2g) && $this->l2g != '') { $this->l23 .="\046adve\162\164\151ser-ids=".$this->l2g; } else { $this->l23 .="\046\141\144vertise\162\055\151ds=join\145\144"; } } 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,"Moz\151\154\154a/5.0 (W\151\156\144ows; U;\040\127\151ndows N\124\040\065.1; r\166\072\061.7.3)\040\107\145cko/20\060\064\061001 F\151\162\145fox/0\056\061\060.1"); 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); curl_setopt($O7,CURLOPT_SSL_VERIFYPEER,FALSE); curl_setopt($O7,CURLOPT_SSL_VERIFYHOST,FALSE); curl_setopt($O7,CURLOPT_HTTPHEADER,array('authorization: '.$this->O2g)); $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->l2i =simplexml_load_string($this->O2b ,'SimpleXMLElement',LIBXML_NOERROR|LIBXML_NOWARNING); } private function O2i($O2d) { $O1l=array(); $O3=0; $lg=get_option('AM_Options'); $O1s=new l1t(O0); if (count($this->l2i->products->product) == 0) { return FALSE; } $l2j=array(); foreach ($this->l2i->products->product as $lk) { if (!in_array(str_replace('"','',str_replace("&","&\073",strip_tags($lk->name))),$l2j)) { $O2j=$lk->xpath('buy-url'); $O1l[$O3]['url']= (string) $O2j[0]; $l2k=$lk->xpath('image-url'); $O1l[$O3]['thumbNail']= (string) $l2k[0]; $O1l[$O3]['description']=str_replace("&","\046amp\073",strip_tags($lk->description)); $O1l[$O3]['title']=str_replace('"','',str_replace("\046","\046\141\155p;",strip_tags($lk->name))); $O1l[$O3]['price']="\044".(double) $lk->price; $O3 ++; $l2j[]=str_replace('"','',str_replace("\046","\046amp;",strip_tags($lk->name))); } if ($O3>=$this->O15) { break; } } $this->O1l =$O1l; if ($lg['AM_Cache_Timeout']>0) { $data=$O1l; $O1s->set($O2d,$data,TRUE); } } public function l1l() { global $post; $O2d='cj'.$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->O2i($O2d); } else { $this->O1l =$data; } } } ?>