⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 finishinstall.aspx.cs

📁 最好用的站点内容管理系统 全部源代码都有
💻 CS
字号:
//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.IO;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;

namespace NetCMS.Web.Install
{
    public partial class finishinstall : NetCMS.Web.UI.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string[] arr_file ={ "Index.aspx", "step1.aspx", "step2.aspx", "step3.aspx", "step4.aspx", "step_End.aspx" };
                for (int i = 0; i < arr_file.Length; i++)
                {
                    string s_filepath = Server.MapPath(arr_file[i].ToString());
                    if (File.Exists(s_filepath))
                    {
                        File.Delete(s_filepath);
                    }
                    if (Directory.Exists(Server.MapPath("~/install/SQL")))
                    {
                        Directory.Delete(Server.MapPath("~/install/SQL"));
                    }
                }
            }
            catch
            {
                Response.Redirect("../" + NetCMS.Config.UIConfig.dirMana + "/login.aspx?");
            }
            Response.Redirect("../" + NetCMS.Config.UIConfig.dirMana + "/login.aspx?");
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -