Backup/Discuz.Web/upgrade/step2.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="upgrade.aspx.cs" Inherits="Discuz.Install.Upgrade" %>
<!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" />
<title>Discuz!NT安装</title>
<meta name="keywords" content="Discuz!NT安装" />
<meta name="description" content="Discuz!NT安装" />
<meta name="generator" content="Discuz!NT <%=Discuz.Common.Utils.ASSEMBLY_VERSION%>" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="main.css" type="text/css" media="all" />
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href="../install/js/jquery_boxy/css/common.css" type="text/css" />
<link rel="stylesheet" href="../install/js/jquery_boxy/css/boxy.css" type="text/css" />
<script type="text/javascript" src="../install/js/jquery_boxy/js/jquery.boxy.js"></script>
<script type="text/javascript">
    var checkConnection = function () {
        $("#recheck,#upgrade").attr("disabled", "disabled");

        $("#loading").ajaxStart(function () {
            $("#loading").removeClass("hint_info").addClass("loading_info").html("正在检测数据库链接...");
        });

        $.getJSON("step2.aspx?connection=check&r=" + Math.random(), function (data) {
            if (!data.Result) {
                $("#loading").removeClass("loading_info").addClass("hint_info").html(data.Message);
                $("#recheck").removeAttr("disabled");
            }
            else {
                $("#loading").removeClass("loading_info").addClass("hint_info").html("<ul><li>升级前请做好数据库的备份</li><li>请确认将detachtable_数据版本.config放置到config文件夹中</li></ul>");
                $("#upgrade").removeAttr("disabled");
            }
        });

        $("#recheck").click(checkConnection);
    };

    $(function () {
        checkConnection();
    });

    function upgrade() {
        var showbox = new Boxy('<p style=\"width:300px;font-size:14px;\"><img src=\"../images/common/loading.gif\" alt=\"loading\" />正在升级,时间较长,请耐心等待,不要关闭页面...</p>', { closeable: false, modal: true, center: true });
        showbox.show();
        $.getJSON("step2.aspx?upgrade=true&r=" + Math.random(), $('#form1').serialize(), function (data) {
            if (data.Result) {
                window.location.href = 'succeed.aspx';
            }
        });
        return false;
    }
</script>
</head>

<body>
<div class="wrap cl">
	<h2><img alt="Discuz!NT|BBS|论坛" src="images/logo.png" /><cite><b><%=Discuz.Common.Utils.ASSEMBLY_VERSION%></b>安装程序</cite></h2>
	<div class="nav">
后面还有 40 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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