0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
affiliate-mage
/
classes
/
[
Home
]
File: amazon.class.php
<?php class l1d { private $Os; private $O20; private $l21; private $O21; private $l22; private $O15; private $O22; private $l23; private $O23; private $l24; private $O24; public function l18($Os) { $this->Os =$Os; } public function setlocale($O20) { $this->O20 =$O20; } public function O1d($l21) { $this->l21 =$l21; } public function l1e($O21) { $this->O21 =$O21; } public function O1e($l22) { $this->l22 =$l22; } public function O17($O15) { $this->O15 = (int) $O15; } private function l25() { switch ($this->O20) { case "U\123": $this->O22 ="ht\164\160\072//e\143\163\056amazon\141\167\163.com/on\143\141\057xml?"; $this->O23 ="ht\164\160\072\057/www\056\141\155azon.co\155\057\145xec/obi\144\157\163/ASIN/"; $this->l24 ="\044"; break; case "CA": $this->O22 ="htt\160\072\057/ecs.am\141\172\157naws.ca/\157\156\143a/xml?"; $this->O23 ="\150ttp://www\056\141\155azon.ca\057\145\170ec/obi\144\157\163/ASIN/"; $this->l24 ="\044"; break; case "DE": $this->O22 ="\150\164\164\160\072\057\057\145cs.\141\155\141\172\157\156aws\056\144\145\057\157\156\143a/x\155\154\077"; $this->O23 ="ht\164\160\072\057\057www\056\141\155\141\172\157n.d\145\057\145\170\145\143\057obi\144\157\163\057\101\123\111N/"; $this->l24 ="\342\202\254"; break; case "\106R": $this->O22 ="http://e\143\163.amazona\167\163\056fr/onca\057\170\155l?"; $this->O23 ="\150ttp://www.\141\155\141zon.fr/\145\170\145\143/obido\163\057\101SIN/"; $this->l24 ="\342��"; break; case "\112\120": $this->O22 ="http:/\057\145cs.ama\172\157\156aws.\152\160/onca\057\170ml?"; $this->O23 ="\150\164tp://www\056\141\155azon.jp\057\145\170ec/obid\157\163\057ASIN/"; $this->l24 ="�\245"; break; case "UK": $this->O22 ="http://ecs.amazonaws.co.uk/onca/x\155\154\077"; $this->O23 ="htt\160\072\057\057www\056\141\155\141\172on.\143\157\056\165\153\057\145xec\057\157\142\151\144\157\163/AS\111\116\057"; $this->l24 ="£"; break; default : $this->O22 ="htt\160\072\057\057\145\143\163\056\141maz\157\156\141\167\163\056com\057\157\156\143\141\057\170ml?"; $this->O23 ="\150\164\164\160\072\057\057\167ww.\141\155\141\172\157\156.co\155\057\145\170\145\143\057obi\144\157\163\057\101\123IN/"; $this->l24 ="\044"; break; } } private function O25() { $this->l25(); $l26['Service']="\101WSEComme\162\143\145Service"; $l26['Version']="2\060\061\061-08-01"; $l26['Operation']="ItemSea\162\143\150"; $l26['AWSAccessKeyId']=$this->O21; $l26['AssociateTag']=$this->l21; $l26['ResponseGroup']="\114a\162\147\145"; $l26['SearchIndex']="Bl\145\156\144ed"; $l26['Timestamp']=gmdate("Y-\155\055\144\134\124\110\072\151\072s\134Z"); $l26['Keywords']=$this->Os; ksort($l26); $this->O24 =array(); foreach ($l26 as $O26 => $value) { $O26=str_replace("\0457E","~",rawurlencode($O26)); $value=str_replace("\045\067E","~",rawurlencode($value)); $this->O24[]=$O26."=".$value; } $this->O24 =implode("&",$this->O24); $l27=parse_url($this->O22); $O27="GET"; $l28=$l27['host']; $O28=$l27['path']; $l29=$O27."\n".$l28."\n".$O28."\n".$this->O24; $O29=base64_encode(hash_hmac("sha\062\065\066",$l29,$this->l22 ,TRUE)); $O29=str_replace("%7E","~",rawurlencode($O29)); $this->l23 =$this->O22.$this->O24."&S\151\147\156ature=".$O29; } private function l2a($url) { try { $content=''; $O7=curl_init(); curl_setopt($O7,CURLOPT_USERAGENT,"Moz\151\154\154\141\057\065.0 \050\127\151\156\144\157\167s; \125\073\040\127\151\156\144\157ws \116\124\040\065\056\061\073\040\162v:1\056\067\056\063\051\040\107eck\157\057\062\060\060\064\061001\040\106\151\162\145\146\157x/0\056\061\060\056\061"); curl_setopt($O7,CURLOPT_URL,$url); curl_setopt($O7,CURLOPT_FOLLOWLOCATION,TRUE); curl_setopt($O7,CURLOPT_CONNECTTIMEOUT,012); curl_setopt($O7,CURLOPT_TIMEOUT,024); 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->l2c =simplexml_load_string($this->O2b ,'SimpleXMLElement',LIBXML_NOERROR|LIBXML_NOWARNING); } private function O2c($ASIN) { $url=$this->O23.$ASIN."\057".$this->l21."\057"; return $url; } private function l2d($O2d) { $O1f=array(); $lg=get_option('AM_Options'); $O1s=new l1t(O0); $O3=0; $l2e=count($this->l2c->Items->Item); if ( isset ($this->l2c->Items->Item) && $l2e>0) { foreach ($this->l2c->Items->Item as $Oj => $lk) { $O2e=NULL; $O1f[$O3]['url']=$this->O2c($lk->ASIN); if ($lk->MediumImage->URL != '') { $O1f[$O3]['thumbNail']= (string) $lk->MediumImage->URL; } else { $O1f[$O3]['thumbNail']= (string) $lk->SmallImage->URL; } $O1f[$O3]['description']=str_replace("&","&\141\155\160\073",substr(strip_tags($lk->EditorialReviews->EditorialReview[0]->Content),0,0620)."\056\056\056"); $O1f[$O3]['title']=str_replace('"','',str_replace("&","&",strip_tags($lk->ItemAttributes->Title))); $listPrice=number_format($lk->ItemAttributes->ListPrice->Amount /0144,2); $lowestNewPrice=number_format($lk->OfferSummary->LowestNewPrice->Amount /0144,2); $lowestUsedPrice=number_format($lk->OfferSummary->LowestUsedPrice->Amount /0144,2); if ($listPrice>0) { $O2e[]=$listPrice; } if ($lowestNewPrice>0) { $O2e[]=$lowestNewPrice; } if ($lowestNewPrice>0) { $O2e[]=$lowestNewPrice; } if ($O2e != NULL) { sort($O2e); $O1f[$O3]['price']=$this->l24.$O2e[0]; } else { $O1f[$O3]['price']=''; } $O3 ++; } } if ($O1f != NULL && count($O1f)>=$this->O15) { $O1f=array_slice($O1f,0,$this->O15); } $this->O1f =$O1f; if ($lg['AM_Cache_Timeout']>0) { $data=$O1f; $O1s->set($O2d,$data,TRUE); } } public function l1f() { global $post; $O2d='amazon'.$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->l2d($O2d); } else { $this->O1f =$data; } } } ?>