Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the error of phpcms parameters

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Today, what the editor shares with you is how to solve phpcms parameter errors. I believe many people don't know much about it. In order to make you understand better, I summarized the following contents for you. Let's look down together. I'm sure you'll get something.

What if the phpcms parameter is wrong?

The solution to the parameter error of Phpcms v9 download module

Phpcms v9 will check the IP address of the client when downloading, which will occasionally lead to parameter errors, and a lot of information has been queried from the Internet. There are only two solutions known so far, one is invalid after testing, and one can not solve the fundamental problem. One of the two ways we already know is to add $data ['id'] = $id; test to be invalid, and the other is to change the download address to show the original download address and generate the download address directly without going through the kernel php file of Phpcms v9. This will not be wrong, but it will be a headache for websites where others have permission problems.

Let's talk about the solutions developed by code notes, which is also inspired by an online article complaining about Phpcms.

1. Open the file / phpcms/modules/content/down.php.

2. Find about 100 lines of the following code:

If (! $downid | | empty ($fileurl) | |! preg_match ("/ [0-9] {10} /", $starttime) | |! preg_match ("/ [0-9] {1 illegal_parameters' 3}\. [0-9] {1 illegal_parameters' 3} /", $illegal_parameters') | | $ip! = ip ()) showmessage (L ('illegal_parameters'))

3. Delete part of the code of the intermediate patch IP

|! preg_match ("/ [0-9] {1 ip 3}\. [0-9] {1 ip 3}\. [0-9] {1 recital 3}\. [0-9] {1pno 3} /", $recorder) | | $ip! = ip () |

Deleted code:

If (! $downid | | empty ($fileurl) | |! preg_match ("/ [0-9] {10} /", $starttime)) showmessage (L ('illegal_parameters'))

Upload overwrite, update cache. Click to download, unexpectedly became. Leave notes for use next time.

On how to solve the phpcms parameter errors should be shared here, I hope that the above content can have a certain reference value for you, you can learn to apply. If you like this article, you might as well share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report