0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
affiliate-mage
/
classes
/
[
Home
]
File: linkshare.class.php
<?php class O1m { 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 l1n($l39) { $this->l39 =$l39; } public function O17($O15) { $this->O15 = (int) $O15; } private function l25() { $this->O22 ='http://productsearch.linksynergy.com/productsearch?'; } private function O25() { $this->l25(); $this->l23 =$this->O22."t\157\153en=".$this->l39."\046keywor\144\075".$this->Os."&\163\157\162\164=produ\143\164\156ame&sor\164\164\171pe=asc"."&MaxRes\165\154\164s=".$this->O15; } private function l2a($url) { $l2h=5; $O2h=012; $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,"\115ozilla/5.\060\040(Windows;\040\125\073 Windo\167\163\040NT 5.1\073\040\162v:1.7\056\063\051 Gecko\057\062\06004100\061\040\106ir\145\146\157x/0.10\056\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); curl_close($O7); } catch (exception $O2a) { $content=NULL; } return $content; } private function l2b() { $this->O2b =$this->l2a($this->l23); $this->O39 =simplexml_load_string($this->O2b ,'SimpleXMLElement',LIBXML_NOERROR|LIBXML_NOWARNING); } private function l3a($O2d) { $l1o=array(); $lg=get_option('AM_Options'); $O1s=new l1t(O0); $O3=0; if (count($this->O39->item) == 0) { return FALSE; } $l2j=array(); foreach ($this->O39->item as $lk) { $l1o[$O3]['url']= (string) $lk->linkurl; $l1o[$O3]['thumbNail']= (string) $lk->imageurl; if ($lk->description->long != '') { $l1o[$O3]['description']=str_replace("\046","\046\141\155\160\073",strip_tags($lk->description->long)); } else { $l1o[$O3]['description']=str_replace("&","\046\141\155\160;",strip_tags($lk->description->short)); } $l1o[$O3]['title']=str_replace('"','',str_replace("&","&\141\155\160\073",strip_tags($lk->productname))); $l1o[$O3]['price']="\044".(double) $lk->price; $O3 ++; $l2j[]=str_replace('"','',str_replace("&","\046\141mp;",strip_tags($lk->name))); if ($O3>=$this->O15) { break; } } $this->l1o =$l1o; if ($lg['AM_Cache_Timeout']>0) { $data=$l1o; $O1s->set($O2d,$data,TRUE); } } public function O1n() { global $post; $O2d='ls'.$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->l3a($O2d); } else { $this->l1o =$data; } } } ?>