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"); }