解码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>";?>

ShineServers(5美元/月)荷兰VPS、阿联酋VPS首月五折/1核1G/50GB硬盘/3TB流量/1Gbps带宽

优惠码50SSDOFF 首月5折50WHTSSD 年付5折15OFF 85折优惠,可循环使用荷兰VPSCPU内存SSD带宽IPv4价格购买1核1G50G1Gbps/3TB1个$ 9.10/月链接2核2G80G1Gbps/5TB1个$ 12.70/月链接2核3G100G1Gbps/7TB1个$ 16.30/月链接3核4G150G1Gbps/10TB1个$ 18.10/月链接阿联酋VPSCPU内存SS...

安徽BGP云服务器 1核 1G 5M 29元/月 香港云服务器 1核 1G 19元首月 麻花云

麻花云怎么样?麻花云公司成立于2007年,当前主打产品为安徽移动BGP线路,数据中心连入移动骨干网。提供5M,10M大带宽云主机,香港云服务器产品,数据中心为香港将军澳机房,香港宽频机房 cn2-GIA优质线路、采用HYPER-V,KVM虚拟技术架构一、麻花云官网点击直达麻花云官方网站合肥网联网络科技有限公司优惠码: 专属优惠码:F1B07B 享受85折优惠。最新活动 :双11 云上嗨购 香港云主...

PhotonVPS:$4/月,KVM-2GB/30GB/2TB/洛杉矶&达拉斯&芝加哥等

很久没有分享PhotonVPS的消息,最近看到商家VPS主机套餐有一些更新所以分享下。这是一家成立于2008年的国外VPS服务商,Psychz机房旗下的站点,主要提供VPS和独立服务器等,数据中心包括美国洛杉矶、达拉斯、芝加哥、阿什本等。目前,商家针对Cloud VPS提供8折优惠码,优惠后最低2G内存套餐每月4美元起。下面列出几款主机配置信息。CPU:1core内存:2GB硬盘:30GB NVm...

bo-blog为你推荐
云爆发云联惠是什么来的云爆发养兵千日用兵千日这个说法对不对h连锁酒店什么连锁酒店好firetrap我淘宝店还是卖二单就被删,怎么回事!地陷裂口山崩地裂的意思www.jjwxc.net晋江文学网 的网址是什么?seo优化工具SEO优化要用到什么软件?百度关键词分析怎样对关键词进行分析和选择www.qq530.com谁能给我一个听歌的网站?125xx.com高手指教下,www.fshxbxg.com这个域名值多少钱?
中国万网虚拟主机 赵容 dropbox网盘 服务器架设 圣诞节促销 秒杀预告 佛山高防服务器 河南移动网 免费美国空间 爱奇艺会员免费试用 ca187 环聊 登陆空间 smtp服务器地址 atom处理器 学生服务器 可外链的相册 网络速度 电信主机托管 架设代理服务器 更多