using framework_business; using framework_library; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Admin_Customers : System.Web.UI.Page { /// /// Page Load Event /// /// /// protected void Page_Load(object sender, EventArgs e) { try { if (!utils.verifySession("user")) { Response.Redirect("/admin", false); } else { oUser admin = (oUser)Session["user"]; oSetup _setup = handler.ReturnSetup(); if (_setup.code == "EVOL-1" && admin.isSetup) { //verify code and license key oLicence lic = licenceHandler.GetLicence(_setup.licenceKey); if (lic.customerCode == _setup.code)//valid to manage customers { } else { Response.Redirect("/admin", false); } } else { Response.Redirect("/admin", false); } } } catch (Exception ex) { exception.HandleException("Admin_Content:", MethodBase.GetCurrentMethod().Name, ex, Session["user"]); Response.Redirect("/error", false); } } }