【phpcms】删除后台新版本升级提示的方法

2015-01-14 22:36:56 admin 149

方法一:

打开phpcms/modules/admin/functions/admin.func.php

 

注释掉

<?php
function system_information($data) {
//$update = pc_base::load_sys_class('update');  //此代码注释即可
//$notice_url = $update->notice();                        //此代码注释即可
$string = base64_decode('PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPiQoIiNtYWluX2ZyYW1laWQiKS5yZW1vdmVDbGFzcygiZGlzcGxheSIpOzwvc2NyaXB0PjxkaXYgaWQ9InBocGNtc19ub3RpY2UiPjwvZGl2PjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBzcmM9Ik5PVElDRV9VUkwiPjwvc2NyaXB0Pg==');
echo $data.str_replace('NOTICE_URL',$notice_url,$string);
}

方法二:

1、第一步:找到phpcms/libs/classes文件夹下的update.class.php文件,修改第49行的代码:

function notice() {

return $this->url('notice');}

修改为:function notice() {}

2、保存,OK

 

转载自:http://come176.com/?p=739