马上注册,免费下载更多dz插件网资源。
您需要 登录 才可以下载或查看,没有账号?立即注册 
 
 
 
×
 
部分插件跳转时,没带上网站域名,然后浏览器就默认以当前url路径为前缀进行跳转,导致链接错误 
打开:source\function\function_core.php 
找到- function dheader($string, $replace = true, $http_response_code = 0) {        $islocation = substr(strtolower(trim($string)), 0, 8) == 'location';        if(defined('IN_MOBILE') && strpos($string, 'mobile') === false && $islocation) {                if (strpos($string, '?') === false) {                        $string = $string.'?mobile='.IN_MOBILE;                } else {                        if(strpos($string, '#') === false) {                                $string = $string.'&mobile='.IN_MOBILE;                        } else {                                $str_arr = explode('#', $string);                                $str_arr[0] = $str_arr[0].'&mobile='.IN_MOBILE;                                $string = implode('#', $str_arr);                        }                }        }        $string = str_replace(array("\r", "\n"), array('', ''), $string);        if(empty($http_response_code) || PHP_VERSION < '4.3' ) {                @header($string, $replace);        } else {                @header($string, $replace, $http_response_code);        }        if($islocation) {                exit();        }}
 
  复制代码 修改为- function dheader($string, $replace = true, $http_response_code = 0) {        global $_G;        $islocation = substr(strtolower(trim($string)), 0, 8) == 'location';        if($islocation){                if(!preg_match('/location:\s*https?:\/\//is', $string)){                        $string = preg_replace("/location:\s*/is", 'Location: '.$_G['siteurl'], $string);                }        }        if(defined('IN_MOBILE') && strpos($string, 'mobile') === false && $islocation) {                if (strpos($string, '?') === false) {                        $string = $string.'?mobile='.IN_MOBILE;                } else {                        if(strpos($string, '#') === false) {                                $string = $string.'&mobile='.IN_MOBILE;                        } else {                                $str_arr = explode('#', $string);                                $str_arr[0] = $str_arr[0].'&mobile='.IN_MOBILE;                                $string = implode('#', $str_arr);                        }                }        }        $string = str_replace(array("\r", "\n"), array('', ''), $string);        if(empty($http_response_code) || PHP_VERSION < '4.3' ) {                @header($string, $replace);        } else {                @header($string, $replace, $http_response_code);        }        if($islocation) {                exit();        }}
 
  复制代码 
    
    
        ©DZ插件网所发布的一切资源仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。 本站内容为站长个人技术研究记录或网络,不提供用户交互功能,所有内容版权归原作者所有。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,得到更好的正版服务。 您在本站任何的赞助购买、下载、查阅、回复等行为等均表示接受并同意签订《DZ插件网免责声明协议》。 如有侵权请邮件与我们联系处理: discuzaddons@vip.qq.com 并出示相关证明以便删除。敬请谅解!
     
 
 |   
		
		
 	
  
 |