using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Admin_Admin_MasterPage_Action : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { DateTime ED = Convert.ToDateTime("1/1/2050"); if (System.DateTime.Today > ED) { Response.Redirect("http://www.sam-ware.com/Expired?T=WS"); } /////////////////////////////////////////////////////////////////////////// if (Session["AdminID" + System.Configuration.ConfigurationSettings.AppSettings["StandardEditor__ModuleID"]] == null || Session["AdminID" + System.Configuration.ConfigurationSettings.AppSettings["StandardEditor__ModuleID"]].ToString() == "") //Admin logged in { Response.Redirect("/"); } /////////////////////////////////////////////////////////////////////////// if (Request.Url.AbsoluteUri.Replace("http://", "").StartsWith("localhost")) { } else if (Request.Url.AbsoluteUri.Replace("http://", "").ToLower().StartsWith("www.raboun.com") || Request.Url.AbsoluteUri.Replace("http://", "").ToLower().StartsWith("raboun.com")) { } else if (Request.Url.AbsoluteUri.Replace("http://", "").Contains("sam-ware.com")) { } else { Response.End(); } } }