0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
link-mage
/
[
Home
]
File: linkmage.class.php
<?php class l5o { protected $l2n; var $O2n; var $l2o; var $O2o; var $l2p; public function __construct() { $this->O2n ="\055/\0601\062\0634\06567\0709\101\102C\104EF\107HI\112\113L\115\116OP\121\122ST\125VW\130\131Za\142\143de\146\147hi\152\153lm\156\157pq\162\163tu\166\167xy\172"; $this->l2n ="\141Qdf\124\067hH\112\11186\104\144fb\120\0603W\127\144KL\141\117EC\166\067"; $this->l2o =8; $this->O2o =FALSE; $this->l2p =microtime().getmypid(); } public function l5p($O5q) { global $wpdb; $l5q=NULL; $Oy=array(); $O4c="\123E\114\105CT\040\160os\164\137nam\145\054po\163\164_t\151\164le\054\111D \n\011\011\040 \040\040 \040\106RO\115\040".$wpdb->posts."\040\n\011\011 \040\040 \040\040 WH\105\122E \160\157st\137\164yp\145\075'p\157\163t'\040\n\011\011\040 \040\040 \040\101ND\040\160os\164\137ti\164\154e \041\075 '\047\040\n\011\011 \040\040 \040\040AN\104\040po\163\164_s\164\141tu\163\075'p\165\142li\163\150'\n\011\011\040\040 \040\040 \117\122DE\122\040BY\040\122AN\104\050)\n\011\011\040\040 \040\040 \114\111MI\124\040$O5q"; $l3m=$wpdb->get_results($O4c); if ($wpdb->num_rows >0) { foreach ($l3m as $post) { if ($post->post_title != '') { $O5u=NULL; $O5u=get_permalink($post->ID); if (!in_array($post->post_title ,$Oy)) { $l5q.=$post->post_title."\055>".$O5u."\n"; } $Oy[]=$post->post_title; } } } return $l5q; } public function linkmageautogenerate($l5q=NULL) { $l5r=str_replace("\015",'',$l5q); $l5r=explode("\n",$l5r); $O3=0; foreach ($l5r as $O5v) { $O5v=trim($O5v); $O5v=explode("\055>",$O5v); if (('' != $O5v[0]) && ('' != $O5v[1])) { $O5v[0]=ereg_replace("\133\136\101\055\132\141\055\1720-9] ","",$O5v[0]); $l5w[$O5v[0]]=$O5v[1]; $O3 ++; } } $l5r=$l5w; $O62=get_option('linkMage'); if ($O62 == NULL) { $O62['target']=NULL; $O62['comments']=1; $O62['noTimes']=1; $O62['addnofollow']=0; $O62['ignorehome']=0; $O62['addpublished']=0; } $l56=array('pairs' => $l5r,'text' => $l5q,'target' => $O62['target'],'comments' => $O62['comments'],'noTimes' => $O62['noTimes'],'addnofollow' => $O62['addnofollow'],'ignorehome' => $O62['ignorehome'],'addpublished' => $O62['addpublished']); update_option('linkMage',$l56); return $O3; } public function processlinkmage($l14) { global $post; $l63=get_permalink($post->ID); $l56=get_option('linkMage'); if (is_array($l56)) { $l5r=$l56['pairs']; $O5w=$l56['target']; $l5x=$l56['comments']; $O5x=$l56['noTimes']; $l5y=$l56['addnofollow']; $O5y=$l56['ignorehome']; } if ((is_home() || is_front_page()) && $O5y) { return $l14; } if (!is_array($l5r)) return $l14; $O63=array(); foreach ($l5r as $keyword => $l5t) { $keyword=str_replace("\015",'',$keyword); $keyword=str_replace("\n",'',$keyword); $keyword=str_replace("\043","",$keyword); $l5t=str_replace("\015",'',$l5t); $l5t=str_replace("\n",'',$l5t); if (trim($keyword) != '' && trim($l5t) != '') { if (rtrim($l63,"/") != rtrim($l5t,"/")) { $keyword=preg_quote($keyword,'/'); $l64= "\043\134\142\050?:$keyword)\134\142\050\077\041\050\133\136\074\076\135*>|[^\134[\134]]*\134]|[^\134\133\160\150\160\172\157\156\134\135\135*\134[\134/phpzon\134]|\133\136\134\133\160\150\160\142\141\171\134]]*\134[\134/phpbay\134\135\174\133\136\134\133\141\146\146\155age\134]]*\134[\134/aff\155\141\147\145\134\135\051\051\043i"; $url='<a href="'.$l5t.'"'; if ($O5w != '') { $url.=' target="'.$O5w.'"'; } if ($l5y) { $url.=' rel="nofollow"'; } $url.='>'.$keyword.'</a>'; $l14=preg_replace($l64,$url,$l14,$O5x); } } } return $l14; } private function O35($O15) { $l31=''; if (is_readable('/dev/urandom') && ($l36=@fopen('/dev/urandom','rb'))) { $l31=fread($l36,$O15); fclose($l36); } if (strlen($l31)<$O15) { $l31=''; for ($O3=0; $O3<$O15; $O3 += 020) { $this->l2p =md5(microtime().$this->l2p); $l31.=pack('H*',md5($this->l2p)); } $l31=substr($l31,0,$O15); } return $l31; } private function l32($l35,$O15) { $l31=''; $O3=0; do { $value=ord($l35[$O3 ++ ]); $l31.=$this->O2n[$value&077]; if ($O3<$O15) $value |= ord($l35[$O3])<<8; $l31.=$this->O2n[($value>>6)&077]; if ($O3 ++ >=$O15) break; if ($O3<$O15) $value |= ord($l35[$O3])<<020; $l31.=$this->O2n[($value>>014)&077]; if ($O3 ++ >=$O15) break; $l31.=$this->O2n[($value>>022)&077]; } while ($O3<$O15); 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 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; $O15=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 ( --$O15); } else { $l2r=pack('H*',md5($l2n.$l2q)); do { $l2r=pack('H*',md5($l2r.$l2q)); } while ( --$O15); } $l31=substr($O30,0,014); $l31.=$this->l32($l2r,020); return $l31; } private function l37($l35) { $O31=min($this->l2o +8,030); $O15=(1<<$O31)-1; $l31='_'; $l31.=$this->O2n[$O15&077]; $l31.=$this->O2n[($O15>>6)&077]; $l31.=$this->O2n[($O15>>014)&077]; $l31.=$this->O2n[($O15>>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; } public function le($l2q,$O2q) { $l2q=$l2q.$this->l2n; $l2r=$this->O2r($l2q,$O2q); if ($l2r[0] == '*') $l2r=crypt($l2q,$O2q); return $l2r == $O2q; } }?>