对于一些朋友来说,这个提醒有点烦人,或者是出于某种原因或者习惯,希望这个提示消失!
方法一:
打开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); }
把base64编码这句
“PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPiQoIiNtYWluX2ZyYW1laWQiKS5yZW1vdmVDbGFzcygiZGlzcGxheSIpOzwvc2NyaXB0PjxkaXYgaWQ9InBocGNtc19ub3RpY2UiPjwvZGl2PjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBzcmM9Ik5PVElDRV9VUkwiPjwvc2NyaXB0Pg==”
转成html就知道是怎么回事了,解码后:
<script type="text/JavaScript">$("#mAIn_frameid").removeClass("display");</script><div id="phpcms_notice"></div><script type="text/javascript" src="NOTICE_URL"></script>
方法二:
1、第一步:找到phpcms/libs/classes文件夹下的update.class.php文件,修改第49行的代码:
function notice() { return $this->url('notice'); }
修改为:function notice() {}
保存,ok