Discuz.Web/tools/error.htm

(完整代码) 2KB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta name="keywords" content="ASP.net,论坛" />
    <meta name="description" content="Discuz!NT,论坛,asp.net" />
    
  
    <script type="text/javascript">
    var arr = '';
    if (location.search.length > 1) {
        arr = decodeURI(location.search).substr(1).split("&"); //各个参数放到数组里
    }

    function requestGetForumPath() {
        for (var i = 0; i < arr.length; i++) {
            if ((arr[i].toLowerCase() + '=').indexOf('forumpath=') == 0) {
                document.write('<meta http-equiv="refresh" content="3; url=' + arr[i].substr(10) + 'index.aspx" />');
                return;
            }
        }
        document.write('<meta http-equiv="refresh" content="3; url=/index.aspx" />');
    }
    requestGetForumPath();
    
    function requestGetTemplate() {
        for (var i = 0; i < arr.length; i++) {
            if ((arr[i].toLowerCase() + '=').indexOf('templatepath=') == 0) {
                 document.write('<link href="/templates/' + arr[i].substr(13) + '/dnt.css" rel="stylesheet" type="text/css" />');
                 return;
             }
         }
         document.write('<link href="/templates/default/dnt.css" rel="stylesheet" type="text/css" />');
     }
    
    requestGetTemplate();  
    </script>
    <title>错误信息页面</title>
</head>
<body>
    <div id="errormsg" class="box message error_box" />
</body>
</html>

<script type="text/javascript">
    function requestGetMsg() {
        for (var i = 0; i < arr.length; i++) {
            if ((arr[i].toLowerCase() + '=').indexOf('msg=') == 0) {
                return arr[i].substr(4);
            }
        }           
        return '暂无错误信息!';
    }
    document.getElementById('errormsg').innerHTML = '<p>' + decodeURI(requestGetMsg()) + '</p>';    
</script> 

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。