mirror of
git://opensimulator.org/git/opensim
synced 2026-08-14 00:58:07 +00:00
* Adds a prototype web stats module which is disabled by default. It's functional with one report right now, however, the database structure may change, so I don't recommend enabling this to keep actual stats right now. I'll let you know when it's safe. * Adds Prototype for ajaxy web content * removed a warning or two.
35 lines
912 B
C#
35 lines
912 B
C#
using System;
|
|
using System.IO;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using OpenSim.Framework;
|
|
|
|
namespace OpenSim.Region.UserStatistics
|
|
{
|
|
public class Updater_distributor : IStatsController
|
|
{
|
|
private string updaterjs = string.Empty;
|
|
|
|
|
|
public Hashtable ProcessModel(Hashtable pParams)
|
|
{
|
|
Hashtable pResult = new Hashtable();
|
|
if (updaterjs.Length == 0)
|
|
{
|
|
StreamReader fs = new StreamReader(new FileStream(Util.dataDir() + "/data/updater.js", FileMode.Open));
|
|
updaterjs = fs.ReadToEnd();
|
|
fs.Close();
|
|
fs.Dispose();
|
|
}
|
|
pResult["js"] = updaterjs;
|
|
return pResult;
|
|
}
|
|
|
|
public string RenderView(Hashtable pModelResult)
|
|
{
|
|
return pModelResult["js"].ToString();
|
|
}
|
|
|
|
}
|
|
} |