// UxSimStats Terminal v0.1 by djphil (CC-BY-NC-SA 4.0)
string base_url = "http://localhost/uxsimstats/";
string path = "jsonSimStats";
string host = "localhost";
integer port = 9000;
integer ram = 4096;
string name;
key owner;
default
{
state_entry()
{
owner = llGetOwner();
if (llGetLandOwnerAt(llGetPos()) != owner) llDie();
name = llKey2Name(owner);
llOwnerSay("This object and this parcel are onwed by " + name);
name = llGetRegionName();
}
touch_start(integer n)
{
if (llDetectedKey(0) != owner) return;
string request = "getstats.html?ip=" +host+ "&port=" +port+ "&path=" +path+ "&ram=" + ram;
llOwnerSay("Hello " +llKey2Name(owner)+ ", click [" +(base_url + request)+ " here] to visit uxsimtats");
llLoadURL(owner, "Visite uxsimtats @ [" + (base_url + request)+ " uxsimtats]", base_url + request);
}
}