public ActionResult StratisWeb() { string sPostData = new System.IO.StreamReader(this.HttpContext.Request.Body).ReadToEnd(); sPostData = sPostData.Replace("post=", ""); if (sPostData == string.Empty) { // This is the initial call during page load string style = ""; USGDFramework.Data d = new USGDFramework.Data(); string sURL1 = this.HttpContext.Request.QueryString.ToString(); string sMenu = d.GetTopLevelMenu(sURL1); if (sys.Theme == null) sys.Theme = "Biblepay"; string sDomain = this.HttpContext.Request.Scheme + "://" + this.HttpContext.Request.Host + "/StratisWeb/"; string sTheme = sDomain + "css/" + sys.Theme + ".css"; string sCss = " <link rel=stylesheet href='" + sDomain + "css/jquery-ui.css'> " + "<link rel=stylesheet href='" + sTheme + "'>"; // Dynamic Top banner string sSiteURL = this.HttpContext.Request.QueryString.ToString(); string sSiteBanner = "Biblepay Wallet"; string sBanner = GetBanner(sDomain, sSiteBanner); string sJQuery= "<script src='" + sDomain + "Scripts/jquery-1.12.4.js'></script>"; sJQuery += "<script src='" + sDomain + "Scripts/jquery-ui.js'></script>"; //sJQuery += "<script src='" + sDomain + "Scripts/jquery.uploadify.js'></script>"; sJQuery += "<script src='" + sDomain + "Scripts/Core.js'></script>"; sJQuery += "<script src='" + sDomain + "Scripts/jquery.contextMenu.js'></script>"; //sJQuery += "<script src='" + sDomain + "Scripts/featherlight.js'></script>"; //sJQuery += "<script src='" + sDomain + "Scripts/featherlight.gallery.js'></script>"; string sOut = "<html><head>" + style + sJQuery + sCss + " </head><body onload=formload();>" + sBanner + "<table><tr valign=top><td width=10%>" + sMenu + "</td><td width=2%> </td><td width=86%>" + "<div name=divbreadcrumb></div><div name=1>" +"<div name=2><div name=3></div></div></div></td><td width=2%> </td></tr></table></body></html>"; ContentResult c = new ContentResult(); c.Content = sOut; c.ContentType = "html"; return c; } ContentResult c1 = new ContentResult(); string s1 = u.HandleRequest(sPostData, sys); c1.Content = s1; return c1; }
public void ProcessRequest(HttpContext context) { SetResponseCachePolicy(context.Response.Cache); if (!context.User.Identity.IsAuthenticated && false) { RespondForbidden(context); return; } if (HttpContext.Current.Session["Sys"] == null) { // No System object yet SystemObject s = new SystemObject("1"); s.Username = "******"; //Temporary values (until user logs in) HttpContext.Current.Session["Sys"] = s; } SystemObject Sys = (SystemObject)HttpContext.Current.Session["Sys"]; context.Response.ContentType = "text/html"; // ContentMimeType; sPostData = (context.Request["post"] ?? String.Empty).ToString(); Sys.iCount++; if (sPostData == String.Empty) { // This is the initial call during page load string style = ""; USGDFramework.Data d = new USGDFramework.Data(); string sURL1 = HttpContext.Current.Request.Url.ToString(); string sMenu = d.GetTopLevelMenu(sURL1); if (Sys.Theme == null) { Sys.Theme = "BLACK"; } string sTheme = "css/" + Sys.Theme + ".css"; string sJQuery = "<script src='https://code.jquery.com/jquery-1.12.4.js'></script><script src='https://code.jquery.com/ui/1.12.1/jquery-ui.js'></script>"; string sCss = " <link rel=stylesheet href='https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css'> " + "<link rel='stylesheet' href='https://jqueryui.com/resources/demos/style.css'>" + "<link rel=stylesheet href='" + sTheme + "'>" + ""; // Top banner (Note this is dynamic - if you come in from the pool, it says Biblepay Pool, but if you come in from accountability.biblepay.org, it says "Biblepay Accountability" string sSiteURL = HttpContext.Current.Request.Url.ToString(); string sSiteBanner = sSiteURL.ToUpper().Contains("ACCOUNTABILITY") ? "Biblepay Accountability" : "Biblepay Pool"; string sBanner = "<div id='top_banner'><table width='100%' class='title2'> <tr> <td rowspan=2 width=15%>" + "<img class='content companylogo' id='org_image' src=Images/logo.png width=90 height=90 /> </td> " + "<td width=20% nowrap align=left>" + "<h1><bold><span id='org_name'>" + sSiteBanner + "</span></h1>" + "</td><td width=50%> </td>" + "<td width=15% nowrap align=left></td>" + " <td width=8%> </td>" + " <td width=8%> </td></tr>" + " <tr><td width=37% nowrap align=left> </td><td align=left> </td><td> </td>" + " <td> </td>" + " </tr>" + " <tr><td></td><td width=10%></td>" + " <td><h7><span name=ApplicationMessage>Application Message</span></h7>" + " <span align=right><div id=12></div></span> " + " </td></tr>" + " </table></div>"; sJQuery += "<script src='/scripts/jquery.uploadify.js'></script>"; sJQuery += "<script src='scripts/Core.js'></script>"; sJQuery += "<script src='/scripts/jquery.contextMenu.js'></script>"; sJQuery += "<script src='/scripts/featherlight.js'></script>"; sJQuery += "<script src='/scripts/featherlight.gallery.js'></script>"; string sOut = "<html><head>" + style + sJQuery + " <link rel='stylesheet' type='text/css' href='/scripts/xuploadify.css' /> " + sCss + " </head><body onload=formload();>" + sBanner + "<table><tr valign=top><td width=10%>" + sMenu + "</td><td width=2%> </td><td width=86%>" + "<div name=divbreadcrumb></div><div name=1><div name=2><div name=3></div></div></div></td><td width=2%> </td></tr></table></body></html>"; context.Response.Write(sOut); return; } HandleRequest(context); }