diff options
author | onefang | 2019-08-07 07:45:44 +1000 |
---|---|---|
committer | onefang | 2019-08-07 07:45:44 +1000 |
commit | 1b7c8cf7b54da6e1a59f9fc1039e78189be3815e (patch) | |
tree | a33760c8845aea5957f0c2d7ccf92b47fddbf8f1 /OpenSim/Server/Handlers/Web | |
parent | Swap out MySQLGenericHandler and swap in MySQLRaw. (diff) | |
download | opensim-SC_OLD-1b7c8cf7b54da6e1a59f9fc1039e78189be3815e.zip opensim-SC_OLD-1b7c8cf7b54da6e1a59f9fc1039e78189be3815e.tar.gz opensim-SC_OLD-1b7c8cf7b54da6e1a59f9fc1039e78189be3815e.tar.bz2 opensim-SC_OLD-1b7c8cf7b54da6e1a59f9fc1039e78189be3815e.tar.xz |
Testing MySQLRaw's SELECT.
Diffstat (limited to 'OpenSim/Server/Handlers/Web')
-rw-r--r-- | OpenSim/Server/Handlers/Web/WebServerInConnector.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Web/WebServerInConnector.cs b/OpenSim/Server/Handlers/Web/WebServerInConnector.cs index bc34bae..568b7d6 100644 --- a/OpenSim/Server/Handlers/Web/WebServerInConnector.cs +++ b/OpenSim/Server/Handlers/Web/WebServerInConnector.cs | |||
@@ -212,6 +212,17 @@ namespace OpenSim.Server.Handlers.Web | |||
212 | reply["str_response_string"] = loggedOnPage(body, fields); | 212 | reply["str_response_string"] = loggedOnPage(body, fields); |
213 | } | 213 | } |
214 | } | 214 | } |
215 | else if ("list" == fields["doit"].ToString()) | ||
216 | { | ||
217 | List< Hashtable > rows = m_database.Select("GridUser", "Login > UNIX_TIMESTAMP(FROM_UNIXTIME(UNIX_TIMESTAMP(now()) - 2419200))"); | ||
218 | foreach (Hashtable row in rows) | ||
219 | { | ||
220 | string line = ""; | ||
221 | foreach (DictionaryEntry c in row) | ||
222 | line = line + " | " + (string) c.Value; | ||
223 | m_log.Info("[MariaDB RAW]: " + line); | ||
224 | } | ||
225 | } | ||
215 | else | 226 | else |
216 | { | 227 | { |
217 | reply["str_response_string"] = loggedOnPage(body, fields); | 228 | reply["str_response_string"] = loggedOnPage(body, fields); |