当前位置:网站首页>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 .
边栏推荐
- Draw a slash on a plane coordinate
- Chapter 13 event operation of canvas
- Chapter 10 of canvas path
- 《canvas》之第11章 canvas状态
- PostgreSql学习(基于菜鸟课程)
- symfony框架安全组件(security)防火墙配置
- 【jenkins】pipeline控制多job顺序执行,进行定时持续集成
- Wei long updated the prospectus: the annual revenue of 4.8 billion founder liuweiping has a strong family color
- Research Report on research and development prospect of China's urea dioxide industry (2022 Edition)
- 校园跑腿微信小程序跑腿同学带直播新版源码
猜你喜欢

Source code of campus secondary market
![[Jenkins] pipeline controls the sequential execution of multiple jobs for timed continuous integration](/img/04/a650ab76397388bfb62d0dd190dbd0.png)
[Jenkins] pipeline controls the sequential execution of multiple jobs for timed continuous integration

The 5th China software open source innovation competition | opengauss track live training

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

网易严选离线数仓质量建设实践

Configuration tutorial for swagger2

建立自己的网站(19)

Uncover the secret! Pay attention to those machines under the membership system!

Chapter 12 other applications of canvas

Huali biology rushes to the scientific innovation board: the annual revenue is RMB 226million and it is planned to raise RMB 800million
随机推荐
高並發軟件(網站,服務器端接口)的評價指標
Introduction to veeambackup & replication
《canvas》之第11章 canvas状态
Whitelabel Error Page访问
Redis installation in windows and Linux Environment
Netease strict selection offline data warehouse quality construction practice
威高血液净化冲刺香港:年营收29亿 净利降12.7%
Indice d'évaluation du logiciel hautement simultané (site Web, interface côté serveur)
【Qt 教程】QPushButton 按键和双击效果
Thanos store component
MySQL 数据库 - 通用语法 DDL DML DQL DCL
【shell】jenkins shell实现自动部署
Why is redis so fast? Is redis single threaded or multi-threaded?
在平面坐标上画斜线
我登录RDB的数据库,提示需要主账号授权,这个我怎么知道该找谁?
Chapter 11 of canvas canvas status
China arsenic trioxide industry research and future forecast report (2022 Edition)
How does a two character name become a three character name with spaces
《canvas》之第12章 其他应用
Swagger2的配置教程