解码BO-BLOG的base64编码和解码.doc

bo-blog  时间:2021-03-16  阅读:()

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&nbsp;&nbsp;<input type='radio' name='action' value='encode' >ENCODE<br><br>

<input type=' submit' > &nbsp; &nbsp; <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>";?>

湖北22元/月(昔日数据)云服务器,国内湖北十堰云服务器,首月6折

昔日数据怎么样?昔日数据新上了湖北十堰云服务器,湖北十堰市IDC数据中心 母鸡采用e5 2651v2 SSD MLC企业硬盘 rdid5阵列为数据护航 100G高防 超出防御峰值空路由2小时 不限制流量。目前,国内湖北十堰云服务器,首月6折火热销售限量30台价格低至22元/月。(注意:之前有个xrhost.cn也叫昔日数据,已经打不开了,一看网站LOGO和名称为同一家,有一定风险,所以尽量不要选择...

CloudCone中国新年特别套餐,洛杉矶1G内存VPS年付13.5美元起

CloudCone针对中国农历新年推出了几款特别套餐, 其中2019年前注册的用户可以以13.5美元/年的价格购买一款1G内存特价套餐,以及另外提供了两款不限制注册时间的用户可购买年付套餐。CloudCone是Quadcone旗下成立于2017年的子品牌,提供VPS及独立服务器租用,也是较早提供按小时计费VPS的商家之一,支持使用PayPal或者支付宝等付款方式。下面列出几款特别套餐配置信息。CP...

VirMach(8元/月)KVM VPS,北美、欧洲

VirMach,成立于2014年的美国IDC商家,知名的低价便宜VPS销售商,支持支付宝、微信、PayPal等方式付款购买,主打美国、欧洲暑假中心产品,拥有包括洛杉矶、西雅图、圣何塞、凤凰城在内的11个数据中心可以选择,可以自由搭配1Gbps、2Gbps、10Gbps带宽端口,有Voxility DDoS高防IP可以选择(500Gbps以上的防御能力),并且支持在控制面板付费切换机房和更换IP(带...

bo-blog为你推荐
怎么查询商标怎样查询商标有没有被注册方法有哪些?云计算什么是云计算?巨星prince去世作者为什么把伏尔泰的逝世说成是巨星陨落百度关键词价格查询百度推广里怎么查指定的关键字参与竞价的价位呢www.jjwxc.net在哪个网站看小说?陈嘉垣陈浩民狼吻陈嘉恒是什么时候的事同ip站点同ip站点很多有没有影响?www.522av.com现在怎样在手机上看AVhaole018.comse.haole004.com为什么手机不能放?qq530.com求教:如何下载http://www.qq530.com/ 上的音乐
下载虚拟主机 域名备案流程 服务器评测 国外idc 美国主机网 优惠码 私有云存储 云全民 100x100头像 softbank邮箱 hkg 国外代理服务器软件 佛山高防服务器 重庆双线服务器托管 鲁诺 支付宝扫码领红包 香港新世界中心 上海服务器 drupal安装 杭州电信宽带优惠 更多