aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics/HTMLUtil.cs
diff options
context:
space:
mode:
authorJeff Ames2009-01-05 04:34:17 +0000
committerJeff Ames2009-01-05 04:34:17 +0000
commit694e37f529b13e509139cb98f82b61423279339b (patch)
treea73aa2be7fa5bf612141f847e6d22c110f4aa798 /OpenSim/Region/UserStatistics/HTMLUtil.cs
parent* Adds an active log to the WebStats console. for an example of it in use ... (diff)
downloadopensim-SC_OLD-694e37f529b13e509139cb98f82b61423279339b.zip
opensim-SC_OLD-694e37f529b13e509139cb98f82b61423279339b.tar.gz
opensim-SC_OLD-694e37f529b13e509139cb98f82b61423279339b.tar.bz2
opensim-SC_OLD-694e37f529b13e509139cb98f82b61423279339b.tar.xz
Update svn properties, minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/UserStatistics/HTMLUtil.cs')
-rw-r--r--OpenSim/Region/UserStatistics/HTMLUtil.cs51
1 files changed, 39 insertions, 12 deletions
diff --git a/OpenSim/Region/UserStatistics/HTMLUtil.cs b/OpenSim/Region/UserStatistics/HTMLUtil.cs
index ed8cc98..bc21c55 100644
--- a/OpenSim/Region/UserStatistics/HTMLUtil.cs
+++ b/OpenSim/Region/UserStatistics/HTMLUtil.cs
@@ -1,4 +1,31 @@
1using System; 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
2using System.Collections.Generic; 29using System.Collections.Generic;
3using System.Text; 30using System.Text;
4 31
@@ -141,13 +168,13 @@ namespace OpenSim.Region.UserStatistics
141 o.Append("<script type=\"text/javascript\">\n"); 168 o.Append("<script type=\"text/javascript\">\n");
142 o.Append( 169 o.Append(
143 @" 170 @"
144 // <![CDATA[ 171 // <![CDATA[
145 document.observe('dom:loaded', function() { 172 document.observe('dom:loaded', function() {
146 /* 173 /*
147 first arg : div to update 174 first arg : div to update
148 second arg : interval to poll in seconds 175 second arg : interval to poll in seconds
149 third arg : file to get data 176 third arg : file to get data
150 */ 177 */
151"); 178");
152 for (int i = 0; i < divID.Length; i++) 179 for (int i = 0; i < divID.Length; i++)
153 { 180 {
@@ -162,16 +189,16 @@ namespace OpenSim.Region.UserStatistics
162 } 189 }
163 190
164 o.Append(@" 191 o.Append(@"
165 }); 192 });
166 // ]]> 193 // ]]>
167 </script>"); 194 </script>");
168 195
169 } 196 }
170 197
171 public static void HtmlHeaders_O ( ref StringBuilder o) 198 public static void HtmlHeaders_O ( ref StringBuilder o)
172 { 199 {
173 o.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"); 200 o.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
174 o.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\">"); 201 o.Append("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\">");
175 o.Append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />"); 202 o.Append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");
176 203
177 204