對于一些朋友來說,這個提醒有點(diǎn)煩人,或者是出于某種原因或者習(xí)慣,希望這個提示消失!
方法一:
打開phpcms/modules/admin/functions/admin.func.php
<?phpfunction 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==”
轉(zhuǎn)成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