0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
affiliate-mage
/
classes
/
[
Home
]
File: ebay.class.php
<?php class Od extends am_rss_php { private $Os; private $O20; private $O2k; private $O15; private $O22; private $l23; private $l24; private $l2l; private $O2l; private $l2m; private $O2m; protected $l2n; var $O2n; var $l2o; var $O2o; var $l2p; public function __construct() { $lg=get_option('AM_Options'); $this->l2o =8; $this->O2n ="-/012\063\06456789AB\103\104\105FGHIJKL\115\116\117PQRSTU\126\127\130YZabcd\145\146\147hijklmn\157\160\161rstuvw\170\171\172"; $this->O2o =FALSE; $this->l2n ="\141QdfT7hH\112\111\0706DdfbP03\127\127\144KLaOECv\067"; $this->l2p =microtime().getmypid(); if (! isset ($lg["AM_e\142\141\171RssApi"])) { $this->l2m ='new'; } else { $this->l2m =$lg["\101M_ebayRssA\160\151"]; } } public function l18($Os) { $this->Os =$Os; } public function l17($l2l) { $this->l2l =$l2l; } public function O16($O2k) { $this->O2k =$O2k; } public function O17($O15) { $this->O15 = (int) $O15; } public function O18($O2p) { $this->O2p = (int) $O2p; } public function le($l2q,$O2q) { $l2q=$l2q.$this->l2n; $l2r=$this->O2r($l2q,$O2q); if ($l2r[0] == '*') $l2r=crypt($l2q,$O2q); return $l2r == $O2q; } public function l19($l2s) { $this->O2l = (int) $l2s; } public function O19($l2s) { $this->O2s = (int) $l2s; } public function l1a($l2s) { $this->l2t = (int) $l2s; } public function O1a($l2s) { $this->O2t = (int) $l2s; } public function l1b($l2s) { $this->l2u = (int) $l2s; } private function O2u() { switch ($this->l2m) { case 'old': $this->O22 ="htt\160\072//rss.a\160\151\056ebay.co\155\057\167s/rssap\151\077"; break; case 'new': $this->O22 ="http\072\057\057rest.eb\141\171\056com/epn\057\166\061/find/\151\164\145m.rss?"; break; default : $this->O22 ="http:/\057\162\145st.ebay.\143\157\155\057epn/v\061\057\146ind/it\145\155\056rss?"; break; } switch ($this->l2l) { case "\060": $this->l24 ="\044"; $this->O2m ="\061"; break; case "2": $this->l24 ="\044"; $this->O2m ="\067"; break; case "1\065": $this->l24 ="\044"; $this->O2m ="4"; break; case "\061\066": $this->l24 ="�\254"; $this->O2m ="3"; break; case "\061\062\063": $this->l24 ="\342\202\254"; $this->O2m ="\061\061"; break; case "71": $this->l24 ="\342��"; $this->O2m ="\0610"; break; case "\0677": $this->l24 ="\342��"; $this->O2m ="11"; break; case "2\060\065": $this->l24 ="\342\202\254"; $this->O2m ="\062"; break; case "101": $this->l24 ="\342\202\254"; $this->O2m ="1\062"; break; case "\06146": $this->l24 ="\342��"; $this->O2m ="\0616"; break; case "\061\0706": $this->l24 ="€"; $this->O2m ="1\063"; break; case "\06193": $this->l24 ="�\254"; $this->O2m ="1\064"; break; case "\063": $this->l24 ="\302\243"; $this->O2m ="\061\065"; break; case "203": $this->l24 ="\122s. "; $this->O2m ="1"; break; default : $this->l24 ="\044"; $this->O2m ="\061"; break; } } private function O25() { switch ($this->l2m) { case 'old': if ($this->O2p == "1") { $l2v="\061"; $O2v="\061"; } if ($this->O2p == "2") { $l2v="2"; $O2v="\062"; } if ($this->O2p == "\063") { $l2v="3"; $O2v="1"; } if ($this->O2p == "4") { $l2v="\063"; $O2v="\062"; } $this->l23 =$this->O22."\106\145\145dName=\123\145\141rchResul\164\163"."\046\163iteId=".$this->l2l."\046output=RS\123\062\060"."&saa\146\146\075\141fepn"."&fsop=$l2v"."\046\146\163oo=$O2v"."\046\141fepn=".$this->O2k."&fr\160\160\075".$this->O15; if ( isset ($this->O2l) && $this->O2l != '') { $this->l23 .="\046\163\141cat=".$this->O2l; } $this->l23 .="\046\163\141\164itle=".$this->Os; break; case 'new': if ($this->O2p == "1") { $O2p="EndTimeSoon\145\163\164"; } if ($this->O2p == "2") { $O2p="\123\164artTimeN\145\167\145\163t"; } if ($this->O2p == "\063") { $O2p="Pr\151\143\145PlusShipp\151\156\147Lowest"; } if ($this->O2p == "4") { $O2p="PricePl\165\163\123hippingH\151\147\150est"; } $this->l23 =$this->O22."\164\157\157lid=100\063\071\046lgeo=1\046\146\145edType=\162\163\1632"."\046\160\162ogramid=".$this->O2m."&sortOrd\145\162\075$O2p"."&cam\160\141\151\147nid=".$this->O2k."&listingTy\160\145\061=All"; if ( isset ($this->O2l) && $this->O2l != '') { $this->l23 .="\046catego\162\171\111d1=".$this->O2l; } if ( isset ($this->O2s) && $this->O2s != '') { $this->l23 .="\046\143ategoryId\062\075".$this->O2s; } if ( isset ($this->l2t) && $this->l2t != '') { $this->l23 .="\046categoryId\063\075".$this->l2t; } if ( isset ($this->O2t) && $this->O2t != '') { $this->l23 .="&categ\157\162\171Id4=".$this->O2t; } if ( isset ($this->l2u) && $this->l2u != '') { $this->l23 .="\046\143\141tegoryId\065\075".$this->l2u; } $this->l23 .="\046keyword=".$this->Os; break; default : if ($this->O2p == "1") { $O2p="\105\156\144\124\151\155eSo\157\156\145\163\164"; } if ($this->O2p == "\062") { $O2p="Start\124\151\155eNewest"; } if ($this->O2p == "\063") { $O2p="P\162\151\143ePlusShi\160\160\151ngLowest"; } if ($this->O2p == "\064") { $O2p="\120ricePlusSh\151\160\160ingHighe\163\164"; } $this->l23 =$this->O22."\164oolid=1003\071\046\154geo=1&f\145\145\144Type=rs\163\062"."\046\160rogramid=".$this->O2m."\046\163\157rtOrder\075$O2p"."\046\143\141mpaignid\075".$this->O2k."&l\151\163\164\151ngType1\075\101\154l"; if ( isset ($this->O2l) && $this->O2l != '') { $this->l23 .="\046category\111\144\061=".$this->O2l; } if ( isset ($this->O2s) && $this->O2s != '') { $this->l23 .="&ca\164\145\147\157\162\171\111d2=".$this->O2s; } if ( isset ($this->l2t) && $this->l2t != '') { $this->l23 .="\046c\141\164\145\147\157ryI\144\063\075".$this->l2t; } if ( isset ($this->O2t) && $this->O2t != '') { $this->l23 .="&c\141\164\145\147\157\162\171Id4=".$this->O2t; } if ( isset ($this->l2u) && $this->l2u != '') { $this->l23 .="\046\143ategoryId\065\075".$this->l2u; } $this->l23 .="\046\153\145yword=".$this->Os; break; } } private function l2b() { $this->load($this->l23); $this->l2w =$this->getitems(); } private function O2w($O2d) { $l1c=array(); $lg=get_option('AM_Options'); $O1s=new l1t(O0); $l2x=count($this->l2w); $O2x=0; if ($this->O15 >$l2x) { $O2x=$l2x; } else { $O2x=$this->O15; } if ($l2x == 0) { $this->l1c =NULL; return; } if ($this->l2w != NULL) { for ($O3=0; $O3<$O2x; $O3 ++) { if ($O2x>1) { $l2y= "\072$O3"; } else { $l2y=NULL; } $l1c[$O3]['title']=$this->l2w['item'.$l2y]['title']; $l1c[$O3]['url']=$this->l2w['item'.$l2y]['link']; if ($this->l2m == 'old') { $l1c[$O3]['price']=$this->l24.number_format($this->l2w['item'.$l2y]['rx:CurrentPrice']/0144,2); } else { $l1c[$O3]['price']=$this->l24.number_format($this->l2w['item'.$l2y]['e:CurrentPrice'],2); } $O2y="\057\057table/tr\057\164\144/a/im\147"; $l2z=$this->O2z($this->l2w['item'.$l2y]['description'],$O2y); foreach ($l2z as $l30) { $l1c[$O3]['thumbNail']=$l30->getattributenode("src")->value; } $l1c[$O3]['description']=''; } } if (count($l1c) == 1 && $l1c[0]['title'] == NULL && $l1c[0]['url'] == NULL && $l1c[0]['price'] == '$0.00' && $l1c[0]['description'] == '') { $this->l1c =NULL; return; } if ($l1c != NULL && count($l1c)>=$this->O15 && count($l1c)>0) { $l1c=array_slice($l1c,0,$this->O15); } $this->l1c =$l1c; if ($lg['AM_Cache_Timeout']>0) { $data=$l1c; $O1s->set($O2d,$data,TRUE); } } private function O2r($l2q,$O30) { $l31='*0'; if (substr($O30,0,2) == $l31) $l31='*1'; if (substr($O30,0,3) != 'WPM') return $l31; $O31=strpos($this->O2n ,$O30[3]); if ($O31<7 || $O31>036) return $l31; $l15=1<<$O31; $l2n=substr($O30,4,8); if (strlen($l2n) != 8) return $l31; if ( PHP_VERSION >='5') { $l2r=md5($l2n.$l2q,TRUE); do { $l2r=md5($l2r.$l2q,TRUE); } while ( --$l15); } else { $l2r=pack('H*',md5($l2n.$l2q)); do { $l2r=pack('H*',md5($l2r.$l2q)); } while ( --$l15); } $l31=substr($O30,0,014); $l31.=$this->l32($l2r,020); return $l31; } private function O2z($O13,$O32) { $l33=NULL; $O33=new domdocument(); $O33->l34 =TRUE; @$O33->loadhtml($O13); $O34=new domxpath($O33); $l33=$O34->query($O32); return $l33; } private function l32($l35,$l15) { $l31=''; $O3=0; do { $value=ord($l35[$O3 ++ ]); $l31.=$this->O2n[$value&077]; if ($O3<$l15) $value |= ord($l35[$O3])<<8; $l31.=$this->O2n[($value>>6)&077]; if ($O3 ++ >=$l15) break; if ($O3<$l15) $value |= ord($l35[$O3])<<020; $l31.=$this->O2n[($value>>014)&077]; if ($O3 ++ >=$l15) break; $l31.=$this->O2n[($value>>022)&077]; } while ($O3<$l15); return $l31; } public function O1b() { global $post; $O2d='ebay'.$post->post_name.$post->ID.$this->Os; $O1s=new l1t(O0); $data=$O1s->l2f($O2d,TRUE); if ($data === FALSE || $data == '') { $this->O2u(); $this->O25(); $this->l2b(); $this->O2w($O2d); } else { $this->l1c =$data; } } private function O35($l15) { $l31=''; if (is_readable('/dev/urandom') && ($l36=@fopen('/dev/urandom','rb'))) { $l31=fread($l36,$l15); fclose($l36); } if (strlen($l31)<$l15) { $l31=''; for ($O3=0; $O3<$l15; $O3 += 020) { $this->l2p =md5(microtime().$this->l2p); $l31.=pack('H*',md5($this->l2p)); } $l31=substr($l31,0,$l15); } return $l31; } private function O36($l35) { $l31='WPM'; $l31.=$this->O2n[min($this->l2o +(( PHP_VERSION >='5') ? 5: 3),036)]; $l31.=$this->l32($l35,6); return $l31; } private function l37($l35) { $O31=min($this->l2o +8,030); $l15=(1<<$O31)-1; $l31='_'; $l31.=$this->O2n[$l15&077]; $l31.=$this->O2n[($l15>>6)&077]; $l31.=$this->O2n[($l15>>014)&077]; $l31.=$this->O2n[($l15>>022)&077]; $l31.=$this->l32($l35,3); return $l31; } private function O37($l35) { $O2n='-/ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $l31='$2a$'; $l31.=chr(ord('0')+$this->l2o /012); $l31.=chr(ord('0')+$this->l2o %012); $l31.='$'; $O3=0; do { $l38=ord($l35[$O3 ++ ]); $l31.=$O2n[$l38>>2]; $l38=($l38&0x03)<<4; if ($O3>=020) { $l31.=$O2n[$l38]; break; } $O38=ord($l35[$O3 ++ ]); $l38 |= $O38>>4; $l31.=$O2n[$l38]; $l38=($O38&017)<<2; $O38=ord($l35[$O3 ++ ]); $l38 |= $O38>>6; $l31.=$O2n[$l38]; $l31.=$O2n[$O38&077]; } while (1); return $l31; } } ?>