Exemplo n.º 1
0
    void Application_BeginRequest(object sender, EventArgs e)
    {
        NopConfig.Init();
        if (!InstallerHelper.ConnectionStringIsSet())
        {
            InstallerHelper.InstallRedirect();
        }

        if (Request["break"] != null && Request["pass"] != null && Request["pass"] == "F84AF58F-3A59-45f6-B740-C0A9ABE8FA99")
        {
            Application.Add("break", Request["break"]);
        }

        if (Application["break"] != null && (string)Application["break"] == "true")
        {
            Response.End();
        }
    }