WELOA.Web/admin/login_databack.aspx.cs

(开头部分) 12KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LSBLL;
using WELOA.Model;
using System.IO;

namespace Web.admin
{
    public partial class login_databack : System.Web.UI.Page
    {
        private LS_System systemBLL = new LS_System();

        
        protected void backsql_Click(object sender, EventArgs e)
        {
            Polytechnic Polytechnic = this.systemBLL.databack();
            if (Polytechnic.nException > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常3,请联系管理员处理。')</script>");
            }
            else if (Polytechnic.rowsnum > 0)
            {
                this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('备份成功。')</script>");
                this.RadioButtonList1.Items.Clear();
                FileSetInformation FileSetInformation = this.systemBLL.datafileList();
                if (FileSetInformation.nException > 0)
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常4,请联系管理员处理。')</script>");
                }
                else if (FileSetInformation.strPatch == "")
                {
                    this.Panel1.Visible = true;
                }
                else
                {
                    this.lbsqlpath.Text = FileSetInformation.strPatch;
                    if (FileSetInformation.imgFiles.Count<FileInfo>() > 0)
                    {
                        this.btrestore.Visible = true;
                        this.delbackupfile.Visible = true;
                        this.RadioButtonList1.DataSource = FileSetInformation.imgFiles;
                        this.RadioButtonList1.DataBind();
                    }
                }
            }
        }

        protected void btrestore_Click(object sender, EventArgs e)
        {
            if (this.Session["rank"] != null)
            {
                if (this.Session["rank"].ToString() != "超级管理员")
                {
                    base.Response.Write("<script language=javascript >alert('您没有修改权限。')</script>");
                    return;
                }
后面还有 233 行代码,解锁后查看完整代码

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

AI 解读

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

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