当前位置:网站首页>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 .
边栏推荐
- Deploy redis sentry in k8s
- Heavyweight! The latest SCI impact factors were released in 2022, and the ranking of the three famous journals NCS and the top10 of domestic journals has changed (the latest impact factors in 2022 are
- Redis' data expiration clearing strategy and memory obsolescence strategy
- Draw a slash on a plane coordinate
- Uniapp problem list and experience
- 《canvas》之第14章 物理动画
- Illustration of Ctrip quarterly report: net revenue of RMB 4.1 billion has been "halved" compared with that before the outbreak
- Wei long updated the prospectus: the annual revenue of 4.8 billion founder liuweiping has a strong family color
- QRcode custom QR code middle picture
- Is 100W data table faster than 1000W data table query in MySQL?
猜你喜欢

Campus errands wechat applet errands students with live new source code

Mysql database - general syntax DDL DML DQL DCL

Illustration of Ctrip quarterly report: net revenue of RMB 4.1 billion has been "halved" compared with that before the outbreak

【Try to Hack】vulnhub DC2

Swagger2的配置教程

第五届中国软件开源创新大赛 | openGauss赛道直播培训

Is 100W data table faster than 1000W data table query in MySQL?

Imitation headline news information DZ template discuz news information business version GBK template source code
![[top] blog instructions, bulletin board, message board, about bloggers](/img/3a/6100ae88874cad57305decce41c1e7.png)
[top] blog instructions, bulletin board, message board, about bloggers

建立自己的网站(19)
随机推荐
go学习(四、面向接口)
Mysql database - general syntax DDL DML DQL DCL
【jenkins】pipeline控制多job顺序执行,进行定时持续集成
Transport layer selective ACK
我想在数仓的几百个节点里面 查找一个都有哪些sql里面用到了某张表 能查吗
JS 会有变量提升和函数提升
Huashu high tech rushes to the scientific innovation board: the actual controller xuxiaoshu and his son, who plan to raise 660million yuan, are both American nationals
Uncover the secret! Pay attention to those machines under the membership system!
[Verilog quick start of Niuke online question series] ~ shift operation and multiplication
MySQL中100w数据表比1000w数据表查询更快吗?
自动注入@Resource和@Autowired注解的区别:
QRCode自定义二维码中间图片
Whitelabel error page access
Uniapp problem list and experience
CKS CKA CKAD 将终端更改为远程桌面
如果我在佛山,到哪里开户比较好?究竟网上开户是否安全么?
Digital IC code -- traffic lights
Chapter 13 event operation of canvas
《canvas》之第6章 图片操作
《canvas》之第14章 物理动画