using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Text; using System.Text.RegularExpressions; using Mono.Data.SqliteClient; using OpenMetaverse; using OpenSim.Region.Environment.Scenes; using OpenSim.Framework.Statistics; namespace OpenSim.Region.UserStatistics { public class LogLinesAJAX : IStatsController { private Regex normalizeEndLines = new Regex(@"\r\n", RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.Multiline); private Regex webFormat = new Regex(@"[^\s]*\s([^,]*),[^\s]*\s([A-Z]*)[^\s-][^\[]*\[([^\]]*)\]([^\n]*)", RegexOptions.Singleline | RegexOptions.Compiled); private Regex TitleColor = new Regex(@"[^\s]*\s(?:[^,]*),[^\s]*\s(?:[A-Z]*)[^\s-][^\[]*\[([^\]]*)\](?:[^\n]*)", RegexOptions.Singleline | RegexOptions.Compiled); #region IStatsController Members public Hashtable ProcessModel(Hashtable pParams) { Hashtable nh = new Hashtable(); nh.Add("loglines", pParams["LogLines"]); return nh; } public string RenderView(Hashtable pModelResult) { StringBuilder output = new StringBuilder(); HTMLUtil.HR(ref output, ""); output.Append("