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"] = "
"; 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"] = "
"; } } @@ -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"] = "
" + 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"] = ""; // } } @@ -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"] = "
"; } 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 @@