- masterserver: determine + store game servers' ISO_3166-1 alpha-2 country code, display country flag
|
@ -165,6 +165,9 @@
|
|||
*/
|
||||
else // connection to game server succeeded, protocol verification succeeded
|
||||
{ // add this game server to the database
|
||||
if ( extension_loaded('geoip') ) {
|
||||
$country = geoip_country_code_by_name( $remote_ip );
|
||||
}
|
||||
mysql_db_query( MYSQL_DATABASE, 'INSERT INTO glestserver SET ' .
|
||||
'glestVersion=\'' . mysql_real_escape_string( $glestVersion ) . '\', ' .
|
||||
'platform=\'' . mysql_real_escape_string( $platform ) . '\', ' .
|
||||
|
@ -177,8 +180,9 @@
|
|||
'activeSlots=\'' . mysql_real_escape_string( $activeSlots ) . '\', ' .
|
||||
'networkSlots=\'' . mysql_real_escape_string( $networkSlots ) . '\', ' .
|
||||
'connectedClients=\'' . mysql_real_escape_string( $connectedClients ) . '\', ' .
|
||||
'externalServerPort=\''. mysql_real_escape_string( $service_port ) . '\'
|
||||
;' );
|
||||
'externalServerPort=\''. mysql_real_escape_string( $service_port ) . '\', ' .
|
||||
'country=\'' . mysql_real_escape_string( $country ) . '\';'
|
||||
);
|
||||
echo 'OK';
|
||||
addLatestServer($remote_ip, $service_port, $serverTitle, $connectedClients, $networkSlots);
|
||||
}
|
||||
|
|
|
@ -1,24 +1,11 @@
|
|||
-- phpMyAdmin SQL Dump
|
||||
-- version 2.11.9.6
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Host: mysql.goneo.de
|
||||
-- Erstellungszeit: 12. Mai 2010 um 03:08
|
||||
-- Server Version: 5.0.90
|
||||
-- PHP-Version: 4.4.9
|
||||
---
|
||||
--- Table structure and sample data for the MegaGlest master server
|
||||
---
|
||||
--- SQL should be compatible to MySQL 5.0
|
||||
---
|
||||
|
||||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||
|
||||
--
|
||||
-- Datenbank: `17632m6025_1`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `glestserver`
|
||||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `glestserver` (
|
||||
`lasttime` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
||||
`glestVersion` varchar(30) collate utf8_unicode_ci NOT NULL,
|
||||
|
@ -33,13 +20,9 @@ CREATE TABLE IF NOT EXISTS `glestserver` (
|
|||
`networkSlots` int(11) NOT NULL,
|
||||
`connectedClients` int(11) NOT NULL,
|
||||
`externalServerPort` int(11) NOT NULL,
|
||||
`country` varchar(2) collate utf8_unicode_ci NOT NULL,
|
||||
KEY `lasttime` (`lasttime`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Daten für Tabelle `glestserver`
|
||||
--
|
||||
|
||||
INSERT INTO `glestserver` (`lasttime`, `glestVersion`, `platform`, `binaryCompileDate`, `serverTitle`, `ip`, `tech`, `map`, `tileset`, `activeSlots`, `networkSlots`, `connectedClients`,`externalServerPort`) VALUES
|
||||
('2010-05-12 01:41:43', '', '', '', '', '', '', '', '', 0, 0, 0, 0);
|
||||
|
||||
INSERT INTO `glestserver` (`lasttime`, `glestVersion`, `platform`, `binaryCompileDate`, `serverTitle`, `ip`, `tech`, `map`, `tileset`, `activeSlots`, `networkSlots`, `connectedClients` ,`externalServerPort`, `country`) VALUES
|
||||
('2010-05-12 01:41:43', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 'DE');
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
These flag icons have been copied from http://www.famfamfam.com where they are
|
||||
made available under a Public Domain license. Some of the original content has
|
||||
been removed.
|
||||
|
||||
Original license:
|
||||
-----
|
||||
Flag icons - http://www.famfamfam.com
|
||||
These icons are public domain, and as such are free for any use (attribution appreciated but not required).
|
||||
Note that these flags are named using the ISO3166-1 alpha-2 country codes where appropriate. A list of codes can be found at http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
||||
If you find these icons useful, please donate via paypal to mjames@gmail.com (or click the donate button available at http://www.famfamfam.com/lab/icons/silk)
|
||||
Contact: mjames@gmail.com
|
||||
-----
|
After Width: | Height: | Size: 643 B |
After Width: | Height: | Size: 408 B |
After Width: | Height: | Size: 604 B |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 643 B |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 488 B |
After Width: | Height: | Size: 428 B |
After Width: | Height: | Size: 506 B |
After Width: | Height: | Size: 647 B |
After Width: | Height: | Size: 403 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 663 B |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 593 B |
After Width: | Height: | Size: 585 B |
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 449 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 457 B |
After Width: | Height: | Size: 675 B |
After Width: | Height: | Size: 486 B |
After Width: | Height: | Size: 611 B |
After Width: | Height: | Size: 639 B |
After Width: | Height: | Size: 500 B |
After Width: | Height: | Size: 593 B |
After Width: | Height: | Size: 526 B |
After Width: | Height: | Size: 631 B |
After Width: | Height: | Size: 512 B |
After Width: | Height: | Size: 443 B |
After Width: | Height: | Size: 514 B |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 625 B |
After Width: | Height: | Size: 528 B |
After Width: | Height: | Size: 614 B |
After Width: | Height: | Size: 521 B |
After Width: | Height: | Size: 367 B |
After Width: | Height: | Size: 453 B |
After Width: | Height: | Size: 586 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 525 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 477 B |
After Width: | Height: | Size: 439 B |
After Width: | Height: | Size: 563 B |
After Width: | Height: | Size: 529 B |
After Width: | Height: | Size: 608 B |
After Width: | Height: | Size: 428 B |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 545 B |
After Width: | Height: | Size: 572 B |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 620 B |
After Width: | Height: | Size: 508 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 500 B |
After Width: | Height: | Size: 429 B |
After Width: | Height: | Size: 465 B |
After Width: | Height: | Size: 508 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 469 B |
After Width: | Height: | Size: 592 B |
After Width: | Height: | Size: 489 B |
After Width: | Height: | Size: 610 B |
After Width: | Height: | Size: 648 B |
After Width: | Height: | Size: 552 B |
After Width: | Height: | Size: 474 B |
After Width: | Height: | Size: 545 B |
After Width: | Height: | Size: 489 B |
After Width: | Height: | Size: 599 B |
After Width: | Height: | Size: 637 B |
After Width: | Height: | Size: 594 B |
After Width: | Height: | Size: 545 B |
After Width: | Height: | Size: 490 B |
After Width: | Height: | Size: 463 B |
After Width: | Height: | Size: 470 B |
After Width: | Height: | Size: 493 B |
After Width: | Height: | Size: 480 B |
After Width: | Height: | Size: 488 B |
After Width: | Height: | Size: 537 B |
After Width: | Height: | Size: 487 B |
After Width: | Height: | Size: 630 B |
After Width: | Height: | Size: 493 B |
After Width: | Height: | Size: 509 B |
After Width: | Height: | Size: 516 B |
After Width: | Height: | Size: 645 B |
After Width: | Height: | Size: 527 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 537 B |
After Width: | Height: | Size: 524 B |
After Width: | Height: | Size: 487 B |
After Width: | Height: | Size: 432 B |