Files
17168ERP/web/admin/fileupload/index.aspx.cs
2025-08-29 01:27:25 +08:00

43 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class admin_fileupload_index : System.Web.UI.Page
{
string scc = ConfigurationManager.AppSettings["shopCarCode"].ToString();
protected void Page_Load(object sender, EventArgs e)
{
MyWeb.admin admin = new MyWeb.admin();
if (MyWeb.admin.chkAdmIP && (MyWeb.admin.chkTwIP || MyWeb.admin.chkAdmIP_Enable) && admin.isLoign())
{
if (admin.info.login_ip != MyWeb.admin.MyIP)
{
Response.Clear();
Response.StatusCode = 404;
Response.End();
}
HttpBrowserCapabilities hbc = Request.Browser;
//Response.Write(hbc.Browser);
if (hbc.Browser.IndexOf("InternetExplorer") > -1 | hbc.Browser.ToUpper().IndexOf("IE") > -1)
{
MultiView1.ActiveViewIndex = 0;
}
else
{
MultiView1.ActiveViewIndex = 1;
}
}
else
{
Response.Clear();
Response.StatusCode = 404;
Response.End();
}
}
}