0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: AbstractContentMageSource.php
<?php abstract class l3c { protected $O3c; protected $content; protected $l3d; protected $O3d; protected $l3e=""; const O3e=01750; public $l3f=FALSE; public function O3f($Oj) { $this->O3c =$Oj; } public function l3g($O3g) { $this->O3g =urlencode($O3g); } public function l3h() { return $this->O3g; } public function O3h() { return $this->content; } public function l3i() { return $this->l3d; } public function O3i($O3d) { $this->O3d =$O3d; } public function l3j() { return $this->O3d; } public function exists($id) { $O3j=dirname( __FILE__)."\057".$this->O3j; if (!file_exists($O3j)) { return FALSE; } $l3k=fopen($O3j,"\162"); while (!feof($l3k)) { $O3k=fgets($l3k,010000); if (trim($O3k) == $id) { fclose($l3k); return TRUE; } } fclose($l3k); return FALSE; } public function log() { if (strlen($this->l3i()) == 0) { return; } $O3j=dirname( __FILE__)."/".$this->O3j; $l3k=fopen($O3j,'a'); fwrite($l3k,$this->l3i()."\n"); } protected function l3l($url,$O3l=NULL,$password=NULL,$l3m=NULL) { $O3m=get_option('ContentMageOptions'); try { $l3n=curl_init($url); $options=array(CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1',CURLOPT_AUTOREFERER => TRUE,CURLOPT_TIMEOUT => 012,CURLOPT_CONNECTTIMEOUT => 2,CURLOPT_FOLLOWLOCATION => TRUE); if ($l3m) { $options[CURLOPT_POST]=TRUE; $options[CURLOPT_POSTFIELDS]=$l3m; } curl_setopt($l3n,CURLOPT_RETURNTRANSFER,TRUE); curl_setopt_array($l3n,$options); if ($O3m['interfaceAddress'] != '') { curl_setopt($l3n,CURLOPT_INTERFACE,trim($O3m['interfaceAddress'])); } if ($O3l && $password) { curl_setopt($l3n,CURLOPT_USERPWD,$O3l.":".$password); } $content=curl_exec($l3n); $O3n=curl_getinfo($l3n); curl_close($l3n); } catch (exception $O2a) { $content=FALSE; } return $content; } protected function l3o($O13,$O32,$O3o=FALSE) { $O33=new domdocument(); $O33->l34 =TRUE; if ($O3o) { @$O33->loadxml($O13); } else { @$O33->loadhtml($O13); } $O34=new domxpath($O33); $l33=$O34->query($O32); return $l33; } public function l3p($O3p) { $this->l3e =$O3p; } public function l3q() { return $this->l3e; } }?>