BO-BLOG的加密模块解码和编码

例如
在BO-BLOG侧边栏添加一个所有文章的综合点击排行模块,
加密后:
<php>Z2xvYmFsICRibG9nLCRkYl9wcmVmaXgsJG1iY29uOw0KJGFsbGhvdHZpZXc9JGJsb2ctPmdldGdyb3VwYnlxdWVyeSgiU0VMRUNUICogRlJPTSBgeyRkYl9wcmVmaXh9YmxvZ3NgIFdIRVJFIGBwcm9wZXJ0eWAgPTAgT1JERVIgQlkgYHZpZXdzYCBERVNDIExJTUlUIDAgLCB7JG1iY29uWydlbnRyeW51bSddfSIpOw0KaWYoaXNfYXJyYXkoJGFsbGhvdHZpZXcpKXsNCiR2aWV3aG93cz0nPHVsPic7DQpmb3JlYWNoKCRhbGxob3R2aWV3IGFzICRvbmVob3R2aWV3KXsNCiR0aGlzbGVuPSRtYmNvblsnZW50cnlsZW5ndGgnXS0oY2VpbChzdHJsZW4oJG9uZWhvdHZpZXdbJ3ZpZXdzJ10pLzIpKS0xOw0KJHRpdGxlPW1zdWJzdHIoJG9uZWhvdHZpZXdbJ3RpdGxlJ10sMCwkdGhpc2xlbik7DQppZigkdGl0bGUhPSRvbmVob3R2aWV3Wyd0aXRsZSddKSAkdGl0bGUuPScuLi4nOw0KJHZpZXdob3dzLj0iPGxpPlt7JG9uZWhvdHZpZXdbJ3ZpZXdzJ119XTxhIGhyZWY9XCIiLmdldGxpbmtfZW50cnkoJG9uZWhvdHZpZXdbJ2Jsb2dpZCddLCAkb25laG90dmlld1snYmxvZ2FsaWFzJ10pLiJcIj57JHRpdGxlfTwvYT48L2xpPiI7DQp9DQokdmlld2hvd3MuPSc8L3VsPic7DQp9ZWxzZSAkdmlld2hvd3M9J05vIHZpZXchJzsNCiRwaHByZXR1cm49JHZpZXdob3dzOw==</php>

解密后:
global $blog, $db_prefix, $mbcon;
$allhotview = $blog->getgroupbyquery("SELECT * FROM `{$db_prefix}blogs` WHERE `property` =0 ORDER BY `views` DESC LIMIT 0 , {$mbcon['entrynum']}");
if (is_array($allhotview))
{
$viewhows = '<ul>';
foreach ($allhotview as $onehotview)
{
$thislen = $mbcon['entrylength'] - (ceil(strlen($onehotview['views']) / 2)) - 1;
$title = msubstr($onehotview['title'], 0, $thislen);
if ($title != $onehotview['title'])
$title .= '...';
$viewhows .= "<li>[{$onehotview['views']}]<a href=\"" . getlink_entry($onehotview['blogid'], $onehotview['blogalias']) . "\">{$title}</a></li>";
}
$viewhows .= '</ul>';
}
else
$viewhows = 'No view!';
$phpreturn = $viewhows;


文章附属文件

文件名称: 20180105115134444112.png

文件大小:20.27 KB

文件签名:F4A2557BD989B929E0109A167FCEB596D8312D23

文件名称: 20180105115133128521.7z

文件大小:131.81 KB

文件签名:051C4EBAA5E31D20C0B89356448F2DD9AB5982BA

评论列表

刊讯网
我都看不懂,哈哈,收藏了
2010-06-24 21:27:28