diff options
| author | carverh <[email protected]> | 2016-07-21 09:17:25 -0700 |
|---|---|---|
| committer | carverh <[email protected]> | 2016-07-21 09:17:25 -0700 |
| commit | ce774a20fe6c8bbb1044b4fe1dfa460a10d7edad (patch) | |
| tree | bf009c952c9c955ea40e9ed3f2947495f96809a1 /source/WindowsFormsApplication1/Apps/Shiftnet.cs | |
| parent | 65c21382729af819f6172b70870d78eebb788ec2 (diff) | |
| download | shiftos-c-_theultimatehacker-ce774a20fe6c8bbb1044b4fe1dfa460a10d7edad.tar.gz shiftos-c-_theultimatehacker-ce774a20fe6c8bbb1044b4fe1dfa460a10d7edad.tar.bz2 shiftos-c-_theultimatehacker-ce774a20fe6c8bbb1044b4fe1dfa460a10d7edad.zip | |
Fixed Bugs and Organized Items
Diffstat (limited to 'source/WindowsFormsApplication1/Apps/Shiftnet.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/Shiftnet.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/WindowsFormsApplication1/Apps/Shiftnet.cs b/source/WindowsFormsApplication1/Apps/Shiftnet.cs index cbcab1b..017377c 100644 --- a/source/WindowsFormsApplication1/Apps/Shiftnet.cs +++ b/source/WindowsFormsApplication1/Apps/Shiftnet.cs @@ -60,11 +60,17 @@ namespace ShiftOS wbshiftnet.DocumentText = WebLayer.VisitSite("shiftnet://main"); txtaddress.Text = WebLayer.LastUrl; } + + private void txtaddress_TextChanged(object sender, EventArgs e) + { + + } } public class WebLayer { - private static string HtmlTemplate = "<html><head><title>Shiftnet Page</title><link rel=\"stylesheet\" href=\"http://playshiftos.ml/shiftnet.css\"/></head><body>#BODY#</body></html>"; + public static String serverurl = "http://playshiftos.ml"; + private static string HtmlTemplate = "<html><head><title>Shiftnet Page</title><link rel=\"stylesheet\" href=\"" + serverurl + "/shiftnet.css\"/></head><body>#BODY#</body></html>"; public static string LastUrl = null; public static string VisitSite(string url) @@ -74,7 +80,7 @@ namespace ShiftOS { try { - string content = wc.DownloadString(url.Replace("shiftnet://", "http://www.playshiftos.ml/shiftnet/www/")); + string content = wc.DownloadString(url.Replace("shiftnet://", serverurl + "/shiftnet/www/")); if (content.StartsWith("<!STML>")) { LastUrl = url; |
