Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
elanatframework committed Oct 5, 2023
1 parent c737cff commit c8dd2b3
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit c8dd2b3

Please sign in to comment.