key http_request_id;
string URL = "http://www.subnova.com/secondlife/api/map.php";
string SIM_NAME;
integer iLine;
map(string name)
{
vector temp;
list temp_name;
integer i=0;
temp = llGetScale();
http_request_id = llHTTPRequest(URL + "?" + "sim" + "=", [], ""

;
iLine = 0;
temp_name = llParseString2List(name,[],[" "]);
for(i=0;i<llGetListLength(temp_name);i++){
if(llList2String(temp_name,i) == " "

{
temp_name = llListReplaceList(temp_name,["_"],i,i);
}
}
SIM_NAME = llDumpList2String(temp_name,""

;
http_request_id = llHTTPRequest(URL + "?" + "sim" + "=" + SIM_NAME, [], ""

;
}
default
{
state_entry()
{
map(llGetRegionName());
}
http_response(key request_id, integer status, list metadata, string body)
{
if (request_id == http_request_id){
if (body != ""

{
llSetTexture(body, ALL_SIDES);
llSetText(SIM_NAME + "\n \n \n ",<.984, .686, .365>,.

;
}
}
}
on_rez(integer n)
{
llResetScript();
}
}