BO-BLOG的base64编码和解码
很多人遇到BO-BLOG插件或模块里面出现的类似下面这样的代码
<php>Z2xvYmFsICRsYW5nZnJvbnQsICR0ZW1wbGF0ZTsNCiRsYW5nZm</php>
这一部分也就是被<php></php>包围起来的部分就是base64_encode后的php代码。
下面给出解决方法!
以下请另存为decodephp.php直接打开就能用了。
<?PHPerror_report ing(E_ERROR | E_WARNING | E_PARSE) ;
@set_magic_quotes_runtime (0) ;
@header("Content-Type: text/html; charset=utf-8") ;
$code=$_POST['code' ] ;
$action=$_REQUEST['action' ] ;if (get_magic_quotes_gpc() ) $code=stripslashes($code) ;if ($action=='decode' ) {
$code=base64_decode($code) ;
$code=nl2br(htmlspecialchars($code) ) ;
}else $code=base64_encode($code) ;
?>
<html>
<body style="text-align: center;">
<div style="text-align: left; width: 90%; font-family: Verdana; font-size:14px; margin: auto; background: #EFEFEF; color: #000;"><b>Result:
</b><br><br><?php echo ($code) ;?><br><br></div><br><br>
<form action="decodephp.php" method='post' >
<textarea name='code' cols=' 100' rows=' 16' ></textarea><br>
<input type='radio' name='action' value='decode' checked>DECODE <input type='radio' name='action' value='encode' >ENCODE<br><br>
<input type=' submit' > <input type='reset' >
</form>
</body>
</html>
将侧边栏模板切换器的编码部分不包含<php>和</php>拷贝到输入框内解码后的结果为
<?global $langfront, $template;
$langforselskin=($langfront==' zh-tw' ) ? '恢復預設' : '恢复默认' ;include_once ("data/cache_skinlist.php") ;if (is_array($skinset) ) {foreach ($skinset as $skin) {
@list($skid, $skname, $skauthor, $skintro, $skdir,
$skthumbnail)=@explode(' | ' , $skin) ;if ($skid==$template[' id' ] ) $optionskinlist.="<option value=' {$skdir} 'selected=' selected' >{$skname}</option>";else $optionskinlist.="<option value=' {$skdir} ' >{$skname}</option>";}
}
$phpreturn="<form action=' index.php' method='post'id=' skinselector' ><select name=' tem'onchange=\"document.getElementById(' skinselector' ) . submit() ;\"><optionvalue='____' >{$langforselskin}</option>{$optionskinlist}</select></form>";?>
georgedatacenter怎么样?GeorgeDatacenter是一家2017年成立的美国商家,正规注册公司(REG: 10327625611),其实是oneman。现在有优惠,有几款特价VPS,基于Vmware。支持Paypal付款。GeorgeDatacenter目前推出的一款美国vps,2核/8GB内存/250GB NVMe空间/2TB流量/1Gbps端口/Vmware/洛杉矶/达拉...
sparkedhost怎么样?sparkedhost主机。Sparkedhost于2017年7月注册在美国康涅狄格州,2018年收购了ClynexHost,2019年8月从Taltum Solutions SL收购了The Beast Hosting,同年10月从Reilly Bauer收购了OptNode Hosting。sparkedhost当前的业务主要为:为游戏“我的世界”提供服务器、虚拟...
这两天Linode发布了十八周年的博文和邮件,回顾了过去取得的成绩和对未来的展望。作为一家运营18年的VPS主机商,Linode无疑是有一些可取之处的,商家提供基于KVM架构的VPS主机,支持随时删除(按小时计费),可选包括美国、英国、新加坡、日本、印度、加拿大、德国等全球十多个数据中心,所有机器提供高出入网带宽,最低仅$5/月($0.0075/小时)。This month marks Linod...