protected void Page_Load(object sender, System.EventArgs e) { string couponId; string passkey; string issuerGuid; dbTicketing = new ProcessAgentDB(); if (!IsPostBack) { // try & test for local access or not configured if (secure) { // retrieve parameters from URL couponId = Request.QueryString["coupon_id"]; passkey = Request.QueryString["passkey"]; issuerGuid = Request.QueryString["issuer_guid"]; Ticket allowAdminTicket = null; if (couponId != null && passkey != null && issuerGuid != null) { allowAdminTicket = dbTicketing.RetrieveAndVerify( new Coupon(issuerGuid, Int64.Parse(couponId), passkey), TicketTypes.ADMINISTER_LS); } else { Response.Redirect("AccessDenied.aspx", true); } } } }
protected void Application_Start(Object sender, EventArgs e) { if (ConfigurationManager.AppSettings["logPath"] != null && ConfigurationManager.AppSettings["logPath"].Length > 0) { Logger.LogPath = ConfigurationManager.AppSettings["logPath"]; Logger.WriteLine(""); Logger.WriteLine("#############################################################################"); Logger.WriteLine(iLabGlobal.Release); Logger.WriteLine("TOD Application_Start: starting"); } ProcessAgentDB.RefreshServiceAgent(); ticketRemover = new TicketRemover(); }