0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
affiliate-mage
/
classes
/
[
Home
]
File: rss_php.class.php
<?php class O2l { public $O3c; public $l3d; public $O3d; public function load($l1o=FALSE,$l3e=TRUE) { if ($l1o) { if ($l3e) { $this->O3e($this->O2h($l1o)); } else { $this->O3e($this->O2h($l1o)); } } } public function l3f($O3f=FALSE) { if ($O3f) { $this->O3e($O3f); } } private function O2h($l1o) { $content=''; $O15=curl_init(); curl_setopt($O15,CURLOPT_USERAGENT,"\115\157\172\151l\154\141\057\065\056\060\040\050Wi\156\144ow\163;\040\125\073\040\127\151nd\157\167\163\040\116\124\040\065\056\061\073\040\162\166\0721\056\067\056\063\051\040\107e\143k\157\057\062\0600\064\061\0600\061\040F\151r\145f\157\170/\060.\061\060\0561"); curl_setopt($O15,CURLOPT_URL,$l1o); curl_setopt($O15,CURLOPT_FOLLOWLOCATION,TRUE); curl_setopt($O15,CURLOPT_CONNECTTIMEOUT,012); curl_setopt($O15,CURLOPT_TIMEOUT,036); curl_setopt($O15,CURLOPT_MAXREDIRS,012); curl_setopt($O15,CURLOPT_RETURNTRANSFER,TRUE); $content=curl_exec($O15); $l2i=curl_getinfo($O15); curl_close($O15); return $content; } public function l3g($O3g=FALSE) { if ($O3g) { return $this->O3c; } return $this->l3h(); } public function O3h($O3g=FALSE) { if ($O3g) { return $this->l3d; } return $this->l3h($this->l3d); } public function l2t($O3g=FALSE) { if ($O3g) { return $this->O3d; } return $this->l3h($this->O3d); } private function O3e($l3i=FALSE) { if ($l3i) { $this->O3c =array(); $this->l3d =array(); $this->O3d =array(); $O3i=new domdocument; $O3i->l3j =FALSE; $O3i->loadxml($l3i); $this->O3c =$this->O3j($O3i->childNodes); } } private function l3h($l3k=FALSE) { if (!$l3k) { $l3k=$this->O3c; } foreach ($l3k as $O3k => $l3l) { if ( isset ($l3l['value'])) { $l3l=$l3l['value']; } if (is_array($l3l)) { $l3k[$O3k]=$this->l3h($l3l); } else { $l3k[$O3k]=$l3l; } } return $l3k; } private function O3j($nodeList,$parentNodeName=FALSE) { $O3l=0; foreach ($nodeList as $l3l) { if (substr($l3l->nodeName ,0,1) != '#') { if ($l3l->nodeName == 'item') { $nodeName=$l3l->nodeName.':'.$O3l; $O3l ++; } else { $nodeName=$l3l->nodeName; } $l3m[$nodeName]=array(); if ($l3l->O3m) { for ($l10=0; $l3l->O3m->item($l10); $l10 ++) { $l3m[$nodeName]['properties'][$l3l->O3m->item($l10)->nodeName ]=$l3l->O3m->item($l10)->nodeValue; } } if (!$l3l->firstChild) { $l3m[$nodeName]['value']=$l3l->textContent; } else { $l3m[$nodeName]['value']=$this->O3j($l3l->childNodes ,$l3l->nodeName); } if (in_array($parentNodeName,array('channel','rdf:RDF'))) { if ($l3l->nodeName == 'item') { $this->O3d[]=$l3m[$nodeName]['value']; } elseif (!in_array($l3l->nodeName ,array('rss','channel'))) { $this->l3d[$l3l->nodeName ]=$l3m[$nodeName]; } } } elseif (substr($l3l->nodeName ,1) == 'text') { $l3n=trim(preg_replace('/\\s\\s+/',' ',str_replace("\n",' ',$l3l->textContent))); if ($l3n) { $l3m=$l3n; } } elseif (substr($l3l->nodeName ,1) == 'cdata-section') { $l3m=$l3l->textContent; } } return $l3m; } private function O3n() { $l3o=array(); $l3o['User-Agent']='Mozilla/5.0 (Windows; U; Windows NT 5.'.rand(0,2).'; en-US; rv:1.'.rand(2,011).'.'.rand(0,4).'.'.rand(1,011).') Gecko/2007'.rand(012,014).rand(012,036).' Firefox/2.0.'.rand(0,1).'.'.rand(1,011); $l3o['Accept-Charset']=rand(0,1) ? 'en-gb,en;q=0.'.rand(3,8): 'en-us,en;q=0.'.rand(3,8); $l3o['Accept-Language']='en-us,en;q=0.'.rand(4,6); $O3o='Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'."\015\n".'Accept-Charset: '.$l3o['Accept-Charset']."\015\n".'Accept-Language: '.$l3o['Accept-Language']."\015\n".'User-Agent: '.$l3o['User-Agent']."\015\n"; $l3p=array('http' => array('method' => "\107E\124",'header' => $O3o)); return stream_context_create($l3p); } } ?>