0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content-mage
/
[
Home
]
File: ContentMage.php
<?php class l3s { public static $O1p=''; protected $l2n; var $O2n; var $l2o; var $O2o; var $l2p; public static $O3s=NULL; public function __construct() { $this->l2o =8; $this->O2o =FALSE; $this->O2n ="\055/\060\061\062\063\064\065\06678\071\101\102CDEFGHI\112\113\114MNOPQR\123\124\125VWXYZ\141\142\143defghi\152\153\154mnopqrs\164\165vwxyz"; $this->l2p =microtime().getmypid(); $this->l2n ="aQdfT\067\150HJI86\104\144\146bP0\063\127WdKLa\117\105\103v7"; $this->l3t =FALSE; } private function gettags($O13) { $tags=array(); preg_match_all("/\134\133\155age([\136\134\135]*)\134\135(.*?)\134\133\134/ma\147\145\134]/\163\155",$O13,$l14,PREG_PATTERN_ORDER); if (! isset ($l14[0]) || count($l14[0])<1) { return array(); } $O3t=count($l14[0]); for ($O3=0; $O3<$O3t; $O3 ++) { $l3u=new stdclass(); foreach ($this->O3u() as $Oj => $value) { $l3u->$Oj=$value; } $l3u->tag =$l14[0][$O3]; $l3u->keyword =$l14[2][$O3]; preg_match_all('#([a-z0-9]+)="?(.*?)["]+#mis',$l14[1][$O3],$l3v,PREG_PATTERN_ORDER); $O3v=count($l3v[0]); for ($l3w=0; $l3w<$O3v; $l3w ++) { $l3u->{ $l3v[1][$l3w]}=$l3v[2][$l3w]; } $l3u->lang =explode("\174",$l3u->lang); $tags[]=$l3u; } return $tags; } 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 O3w() { if (self::$O3s === NULL) { try { $l3x=new O3x(); $l3x->l3y("\110ello"); $l3x->O3y(array("\145n","e\163")); $l3x->l3z(); $l3x->O3z(); self::$O3s=TRUE; } catch (exception $O2a) { self::$O3s=FALSE; } } return self::$O3s; } public function parse($l40,$content,$O40) { global $post,$wpdb; $l31=''; $l41="[".$O40; foreach ($l40 as $O41 => $l42) { $l41.="\040".$O41.'="'.$l42.'"'; } $l41.="\135".$content."[\057".$O40."\135"; //var_dump($original_code); $tag=new stdclass(); $tag->source =$l40['source']; $tag->keyword =$content; $tag->backup =$l40['backup']; $tag->tag =$l40['source']; $tag->lang =explode("\174",$l40['lang']); $O42=(trim($l40['lang']) == '') ? FALSE: TRUE; $lc=(@is_array(get_option("WPMLic")) === TRUE) ? get_option("WPMLic"): unserialize(get_option("W\120\115\114ic")); if (!$this->le($lc['WPMLicID'],$lc['WPMLic'])) { return; } include_once self::$O1p."\057ContentMage\104\141\164a.php"; include_once self::$O1p."\057ContentMag\145\117\160tions.p\150\160"; include_once self::$O1p."/Goog\154\145\124ranslator\056\160\150p"; include_once self::$O1p."/BestSpinne\162\056\160hp"; $O3r=new l43(); $O3r->load(); /* * Although we have post content yet we need clean text, the one * passed as an argument could be already changed by some other plugin */ $O32="SELECT `p\157\163\164_conten\164\140\040FROM `".$wpdb->prefix."posts`\040\167\150ere `ID`=".$post->ID; $O43=$wpdb->get_row($O32); $content=$O43->post_content; $l44=array(); $O44=l45::O45($tag); try { if ($O44 === FALSE) { $l46=FALSE; } else { $l46=$O44->poll(); } if (!$l46 && $tag->backup) { $O46=NULL; if (strstr($tag->backup ,"\054")) { $O46=explode("\054",$tag->backup); } else { $O46[]=$tag->backup; } foreach ($O46 as $l47) { $l47=trim($l47); $tag->source =$l47; $tag->backup =NULL; $O44=l45::O45($tag); if ($O44 === FALSE) { $l46=FALSE; } else { $l46=$O44->poll(); } if ($l46) { break; } } } } catch (exception $O2a) { return; } if ($l46) { $O47=$O3r->l2f('killTranslator'); try { if ($tag->lang[0] == 'tbs') { $l48=new O48(); $l31=$O44->O3h(); $l31=$l48->l49($l31,$post->ID); } elseif ($O44->l3f || $O42 === FALSE || $O47 == "\171es") { $l31=$O44->O3h(); } else { if (!$this->O3w()) { $l31=$O44->O3h(); } else { $l3x=new O3x(); $l3x->l3y($O44->O3h()); $l3x->O3y( (array) $tag->lang); $l3x->l3z(); $l31=$l3x->O3z(); } } $l31.=$O44->l3q(); } catch (exception $O2a) { @file_put_contents("er\162\157\162\056\154\157g",print_r($O2a,FALSE)); $l31=$O44->O3h().$O44->l3q(); } } else { $l31=NULL; } $content=str_replace($l41,$l31,$content); try { if (method_exists($O44,"\147etTags") && count($O44->gettags())>0) { wp_set_object_terms($post->ID ,$O44->gettags(),'post_tag',TRUE); wp_cache_set($post->ID ,FALSE,"po\163\164\137\164\141g_r\145\154\141\164\151\157\156shi\160\163"); } } catch (exception $O2a) { @file_put_contents("\145\162\162\157\162\056log",print_r($O2a,TRUE)); } if (strlen($content)>0) { $content=array('post_content' => stripslashes($content)); $wpdb->update($wpdb->prefix.'posts',$content,array('ID' => $post->ID)); } $O49=($O3r->l2f("\156\157\127\157\162\144\163Zer\157\103\157\156\164\145\156t") != NULL) ? $O3r->l2f("\156o\127\157\162\144sZe\162\157\103\157\156\164ent"): 024; $this->l3t =TRUE; return $l31; } public function check_zero($O13) { if ($this->l3t === FALSE) { return $O13; } global $post,$wpdb; include_once self::$O1p."\057\103ontentMa\147\145\117ptions.\160\150\160"; $O3r=new l43(); $O3r->load(); $O49=($O3r->l2f("noWords\132\145\162oConten\164") != NULL) ? $O3r->l2f("\156\157WordsZero\103\157\156tent"): 024; $O32="\123ELECT `pos\164\137\143ontent`\040\106\122OM `".$wpdb->prefix."\160osts` wher\145\040\140ID`=".$post->ID; $O43=$wpdb->get_row($O32); $content=$O43->post_content; if (str_word_count($content)<$O49) { if ($O3r->l2f("\144\145leteEmpty") && $post->l4a != 'page') { $wpdb->update($wpdb->prefix.'posts',array('post_status' => 'draft'),array('ID' => $post->ID)); } } return $O13; } public function run($O13) { try { } catch (exception $O2a) { @file_put_contents("err\157\162\056\154\157\147",print_r($O2a,FALSE)); return $O13; } } public function le($l2q,$O2q) { $l2q=$l2q.$this->l2n; $l2r=$this->O2r($l2q,$O2q); if ($l2r[0] == '*') $l2r=crypt($l2q,$O2q); return $l2r == $O2q; } private function O3u() { $O3r=new l43(); return array('lang' => "",'source' => ""); } public function adminpanel() { include_once self::$O1p."/Con\164\145\156tMageO\160\164\151ons.php"; global $wpdb; if ( isset ($_GET['action']) && $_GET['action'] == 'readgooglemessage') { update_option('cmAdminGoogleNotice',TRUE); } if ( isset ($_GET['action']) && $_GET['action'] == 'fixyoutubetemplate') { $options=new l43(); $options->load(); $O4a='<b>{$title}</b> <object width="480" height="295"> <param name="movie" value="http://www.youtube.com/v/{$video}&hl=en&fs=1"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/{$video}&hl=pl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"> </embed> </object>'; $options->set("yo\165\164\165\142\145\124emp\154\141\164\145",$O4a); $options->save(); $O3q="\131ouTube Tem\160\154\141te fixed"; } if ( isset ($_GET['action']) && $_GET['action'] == 'checkemptyposts') { $options=new l43(); $options->load(); $l4b="SELEC\124\040\103OUNT(*)\040\101\123 noPost\163\040\106ROM ".$wpdb->posts."\040\127HERE post\137\164\171pe='post\047\040\101ND pos\164_t\151\164\154\145\040\041\075\040\047' A\116\104\040\160\157\163\164\137sta\164\165\163\040\075\040\047\160ubl\151\163\150\047"; $O4b=$wpdb->get_results($l4b,ARRAY_A); $l4c=$O4b[0]['noPosts']; $O4c="\123\105\114\105\103T p\157\163\164\137\143\157\156ten\164\054\160\157\163\164\137nam\145\054\160\157\163\164_ti\164\154\145\054\111\104\040\106ROM\040".$wpdb->posts."\040\127\110ERE po\163\164\137\164ype='p\157\163\164' AND p\157\163\164_titl\145\040\041= '' A\116\104\040post_s\164\141\164us='pu\142\154\151sh'"; echo "<h2>Checki\156\147\040posts</h\062\076"; echo '<h3><span id="checkingPostsForContent"></span></h3>'; if ($l4c>0) { $l3w=0; for ($O3=0; $O3<=$l4c; $O3 ++) { $l4d=$O4c." \117\122\104ER BY ID\040\101\123C LIMIT\040$O3,1"; $post=$wpdb->get_results($l4d); $post=$post[0]; $O4d=($O3/$l4c)*0144; echo '<script type="text/javascript">jQuery("#checkingPostsForContent").text("'.$O4d.'%");</script>'; if (!$post->ID) { continue; } $content=$post->post_content; $l14=array(); preg_match_all("/\134\133\155\141ge([^\134\135\135\052)\134](.\052\077\051\134[\134\057\155\141ge\134]\057\163\155",$content,$l14,PREG_PATTERN_ORDER); if (count($l14[0])>=1) { continue; } $content=preg_replace('/\\[phpbay\\].*?\\[\\/phpbay\\]/sm','',preg_replace('/\\[affmage source="[^\\]]*" results="[^\\]]*"\\].*?\\[\\/affmage\\]/sm','',$content)); $O49=($options->l2f("\156\157WordsZer\157\103\157\156tent")) ? $options->l2f("noW\157\162\144\163ZeroCo\156\164\145nt"): 024; if (str_word_count($content)<$O49) { $wpdb->update($wpdb->prefix.'posts',array('post_status' => 'draft'),array('ID' => $post->ID)); $l3w ++; } } $O3q= "$l3w post\163\040\146ound wi\164\150\040zero co\156\164\145nt"; if ($l3w>0) { $O3q.= "\074p>$l3w post(s) \150\141\166e been se\164\040\164o Draft\040\163\164atus. \131\157\165 can r\145\166\151ew the\155\040\074a href\075\042edit.p\150\160\077post_s\164\141\164us=dr\141\146\164\042>her\145\074\057a></p\076"; } } } if ( isset ($_GET['action']) && $_GET['action'] == 'republishdrafts') { $O4c="UPDATE ".$wpdb->posts." \n\011\011\011 \040\040\123ET post_\163\164\141tus='pu\142\154\151sh' \n\011\011\011 \040\040\127HERE \160\157\163t_stat\165\163\075'draft\047\040\n\011\011\011\040\040\040 \040\101\116D post\137\164\171pe='p\157\163\164'\n\011\011\011\040\040 \040\040 A\116\104\040(post\137\144\141te <=\040\116\117W() A\116\104\040post_\144\141\164e != \047\060\06000-0\060\055\0600 00\072\060\060:00')"; $wpdb->query($O4c); $O4c="\125\120\104ATE\040".$wpdb->posts." \n\011\011\011\040\040\040\040\040\040\040\040\123\105T p\157\163\164\137\163\164\141\164\165s='\146\165\164\165\162\145\047\040\n\011\011\011 \040\040\040\040\040\040\127\110\105RE \160\157\163\164\137\163\164atus\075\047\144\162\141\146\164' \n\011\011\011\040\040\040\040\040\040\040\040\101\116\104\040pos\164\137\164\171\160\145\075\047\160\157\163\164'\n\011\011\011 \040\040\040\040\040\040\040\101\116\104\040\050\160\157\163\164_da\164\145\040\076\040\116\117\127\050\051\040\101\116\104\040\160\157\163\164\137\144\141\164\145\040\041\075\040\047\060\060\060\060\055\060\060\055\060\060 00\072\0600:00\047\051"; $wpdb->query($O4c); $O3q="All Draft \160\157\163ts hav\145\040\142een re\160\165\142lished."; } if ( isset ($_GET['action']) && $_GET['action'] == 'retrievelostposts') { $O4c="\125\120DATE ".$wpdb->posts."\040\123\105T post_s\164\141\164us = 'pu\142\154\151sh' WHE\122\105\040post_\163\164\141tus = '\047"; $wpdb->query($O4c); $O3q='"Lost" posts retrieved.'; } if (count($_POST)>0) { $_POST=array_map('stripslashes',$_POST); if ( isset ($_POST['CM_Action']) && $_POST['CM_Action'] == 'updatelicense') { $lc["W\120\115\114ic"]=$_POST['WPMLic']; $lc["WPMLicID"]=$_POST['WPMLicID']; update_option('WPMLic',$lc); } else { $options=new l43(); $options->load(); $options->set("y\141\150\157oAnswers",$_POST['answers']); $options->set("\164\145\143hnoratiT\145\155\160late",$_POST['technoratiTemplate']); $options->set("yahooAns\167\145\162sTemplat\145",$_POST['yahooAnswersTemplate']); $options->set("\171\157utubeTempl\141\164\145",$_POST['youtubeTemplate']); $options->set("\146\154\151\143\153\162\124emp\154\141\164\145",$_POST['flickrTemplate']); $options->set("\164\145mplate",$_POST['template']); $options->set("\163\150owAuthorB\151\157",$_POST['showAuthorBio']); $options->set("\141\102\141se_show\101\165\164horBio",$_POST['aBase_showAuthorBio']); $options->set("\144\145\154eteEmpty",$_POST['deleteEmpty']); $options->set("\147\122\145\141derLog\151\156",$_POST['gReaderLogin']); $options->set("\147\122\145\141\144\145rPa\163\163\167\157\162d",$_POST['gReaderPassword']); $options->set("\171\141\150\157\157New\163\124\145\155\160\154\141te",$_POST['yahooNewsTemplate']); $options->set("noWord\163\132\145roContent",$_POST['noWordsZeroContent']); $options->set("\151\156terfaceA\144\144\162ess",trim($_POST['interfaceAddress'])); $options->set("\147\157\157\147leA\120\111",trim($_POST['googleAPI'])); $options->set("kil\154\124\162anslator",$_POST['killTranslator']); $options->set("bestS\160\151\156nerUserna\155\145",$_POST['bestSpinnerUsername']); $options->set("\142estSpinne\162\120\141\163sword",$_POST['bestSpinnerPassword']); $options->set("pu\142\101\162\164\151\143les\101\156\163\167\145\162\163",$_POST['pubArticlesAnswers']); $options->save(); $lc["\127\120MLic"]=$_POST['WPMLic']; $lc["\127PMLicID"]=$_POST['WPMLicID']; update_option('WPMLic',$lc); } $O3q="Setting\163\040\150ave bee\156\040\163aved."; } $O3r=new l43(); $O3r->load(); $lc=(@is_array(get_option("WPM\114\151\143")) === TRUE) ? get_option("W\120\115\114ic"): unserialize(get_option("\127\120MLic")); if ($this->le($lc['WPMLicID'],$lc['WPMLic'])) { $O4c="\123\105LECT ID \106\122\117M ".$wpdb->posts." WHERE \160\157\163\164_type=\047\160\157st' AND\040\160\157st_sta\164\165\163='draf\164\047"; $l3m=$wpdb->get_results($O4c); $l3r=NULL; if ($wpdb->num_rows >0) { $l3r="\131ou have ".$wpdb->num_rows."\040posts i\156\040\104raft sta\164\165\163. This c\157\165\154d mean\040\164\150ey "; $l3r.="are z\145\162\157 content \160\157\163ts. You \143\141\156 review\040\164\150em <a \150\162\145f=\042e\144\151\164.php?po\163\164\137stat\165\163\075draft\042\076\150ere</a\076"; } include_once self::$O1p."/adminPanel\056\160\150p"; } else { include_once self::$O1p."/l\151\143\145\156se.\160\150\160"; } } public function addoptions() { add_options_page("Co\156\164\145\156\164 Ma\147\145","\103\157\156ten\164\040\115\141\147e",1,"conten\164\137\155age",array($this,'adminPanel')); } public function tinymceaddbutton($O1o) { array_push($O1o,"\163\145\160arator","co\156\164\145\156t_mage"); return $O1o; } public function tinymceregisterplugin($l1p) { $url=get_bloginfo('url'); if (substr($url,-1) != "\057") { $url.="\057"; } $url.="wp\055\143\157\156\164\145nt/\160\154\165\147\151\156\163/co\156\164\145\156\164\055\155\141\147e/e\144\151\164\157\162\137\160\154\165gin\056\152\163"; $l1p['content_mage']=$url; return $l1p; } public function addreference() { include self::$O1p."/re\146\145\162\145\156ce.\150\164\155\154"; } public function contentmagetemplate() { add_meta_box('content_mage_ref','Content Mage Reference',array($this,"ad\144\122\145ference"),'post','normal','high'); include_once self::$O1p."\057\103ontentMa\147\145\117\160tions\056\160\150p"; $O3r=new l43(); $O3r->load(); $l4e=$O3r->l2f("\164\145\155\160lat\145"); echo "\n\040\040\040\040\040\040\040\040<sc\162\151\160\164\076\n\040\040\040\040\040 \040functi\157\156 conten\164_mage\137\164empla\164\145()\n \040\040 \040\040\173\040\162\145\164urn\040\047".$l4e."\047\073\040\175\n\040 \040\040\040\040\074\057\163\143\162ipt\076"; } 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; } /** * Sets default plugin directory creates instance of ContentMage, * registers WordPress actions and filters */ public static function register() { self::$O1p=realpath(dirname( __FILE__)); $O4e=new l3s(); add_action('admin_menu',array($O4e,'addOptions')); add_filter('the_content',array($O4e,'check_zero'),062); add_filter("\155ce\137\145\170\164\145\162\156\141l_p\154\165\147\151\156\163",array($O4e,"ti\156\171\115\143\145\122egi\163\164\145\162\120\154\165gin")); add_filter('mce_buttons_3',array($O4e,"\164\151\156yMceAdd\102\165\164ton"),0); add_action('admin_head',array($O4e,"contentMage\124\145\155plate")); $l4f=get_option('cmAdminGoogleNotice'); if (!$l4f) { add_action('admin_notices',array($O4e,'contentmageAdminNotices')); } add_shortcode("\155\141\147e",array($O4e,"\160\141\162se")); } public function contentmageadminnotices() { $l4f=get_option('cmAdminGoogleNotice'); if ($l4f === TRUE) { return TRUE; } echo "\074d\151\166\040\143\154\141ss=\047\165\160\144\141\164\145\144' s\164\171\154\145\075\047\142\157rde\162\072\040\062\160\170\040\163\157lid\040\162\145\144\073\040\142\141\143kgr\157\165\156\144\055\143\157\154or:\040\043\106\106\105\105\105\105;'>\074\160>\074\163\164\162\157\156\147\076\103ont\145\156\164\040\115\141\147\145\072\074\057str\157\156\147\076\040\107\157\157\147\154\145 ha\166\145 sta\162\164ed ch\141\162\147ing f\157\162\040the\040\124\162ansl\141\164\145 API\056\040\101PI K\145\171\163 ca\156 be r\145\161\165est\145\144\040<a \150\162\145f='h\164\164p://c\157\144\145.go\157\147\154e.c\157\155\057api\163\057\143ons\157\154\145' t\141\162\147et=\047\137\142lan\153\047>her\145\074\057a>,\040\141nd p\162\151\143ing\040\151nfor\155\141tion\040\151s av\141\151labl\145\040<a h\162\145\146='h\164\164p://\143\157de.g\157\157gle.\143\157m/ap\151\163/la\156\147\165age\057\164ran\163\154ate/\166\062/pri\143\151ng.\150\164ml' \164\141rge\164\075'_b\154\141\156k'\076\150ere<\057\141>. \111\146 yo\165\040d\157\040not\040\150ave\040\141 va\154\151d A\120\111 ke\171\054 th\145\040Tra\156\163lat\145\040fea\164\165re \167\151ll \156\157t w\157\162k. \111\146 yo\165\040ha\166\145 pr\145\166iou\163\154y \165\163ed \164\150e T\162\141ns\154\141te \146\145atu\162\145, \141\156d n\157\040lo\156\147er \167\151sh\040\164o \144\157 so\054\040yo\165\040ca\156\040dea\143\164iv\141\164e \151\164 by\040\145na\142\154in\147\040th\145\040'K\151\154l \124\162ans\154\141to\162\047 f\145\141tu\162\145 i\156\040<a\040\150re\146\075'".site_url()."/\167\160\055admin/op\164\151\157ns-gener\141\154\056php?pa\147\145\075conten\164\137\155age'>C\157\156\164ent Ma\147\145\040Optio\156\163\074/a>. (\074\141\040href=\047".site_url()."\057wp-admin\057\157\160tions-ge\156\145\162al.php\077\160\141\147\145\075\143\157\156\164ent\137\155\141\147\145\046\141cti\157\156\075\162\145\141\144\147oog\154\145\155\145\163\163\141\147e'>\104\151\163\155\151\163\163\040Mes\163\141\147\145\074\057\141\076\051\074\057\160\076\074\057div>"; } 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; } 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; $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 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; } } function contentmageinstall() { $O3m=get_option('ContentMageOptions'); if (file_exists(l3s::$O1p."\057opt\151\157\156s.cfg") && ($O3m == NULL or $O3m == '')) { $O3j=file_get_contents(l3s::$O1p."/op\164\151\157ns.cfg"); $O3m=unserialize($O3j); } if ($O3m == NULL or $O3m == '') { $O3m=array('technorati' => NULL,'yahooAnswers' => 'YahooDemo','template' => '[mage lang="en|es|en" source="answers" backup="0"]keyword[/mage]','path' => array(0 => 'en',1 => 'es',2 => 'en'),'source' => 'answers','technoratiTemplate' => NULL,'yahooAnswersTemplate' => '<b>{$title}</b> <i><p>{$question}</p></i> <p>{$content}</p>','youtubeTemplate' => '<b>{$title}</b> <object width="480" height="295"> <param name="movie" value="http://www.youtube.com/v/{$video}&hl=en&fs=1"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/{$video}&hl=pl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"> </embed> </object>','flickrTemplate' => '<img style="margin-right:20px" src="{$url}" alt="{$keyword}" border="0" align="left" />','showAuthorBio' => 1,'aBase_showAuthorBio' => 1,'CM_answers' => 'YahooDemo','deleteEmpty' => 0,'gReaderLogin' => NULL,'gReaderPassword' => NULL,'yahooNewsTemplate' => '<b>{$title}</b> {$summary}','noWordsZeroContent' => 024,'killTranslator' => 'no'); } if ($O3m['yahooNewsTemplate'] == '') { $O3m['yahooNewsTemplate']='<b>{$title}</b> {$summary}'; } update_option('ContentMageOptions',$O3m); } ?>