This is the Crossfire Metaserver, a set of PHP web pages that implement a public Crossfire server directory.
For a technical overview, see TECHNICAL.
You can set up a development environment for the metaserver on your local machine or inside a Docker container.
php command-line utilitycd html && php -S localhost:8000. This starts a local development web server at http://localhost:8000.VSCode should 3 docker containers
To populate the metserver list with test data:
cd scripts && ./curl-metaserver-port.sh
neither forward nor reverse DNS look corresponds to incoming ip address.
incoming ip: 172.20.0.4, DNS of that: crossfire-metaserver-vscode.devel
User specified hostname: localhost IP of that hostname: 127.0.0.1
Prerequisites: You need a webserver that has php script support, and
the php script support must have mysql database support.
Connect to your MySQL database as an administrator, e.g. mysql -u root -p. Create the metaserver database and a database account for the metaserver:
mysql> create database metaserver;
mysql> CREATE USER 'metaserver'@'localhost' IDENTIFIED BY 'metaserver';
mysql> GRANT ALL ON metaserver.* TO 'metaserver'@'localhost';
As the metaserver database user, create the tables:
$ mysql -u metaserver -p < schema.sql
Edit html/mysql_db.php with the database name, username, and password as you created above.
Edit html/common.php to configure logging options. Note that if you comment out the
$LOGFILE, you will get no logging.
If you have issues with bad/misbehaving hosts, you may wish to blacklist
them. See the TECHNICAL file for details.
CRITICAL: It is highly recommend to use a unique and complex password for the MySQL database
once the initial setup and testing is completed!
Copyright (C) 2007 Mark Wedel & Crossfire Development Team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
The author can be reached via e-mail to crossfire-devel@real-time.com