protected void Page_Load(object sender, EventArgs e) { site = new Site_Supplier(); url = RequestTool.RequestString("url").Replace("<", "").Replace(">", ""); if (url.ToLower().IndexOf("http") > -1 || url.ToLower().IndexOf("login.aspx") > -1 || url == "") { url = site.AdminPath + "/default.aspx?desk=1"; } string msg = ""; logintype = RequestTool.RequestString("logintype"); sid = RequestTool.RequestInt("sid"); if (CurrentUser.id > 0) { if (EX_Supplier.Login(CurrentUser, logintype, sid, out msg)) { Response.Redirect(url); } } try { if ((string)HttpContext.Current.Session["loginerror"] == "true") { LoginError = true; } } catch { LoginError = false; } }
protected void Page_Load(object sender, EventArgs e) { site_supplier = new Site_Supplier(); CookieTool.DeleteCookie("User"); Response.Redirect(site_supplier.AdminPath + "/login.aspx?url=" + HttpUtility.UrlEncode(RequestTool.GetUrlReferrerNonDomain()) + ""); }
protected void Page_Load(object sender, EventArgs e) { site = new Site_Supplier(); //url = RequestTool.RequestString("url").Replace("<", "").Replace(">", ""); //if (url.ToLower().IndexOf("http") > -1 || url.ToLower().IndexOf("login.aspx") > -1 || url == "") //{ // url = site.AdminPath + "/default.aspx?desk=1"; //} }
protected override void LoadPage(string themecode, int siteid, string languagecode, string pcode) { LoadTheme(themecode, siteid, languagecode, pcode); site = new Site_Supplier(); backurl = RequestTool.RequestString("url").Replace("<", "").Replace(">", ""); if (backurl == "") { backurl = site.AdminPath + "/login.aspx"; } if (CurrentUser.id == 0) { Response.Redirect(URL("P_Login", "" + HttpUtility.UrlEncode(RequestTool.GetRequestUrlNonDomain()) + "," + GetUrlToken(RequestTool.GetRequestUrlNonDomain()) + "")); } path = "<a href=\"" + URL("P_Index", "") + "\" class=\"home\" title=\"" + Tag("Ê×Ò³") + "\"><span>" + Tag("Ê×Ò³") + "</span></a><em class=\"home\">»</em><a>" + Tag("É̼Ò×¢²á") + "</a>"; verifieds = B_Lebi_Supplier_Verified.GetList("", "Sort desc"); logintype = RequestTool.RequestString("logintype", ""); List <Lebi_Supplier> suppliers = B_Lebi_Supplier.GetList("User_id=" + CurrentUser.id + "", "id desc"); if (suppliers.Count == 0) { supplier = new Lebi_Supplier(); supplier.Type_id_SupplierStatus = 441; } if (logintype == "" && suppliers.Count > 0) { supplier = suppliers.FirstOrDefault(); Lebi_Supplier_Group group = B_Lebi_Supplier_Group.GetModel(supplier.Supplier_Group_id); logintype = group.type; } else { foreach (Lebi_Supplier sup in suppliers) { Lebi_Supplier_Group group = B_Lebi_Supplier_Group.GetModel(sup.Supplier_Group_id); if (logintype == group.type) { supplier = sup; } } } logintype = logintype == "" ? "supplier" : logintype; if (supplier == null) { supplier = new Lebi_Supplier(); supplier.Address = CurrentUser.Address; supplier.Area_id = CurrentUser.Area_id; supplier.Fax = CurrentUser.Fax; supplier.Email = CurrentUser.Email; supplier.MobilePhone = CurrentUser.MobilePhone; supplier.Msn = CurrentUser.Msn; supplier.Phone = CurrentUser.Phone; supplier.Postalcode = CurrentUser.Postalcode; supplier.QQ = CurrentUser.QQ; supplier.RealName = CurrentUser.RealName; supplier.UserName = CurrentUser.UserName; supplier.User_id = CurrentUser.id; supplier.Type_id_SupplierStatus = 441; status = Tag("ÐÂ×¢²á"); } else { if (supplier.Type_id_SupplierStatus == 442) { Response.Redirect(site.AdminPath + "/login.aspx"); } status = TypeName(supplier.Type_id_SupplierStatus); } }