📄 step_end.aspx.cs
字号:
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;
using System.Net;
namespace NetCMS.Web.Install
{
public partial class step_End : NetCMS.Web.UI.BasePage
{
public string s_initialcatalog = null;
protected void Page_Load(object sender, EventArgs e)
{
Response.CacheControl = "no-cache";
s_initialcatalog = Request.QueryString["Dbname"];
if (s_initialcatalog == null || s_initialcatalog == "")
PageError("�������ݴ���!", "step4.aspx", true);
else
s_initialcatalog = NetCMS.Common.Input.URLDecode(s_initialcatalog);
string GError = Request.QueryString["error"];
if (GError != "false")
{
PageError("�밲װ����Ա���ٽ��д˲�����", "step4.aspx", true);
}
string gset = Request.QueryString["start"];
if (gset != string.Empty && gset != null)
{
Response.Write(InsertValue(Request.QueryString["set"]));
Response.End();
}
//deleteInstallFile();
}
protected string InsertValue(string par)
{
string sitedir = Server.MapPath("~").TrimEnd('\\');
string ResultStr = string.Empty;
string s_dbsqlpath1 = string.Empty;
string RollBar = "0/8";
try
{
switch (par)
{
case "site_param":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\site_param.sql";
RollBar = "1/9���������õ���ɹ���";
break;
case "group":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\group.sql";
RollBar = "2/9����Ա�飬����Ա�����õ���ɹ���";
break;
case "label":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\label.sql";
RollBar = "3/9�����ñ�ǩ����ɹ���";
break;
case "menu":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\menu.sql";
RollBar = "4/9�����ܲ˵�����ɹ���";
break;
case "navi":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\navi.sql";
RollBar = "5/9��Ĭ�Ͽ�ݷ�ʽ����ɹ���";
break;
case "stat":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\stat.sql";
RollBar = "6/9��ͳ�Ʋ�������ɹ���";
break;
case "friend":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\friend.sql";
RollBar = "7/9���������Ӳ�������ɹ���";
break;
case "collect":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\collect.sql";
RollBar = "8/9���ɼ���������ɹ���";
break;
case "help":
s_dbsqlpath1 = sitedir + "\\Install\\SQL\\Value\\help.sql";
RollBar = "9/9����������ɹ���";
break;
}
if (s_dbsqlpath1 == string.Empty)
{
ResultStr = "�������
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -