当前位置:网站首页>What should phpcms do when it sends an upgrade request to the official website when it opens the background home page?
What should phpcms do when it sends an upgrade request to the official website when it opens the background home page?
2022-06-29 14:54:00 【Laizhongbiao】
Problem description :
Use phpcms If you are careful , You may find that when we log in to the background of the website and open the background home page , The browser will be in the state of sending requests for a long time , Open the debugging tool and you will find that the background is phpcms Official website address update.v9.phpcms.cn Sent a request with more information , And this request is 404 The request failed . Here's the picture :

The request parameters are as follows , It can be seen that they still carry a lot of sensitive information :

that , Why is this exception request generated , Where to find a solution , Let's introduce .
resolvent :
as everyone knows ,phpcms The official team is basically at a standstill ( Although it is a good content management system , But no thigh support ), Then its update and upgrade server is also turned off , So open it When the machine phpcms The default request sent to the update server in the system program cannot be answered , As a result, an exception occurs in the background that the web page is in the requested state .
Next, let's talk about where the automatic request is , Because it is not clear whether it is designed to phpcms Related copyright issues , I do not recommend and will not guide you to how to handle the code that sends the request , It is up to you to decide . Just in order to optimize the background operation and maintenance of the website phpcms Open source learning aims to communicate with you .
Suppose you want to turn off sending this invalid request temporarily , Steps are as follows :
find admin Function library file of the module admin.func.php( stay /phpcms/modules/admin/functions Under the table of contents , seen iphpcms.net The students of the video tutorial should be quite clear about the modular directory , Not much here ), Put them in system_information() function Note tone .
Came to admin Under the module of index.php Controller files ( stay /phpcms/modules/admin Under the table of contents ), Find one public_main() Method , Put the buffer at the end of the method to output the relevant code and to system_infomation The function call code comments out , as follows :
1
2
3
4
5
6
7
$designer=' Zhang erqiang ';//ob_start();include$this->admin_tpl('main');//$data = ob_get_contents();//ob_end_clean();//system_information($data);}Finally, find the background home page template main.tpl.php( Address /phpcms/modules/admin/templates Inside ), Put about the fifth line of div Labeled display class Get rid of :
1
<divid="main_frameid"class="pad-10 display"style="_margin-right:-12px;_width:98.9%;">Change it to :
1
<divid="main_frameid"class="pad-10"style="_margin-right:-12px;_width:98.9%;">
thus , Then put phpcms The background carries the website information and sends an update request to the official website server. It is temporarily turned off , Welcome to learn from each other in the learning message .
边栏推荐
- Is 100W data table faster than 1000W data table query in MySQL?
- Chapter 8 pixel operation of canvas
- JS will have variable promotion and function promotion
- 熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
- Alibaba cloud experience Award: use polardb-x and Flink to build a large real-time data screen
- 模电 2个NPN管组成的恒流源电路分析
- 我想在数仓的几百个节点里面 查找一个都有哪些sql里面用到了某张表 能查吗
- Paper study -- accurate accounting of annual total runoff control rate considering the interannual variation characteristics of rainfall
- Draw a slash on a plane coordinate
- phpcms打开后台首页时向官网发送升级请求觉得卡怎么办?
猜你喜欢

【置顶】博客使用须知,公告板,留言板,关于博主

Mysql database - general syntax DDL DML DQL DCL

June 27 talk SofiE

阿里云体验有奖:使用PolarDB-X与Flink搭建实时数据大屏

Netease strict selection offline data warehouse quality construction practice

类模板案例-【数组类封装】

Class template case - array class encapsulation

Uniapp problem list and experience

Are you still reading the log by command? Use kibana, one picture is better than ten thousand lines of log

第五届中国软件开源创新大赛 | openGauss赛道直播培训
随机推荐
Analysis of istio -- observability
Laravel - Composer 安装指定 Laravel 版本
Explanation on deployment and establishment of decentraland process
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
EMC-浪涌防护及退耦设计
Weigao blood purification sprint to Hong Kong: annual revenue of RMB 2.9 billion, net profit decreased by 12.7%
Campus errands wechat applet errands students with live new source code
June 27 talk SofiE
Huali biology rushes to the scientific innovation board: the annual revenue is RMB 226million and it is planned to raise RMB 800million
[QT tutorial] QPushButton key and double click effect
卫龙更新招股书:年营收48亿 创始人刘卫平家族色彩浓厚
Netease strict selection offline data warehouse quality construction practice
携程季报图解:净营收41亿 与疫情前相比已被“腰斩”
仿头条新闻资讯dz模板 Discuz新闻资讯商业版GBK模板源码
《canvas》之第14章 物理动画
Kubernetes pod troubleshooting guide
Ogg synchronize MySQL data to greenplus
China arsenic trioxide industry research and future forecast report (2022 Edition)
[shell] Jenkins shell realizes automatic deployment
华理生物冲刺科创板:年营收2.26亿 拟募资8亿