打开后台时向phpcms官网发送请求异常处理
如果你想暂时关闭掉此无效请求的发送,步骤如下:
-
找到admin模块的函数库文件admin.func.php(在/phpcms/modules/admin/functions目录下,看过iphpcms.net的视频教程的同学应该都对模块化目录比较清楚了,这里就不多说了),把其中的system_information()函数注释调。
-
来到admin模块下的index.php控制器文件(在/phpcms/modules/admin目录下),找到其中的public_main()方法,把方法末尾的缓冲输出相关代码和对system_infomation函数调用代码注释掉,如下:
1234567$designer
=
'张二强'
;
//ob_start();
include
$this
->admin_tpl(
'main'
);
//$data = ob_get_contents();
//ob_end_clean();
//system_information($data);
}
-
最后找到后台首页模板main.tpl.php(地址/phpcms/modules/admin/templates里面),把大约第五行的div标签的display类去掉:
1<
div
id
=
"main_frameid"
class
=
"pad-10 display"
style
=
"_margin-right:-12px;_width:98.9%;"
>
改为:
1<
div
id
=
"main_frameid"
class
=
"pad-10"
style
=
"_margin-right:-12px;_width:98.9%;"
>
至此,便把phpcms后台携带网站信息向官网服务器发送更新请求暂时关掉了,同时后台的反应速度也大大加快了。