// Token: 0x0600002B RID: 43 RVA: 0x000032B0 File Offset: 0x000014B0 private void ReUrl_BeginRequest(object sender, EventArgs e) { this.webpath = WebConfig.WebPath; this.sysconfig = SysConfigs.GetConfig(); HttpContext context = ((HttpApplication)sender).Context; string text = context.Request.Path.ToLower(); if (text.StartsWith(this.webpath)) { if (Path.GetExtension(text).ToLower() == ".aspx") { text = (text.StartsWith("/") ? text : ("/" + text)); string text2 = text.Substring(this.webpath.Length); if (text.Substring(this.webpath.Length).IndexOf("/") == -1) { text2 = ((WebConfig.SitePath == "") ? "" : (WebConfig.SitePath + "/")) + text2; } else if (!Directory.Exists(FPUtils.GetMapPath(this.webpath + text2.Substring(0, text2.IndexOf("/"))))) { text2 = ((WebConfig.SitePath == "") ? "" : (WebConfig.SitePath + "/")) + text2; } if (text2.StartsWith("sites/")) { text2 = text2.Substring(6, text2.Length - 6); } string viewpath = "sites/" + text2; if (this.sysconfig.browsecreatesite == 1) { string sitepath = ""; if (text2.IndexOf("/") >= 0) { sitepath = text2.Substring(0, text2.IndexOf("/")); } SiteConfig siteInfo = SiteConfigs.GetSiteInfo(sitepath); if (siteInfo.autocreate == 1) { this.includedata = FPViews.GetViewInclude(); this.CreateTemplate(siteInfo, viewpath, text2); context.Response.ClearContent(); } } context.RewritePath(this.webpath + text2, string.Empty, context.Request.QueryString.ToString()); } } }