2023-08-04

This commit is contained in:
2023-08-04 17:06:50 +08:00
parent 70a51ab125
commit 78e8037f08
81 changed files with 8897 additions and 2763 deletions
+17
View File
@@ -50,6 +50,23 @@ namespace FineUIPro.Web
protected override void OnInit(EventArgs e)
{
string url = HttpContext.Current.Request.Path;
string a = Request.ServerVariables["HTTP_REFERER"];
string Referer = Request.Headers["Referer"];
if (a == null)
{
bool IsDataShowPage = ConstValue.drpConstItemList(ConstValue.Group_InterfacePopup).FirstOrDefault(x => url.Contains(x.ConstValue)) != null;
bool IsSafeReferer = ConstValue.drpConstItemList(ConstValue.Group_SafeReferer).FirstOrDefault(x => x.ConstValue == url) != null;
if (!IsDataShowPage && !IsSafeReferer)
{
if (this.Page.Request.AppRelativeCurrentExecutionFilePath != "~/Login.aspx")
Response.Redirect("~/Login.aspx");
return;
}
}
var pm = PageManager.Instance;
if (pm != null)
{