Home > Article > CMS Tutorial > How does phpcms remove website backend announcements by modifying the code?
First open the phpcms/modules/admin/functions/admin.func.php file (it is recommended to use an advanced editor to open it)
Then find the following two lines of code and comment them Delete:
//$update = pc_base::load_sys_class(‘update’); //此代码注释即可 //$notice_url = $update->notice(); //此代码注释即可
Delete and then upload to the corresponding file directory to overwrite the previous file.
Lastly log in to the website background to update the system cache. Log out and log in again to see that the announcement has been completely deleted.
Recommended related articles and tutorials: phpcms tutorial
The above is the detailed content of How does phpcms remove website backend announcements by modifying the code?. For more information, please follow other related articles on the PHP Chinese website!