网站首页
phpcms远程公告如何去除,phpcms2008_phpcms v9
发布时间:2015-03-14 09:24:27编辑:admin阅读()
-
phpcms2008版:
1.打开/admin/templates/index_main.tpl.php文件
2.删除本段代码<script type="text/javascript" src="<?=$notice_url?>"></script>
phpcmsv9版
1.打开phpcms/modules/admin/functions/admin.func.php文件
2.找到如下代码并注释其中两行即可
function system_information($data) {
//$update = pc_base::load_sys_class(‘update’); //此代码注释即可
//$notice_url = $update->notice(); //此代码注释即可
$string = base64_decode (‘PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPiQoIiNtYWluX2ZyYW1laWQiKS5yZW1v
dmVDbGFzcygiZGlzcGxheSIpOzwvc2NyaXB0PjxkaXYgaWQ9InBocGNtc19ub3RpY2UiPjwvZGl2PjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBzcmM9Ik5PVElDRV9VUkwiPjwvc2NyaXB0Pg==’);
echo $data.str_replace(‘NOTICE_URL’,$notice_url,$string);