1 0 0

解决xiuno4.0.4不支持php7.4及以上

V 满心 (UID: 1) 创始人
1月前 70

1、xiunophp/xiunophp.min.php 第20行

$get_magic_quotes_gpc = get_magic_quotes_gpc();
换成
$get_magic_quotes_gpc = 0;

2、/xiunophp/xiunophp.php 第20行

$get_magic_quotes_gpc = get_magic_quotes_gpc();
换成
$get_magic_quotes_gpc = 0;

3、/xiunophp/xn_html_safe.func.php 第785行、第938行、第951行

这三行:rawtext{},大括号{}改为中括号[],PHP高版本数组不再支持大括号{}

解决php8.1下http_url_path报错方法:

xiunophp/misc.func.php文件大约1034行

将http_url_path替换为以下内容

function http_url_path() {
    $port = _SERVER("SERVER_PORT");
    //$portadd = ($port == 80 ? "" : ":".$port);
    $host = _SERVER("HTTP_HOST");  // host 里包含 port
    $https = strtolower(_SERVER("HTTPS", "off"));
    $proto = _SERVER("HTTP_X_FORWARDED_PROTO") ? strtolower(_SERVER("HTTP_X_FORWARDED_PROTO")) : ""; //此处加判断
    $path = substr($_SERVER["PHP_SELF"], 0, strrpos($_SERVER["PHP_SELF"], "/"));
    $http = (($port == 443) || $proto == "https" || ($https && $https != "off")) ? "https" : "http";
    return  "$http://$host$path/";
}

 

 

 

 

 

 

猜你喜欢

上一篇
无更多文章

请先登录后发表评论!

最新回复 (1)
全部楼主
  • 王大富 1月前
    0 引用 查看所有回复 2

    不错不错

ROOVPS VPSQQ 广告位招租
返回
来发布一条评论吧~点击关闭评论框