From c8dd2b35639b3a8abed864f04d3feb49f5ac53ea Mon Sep 17 00:00:00 2001 From: Elanat Framework <111444759+elanatframework@users.noreply.github.com> Date: Thu, 5 Oct 2023 23:42:19 +0330 Subject: [PATCH] Update --- ...ActionIncreaseAttachmentVisitController.cs | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/class/controller_and_model/action/system_access/reference/set_install_page_outside_the_path_access_handler/ActionIncreaseAttachmentVisitController.cs b/class/controller_and_model/action/system_access/reference/set_install_page_outside_the_path_access_handler/ActionIncreaseAttachmentVisitController.cs index 85c17780..73c42cb8 100644 --- a/class/controller_and_model/action/system_access/reference/set_install_page_outside_the_path_access_handler/ActionIncreaseAttachmentVisitController.cs +++ b/class/controller_and_model/action/system_access/reference/set_install_page_outside_the_path_access_handler/ActionIncreaseAttachmentVisitController.cs @@ -11,14 +11,26 @@ public void PageLoad(HttpContext context) string Path = context.Request.Query["path"].ToString(); - if ((Path != "/install/") && (Path != "/install/Default.aspx")) - return; - // Check If Database Working if (StaticObject.RoleNameNumber.Count > 0) return; - context.Response.WriteAsync(PageLoader.LoadWithServer(StaticObject.SitePath + "install/Default.aspx")); + + if ((Path == "/install/") || (Path == "/install/Default.aspx")) + context.Response.WriteAsync(PageLoader.LoadWithServer(StaticObject.SitePath + "install/Default.aspx")); + + if ((Path == "/install/script/install.js")) + { + context.Response.WriteAsync(PageLoader.LoadWithText(StaticObject.SitePath + "install/script/install.js")); + context.Response.ContentType = "text/javascript"; + } + + if ((Path == "/install/style/install.css")) + { + context.Response.WriteAsync(PageLoader.LoadWithText(StaticObject.SitePath + "install/style/install.css")); + context.Response.ContentType= "text/css"; + } + Write("false"); }