query("SELECT gridstatus,active,color,title,message FROM ".C_INFOWINDOW_TBL." "); list($GRIDSTATUS,$INFOBOX,$BOXCOLOR,$BOX_TITLE,$BOX_INFOTEXT) = $DbLink->next_record(); // Doing it the same as the Who's Online now part $DbLink = new DB; $DbLink->query("SELECT UserID, LastRegionID, Online FROM griduser where Online = 'True'"); $NOWONLINE = 0; while(list($UUID,$regionUUID) = $DbLink->next_record()) { // Let's get the user info $DbLink2 = new DB; $DbLink2->query("SELECT username, lastname from ".C_USERS_TBL." where UUID = '".$UUID."'"); list($firstname, $lastname) = $DbLink2->next_record(); $username = $firstname." ".$lastname; // Let's get the region information $DbLink3 = new DB; $DbLink3->query("SELECT regionName from ".C_REGIONS_TBL." where UUID = '".$regionUUID."'"); list($region) = $DbLink3->next_record(); if ($region != "") { $NOWONLINE = $NOWONLINE + 1; } } $DbLink->query("SELECT count(*) FROM griduser where logout > UNIX_TIMESTAMP(FROM_UNIXTIME(UNIX_TIMESTAMP(now()) - 2419200))"); list($LASTMONTHONLINE) = $DbLink->next_record(); $DbLink->query("SELECT count(*) FROM ".C_USERS_TBL.""); list($USERCOUNT) = $DbLink->next_record(); $DbLink->query("SELECT count(*) FROM ".C_REGIONS_TBL.""); list($REGIONSCOUNT) = $DbLink->next_record(); ?> Logicamp - logout
(:)

Logicamp Opensim Grid

Users in world :
( ! ) Warning: Undefined variable $NOWONLINE in D:\wamp\www\be\logout.php on line 203
Call Stack
#TimeMemoryFunctionLocation
10.0003360768{main}( )...\logout.php:0

Total Regions :
( ! ) Warning: Undefined variable $REGIONSCOUNT in D:\wamp\www\be\logout.php on line 204
Call Stack
#TimeMemoryFunctionLocation
10.0003360768{main}( )...\logout.php:0

last 30 days :
( ! ) Warning: Undefined variable $LASTMONTHONLINE in D:\wamp\www\be\logout.php on line 205
Call Stack
#TimeMemoryFunctionLocation
10.0003360768{main}( )...\logout.php:0

Total Users :
( ! ) Warning: Undefined variable $USERCOUNT in D:\wamp\www\be\logout.php on line 206
Call Stack
#TimeMemoryFunctionLocation
10.0003360768{main}( )...\logout.php:0

Grid is ONLINE Grid is OFFLINE



Copyright(c) 2010 - Logicamp, a Belgian Non-profit Organization