MegaGlest/source/masterserver/showRecentServers.php
Mark Vejvoda e06639c78d - updated Internet games to use 2 new fields, country and game status.
for now svn users can edit glestuser.ini and add the following entry (pointing to your folder of course) to see the country flags in game:
CountryTexturePath=/home/softcoder/Code/megaglest/trunk/source/masterserver/flags
2011-01-25 07:41:12 +00:00

17 lines
551 B
PHP

<?php
define( 'INCLUSION_PERMITTED', true );
require_once( 'config.php' );
require_once( 'functions.php' );
$link = db_connect();
mysql_select_db(MYSQL_DATABASE);
$recents_query = mysql_query('SELECT name, players FROM recent_servers' );
echo "<table>";
while($recent_server = mysql_fetch_assoc($recents_query)) {
echo "<tr><td>{$recent_server['name']}</td><td>{$recent_server['players']}</td></tr>";
}
echo "</table>";
db_disconnect($link);
?>