migrate to new git
This commit is contained in:
43
web/admin/fileupload/index.aspx.cs
Normal file
43
web/admin/fileupload/index.aspx.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user