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

tmhhost:全场VPS低至6.4折,香港BGP200M日本软银美国cn2 gia 200G高防美国三网cn2 gia韩国CN2

tmhhost放出了2021年的端午佳节+618年中大促的优惠活动:日本软银、洛杉矶200G高防cn2 gia、洛杉矶三网cn2 gia、香港200M直连BGP、韩国cn2,全都是高端优化线路,所有这些VPS直接8折,部分已经做了季付8折然后再在此基础上继续8折(也就是6.4折)。 官方网站:https://www.tmhhost.com 香港BGP线路VPS ,200M带宽 200M带...

RAKsmart推出7.59美元/月,云服务器产品Cloud Server,KVM架构1核1G内存40G硬盘1M带宽基础配置

近期RAKsmart上线云服务器Cloud Server产品,KVM架构1核1G内存40G硬盘1M带宽基础配置7.59美元/月!RAKsmart云服务器Cloud Server位于美国硅谷机房,下单可选DIY各项配置,VPC网络/经典网络,大陆优化/精品网线路,1-1000Mbps带宽,支持Linux或者Windows操作系统,提供Snap和Backup。RAKsmart机房是一家成立于2012年...

pacificrack:VPS降价,SSD价格下降

之前几个月由于CHIA挖矿导致全球固态硬盘的价格疯涨,如今硬盘挖矿基本上已死,硬盘的价格基本上恢复到常规价位,所以,pacificrack决定对全系Cloud server进行价格调整,降幅较大,“如果您是老用户,请通过续费管理或升级套餐,获取同步到最新的定价”。官方网站:https://pacificrack.com支持PayPal、支付宝等方式付款VPS特征:基于KVM虚拟,纯SSD raid...

bo-blog为你推荐
美国互联网瘫痪美国是否有能力关闭全球互联网以及中国互联网,还有美国有没能力关闭某个网站,比如淘宝,天涯,网易等蓝色骨头手机宠物的一个蓝色骨头代表多少级,灰色又代表多少级,另外假如有骨头又代表多少级mathplayer如何学好理科75ff.com开机出现www.ami.com是什么?怎么解决啊18comic.fun贴吧经常有人说A站B站,是什么意思啊?mole.61.com摩尔庄园RK的秘密是什么?www.5ff.comhttp://www.940777.com/网站,是不是真的网投六合javbibitreebibi是什么牌子的广告法中国的广告法有哪些。66smsm.com【回家的欲望(回家的诱惑)大结局】 回家的诱惑全集66 67 68 69 70集QOVD快播观看地址??
子域名查询 网通服务器租用 最便宜虚拟主机 中文域名交易中心 泛域名绑定 sugarhosts 狗爹 permitrootlogin 主机屋免费空间 线路工具 网通代理服务器 gspeed 工作站服务器 699美元 服务器干什么用的 怎么建立邮箱 华为云盘 万网空间管理 中国电信测速器 atom处理器 更多