include_once('mapcfg.php'); echo (""); echo ("
"); if ($usecss == 1){ echo (""); echo (""); echo (""); } echo (""); echo (""); echo (" | "); echo ("");
echo (" "); echo (" "); if ($usecss == 1){ echo ("$D2campname Webmap "); } else { echo ("$D2campname Webmap "); } $D2dbhostip = gethostbyname($D2dbhostname); if (substr($D2dbhostip,0,8) == "63.149.6" or substr($D2dbhostip,0,9) == "63.64.164" or $D2dbhostip == "" or $D2dbhostip == $D2dbhostname or $D2dbhostip == $D2dbhostnamenodots) { echo "The database host is down. "; } else { echo "The database host is up. "; $fp = fsockopen ($D2dbhostip, $D2dbport, $errno, $errstr, 3); if (!$fp) { echo "The database is down. "; } else { fclose ($fp); echo "The database is up. "; echo (""); $link = mysql_connect($D2dbhostname .":" .$D2dbport, $D2dbuser, $D2dbpass); mysql_select_db($D2db); $query = "SELECT Time from updatetime WHERE ID='888888'"; $result = mysql_query($query); $line = mysql_fetch_array($result, MYSQL_ASSOC); $LastUpdated = $line['Time']; mysql_close($link); echo ("Map last updated on: "); echo $LastUpdated; echo (" "); if ($usecss == 1){ echo ("Economy Roster "); } else { echo ("Economy Roster"); } } } echo (" "); echo (" "); echo (" | ");
echo (""); echo (" | "); echo ("
Orion Pirates webmap datafile converter written by FPF-DarkElf.
"; echo (""); echo (""); ?>