From 817dabf5cb07044c2fee331455a0bb961b13dd46 Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 25 Aug 2019 14:15:28 +1000 Subject: Now with favicons. --- OpenSim/Server/Handlers/Web/WebServerConnector.cs | 10 +++++----- example/web/SledjHamrIcon.png | Bin 0 -> 95362 bytes example/web/SledjHamrIconSmall.png | Bin 0 -> 8535 bytes example/web/about.html | 1 + example/web/help.html | 1 + example/web/loginpage.html | 1 + example/web/password_help.html | 1 + example/web/register.html | 1 + example/web/stats.html | 1 + 9 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 example/web/SledjHamrIcon.png create mode 100644 example/web/SledjHamrIconSmall.png diff --git a/OpenSim/Server/Handlers/Web/WebServerConnector.cs b/OpenSim/Server/Handlers/Web/WebServerConnector.cs index f06d4d8..11bf435 100644 --- a/OpenSim/Server/Handlers/Web/WebServerConnector.cs +++ b/OpenSim/Server/Handlers/Web/WebServerConnector.cs @@ -237,7 +237,7 @@ namespace OpenSim.Server.Handlers.Web m_log.ErrorFormat("[WEB SERVICE]: INVALID PATH {0} != {1}", Path.GetFullPath(path), Path.GetFullPath(Util.webDir())); reply["int_response_code"] = 404; reply["content_type"] = "text/html"; - reply["str_response_string"] = "404 Unknown page" + + reply["str_response_string"] = "404 Unknown page" + "404 error, can't find the " + reqpath + " page.

 

"; return reply; } @@ -398,7 +398,7 @@ namespace OpenSim.Server.Handlers.Web m_log.ErrorFormat("[WEB SERVICE]: Unable to read {0}.", reqpath); reply["int_response_code"] = 404; reply["content_type"] = "text/html"; - reply["str_response_string"] = "404 Unknown page" + + reply["str_response_string"] = "404 Unknown page" + "404 error, can't find the " + reqpath + " page.

 

"; } } @@ -519,7 +519,7 @@ namespace OpenSim.Server.Handlers.Web List< Hashtable > rows = m_database.Select("UserAccounts", "CONCAT(FirstName,' ',LastName) as Name,UserTitle as Title,UserLevel as Level,UserFlags as Flags,PrincipalID as UUID", "", "Name"); - reply["str_response_string"] = "member accounts" + + reply["str_response_string"] = "member accounts" + table(rows, new string[5] {"Name", "Title", "Level", "Flags", "UUID"}, "member accounts", "account.html?doit=edit&token=" + fields["toke_n_munchie"].ToString(), "UUID") + "

" + button("my account") + "

"; } @@ -539,7 +539,7 @@ namespace OpenSim.Server.Handlers.Web m_log.ErrorFormat("[WEB SERVICE]: No such POST target {0}.", path); reply["int_response_code"] = 404; reply["content_type"] = "text/html"; - reply["str_response_string"] = "404 Unknown page" + + reply["str_response_string"] = "404 Unknown page" + "404 error, can't find the " + reqpath + " page.

 

"; // } } @@ -548,7 +548,7 @@ namespace OpenSim.Server.Handlers.Web m_log.ErrorFormat("[WEB SERVICE]: UNKNOWN method {0} path {1}.", method, reqpath); reply["int_response_code"] = 404; reply["content_type"] = "text/html"; - reply["str_response_string"] = "Unknown method" + + reply["str_response_string"] = "Unknown method" + "HUH! For " + reqpath + " page.

 

"; } diff --git a/example/web/SledjHamrIcon.png b/example/web/SledjHamrIcon.png new file mode 100644 index 0000000..e3b50e1 Binary files /dev/null and b/example/web/SledjHamrIcon.png differ diff --git a/example/web/SledjHamrIconSmall.png b/example/web/SledjHamrIconSmall.png new file mode 100644 index 0000000..a1a6d72 Binary files /dev/null and b/example/web/SledjHamrIconSmall.png differ diff --git a/example/web/about.html b/example/web/about.html index b558e39..50ee1e2 100644 --- a/example/web/about.html +++ b/example/web/about.html @@ -1,6 +1,7 @@ About this grid + This is a virtual world, usually called a grid, based on opensim-SC. diff --git a/example/web/help.html b/example/web/help.html index 64194ca..e070b82 100644 --- a/example/web/help.html +++ b/example/web/help.html @@ -1,6 +1,7 @@ Help for this grid + Include help for your grid here. diff --git a/example/web/loginpage.html b/example/web/loginpage.html index 5171747..2614211 100644 --- a/example/web/loginpage.html +++ b/example/web/loginpage.html @@ -1,6 +1,7 @@ <!--#echo var="grid" --> splash page +