Home > CMS Tutorial > PHPCMS > What should I do if phpcms does not support https?

What should I do if phpcms does not support https?

藏色散人
Release: 2020-07-13 11:25:15
Original
2531 people have browsed it

phpcms does not support https solution: first find the "global.func.php" file; then modify the code to "$url = str_replace(array('https://','//',' ~')"; just modify the content_list file at the end.

What should I do if phpcms does not support https?


##Phpcms upgrade :Solution for not supporting https

Solution for upgrading Phpcms V9 that does not support https

1.\phpcms\libs\functions\global.func. php

Found:

$url = str_replace(array('http://','//','~'), array('~','/','http://'), $url);
Copy after login

Replaced with:

$url = str_replace(array('https://','//','~'), array('~','/','https://'), $url);
Copy after login

2:\phpcms\modules \content\templates\content_list.tpl.php

Found:

if($r['islink']) {
echo '';
} elseif(strpos($r['url'],'http://')!==false) {
echo '';
Copy after login

Replaced with:

if($r['islink']) {
echo '';
} elseif(strpos($r['url'],'https://')!==false) {
echo '';
Copy after login

3,\ phpcms\modules\content\templates\content_page.tpl.php

Found:

if(strpos($category['url'],'http://')===false)
Copy after login

Replaced with:

if(strpos($category['url'],'https://')===false)
Copy after login

Recommended: "

PHPcms tutorial

The above is the detailed content of What should I do if phpcms does not support https?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template