Exemple #1
0
        protected override void OnPreInit(EventArgs e)
        {
            if (LicenseManager.IsLicensingEnabled() && LicenseManager.IsLicenseValid(LicenseLevels.AP_PRO))
            {
                var defaultDocument = "ApolloPro.aspx";
                var queryString     = HttpContext.Current.Request.QueryString;

                if (queryString.Count > 0)
                {
                    defaultDocument += "?" + queryString;
                }

                Response.Redirect(defaultDocument);
            }
            base.OnPreInit(e);
        }
Exemple #2
0
 private bool IsProperLicenseAvailable()
 {
     return(LicenseManager.IsLicensingEnabled() && LicenseManager.IsLicenseValid(LicenseLevels.ANY_BUT_ESS));
 }