liquidwar-5.6.5/ 0000755 0003720 0003720 00000000000 13407756104 013137 5 ustar travis travis liquidwar-5.6.5/www/ 0000775 0003720 0003720 00000000000 13407756104 013765 5 ustar travis travis liquidwar-5.6.5/www/php/ 0000775 0003720 0003720 00000000000 13407756104 014554 5 ustar travis travis liquidwar-5.6.5/www/php/cleanup.php 0000664 0003720 0003720 00000003630 13407756104 016716 0 ustar travis travis
liquidwar-5.6.5/www/php/index.php 0000664 0003720 0003720 00000011716 13407756104 016402 0 ustar travis travis
U-Foot's meta-server
U-Foot's meta-server
Introduction
I call meta-server the software which I run on my web site to allow the
Liquid War and
U61
servers to register themselves so that clients can automatically
find out which servers are running in the world.
List of active servers
You can use this list "as is" but you can
also get it directly from the game.
Address
Port
Game
Version
Uptime
Players
Password
Comment
";
echo "".html_format($result[$i]["address"])." ";
echo "".html_format($result[$i]["port"])." ";
echo "".html_format($result[$i]["game"])." ";
echo "".html_format($result[$i]["version"])." ";
echo "".html_uptime($result[$i]["uptime"])." ";
echo "".html_format($result[$i]["busy_players"])."/".html_format($result[$i]["max_players"])." ";
echo "".(html_format($result[$i]["password"]) ? "yes" : "no")." ";
echo "".html_format($result[$i]["comment"])." ";
echo "\n";
}
}
?>
Chat
This chat-box is not moderated, so I'm not responsible
for its content. Still, if you think something's going wrong,
contact me .
Message successfully posted.";
}
else {
echo "Message not posted. ";
}
}
?>
Address
Age
Game
Message
";
echo "".html_format($result[$i]["address"])." ";
echo "".html_uptime($result[$i]["age"])." ";
echo "".html_format($result[$i]["game"])." ";
echo "".html_format($result[$i]["message"])." ";
echo "\n";
}
}
?>
More informations on
www.ufoot.org .
liquidwar-5.6.5/www/php/robots.txt 0000664 0003720 0003720 00000000032 13407756104 016620 0 ustar travis travis User-agent: *
Disallow: /
liquidwar-5.6.5/www/php/list.txt.php 0000664 0003720 0003720 00000005326 13407756104 017064 0 ustar travis travis
liquidwar-5.6.5/www/php/register.txt.php 0000664 0003720 0003720 00000004052 13407756104 017730 0 ustar travis travis
liquidwar-5.6.5/www/php/metaserver.php 0000664 0003720 0003720 00000023073 13407756104 017447 0 ustar travis travis $post_date-METASERVER_CHAT_WRITE_LIMIT) {
$forbidden=1;
}
}
if (!$forbidden) {
$query="INSERT INTO metaserver_chat ".
"(address,".
"post_date,".
"game,".
"message)".
"VALUES ".
"(".$address.",".
$post_date.",".
$game.",".
$message.")";
if (db_exec_query($connection,$query)==1) {
$ok=1;
}
}
db_close_connection($connection);
}
else {
$ok=1;
}
return $ok;
}
//----------------------------------------------------------------------
// Returns the list of available servers
//----------------------------------------------------------------------
function metaserver_read($protocol,
$game,
$limit)
{
$connection=db_open_connection();
metaserver_cleanup_chat_ex($connection);
if (!$limit) {
$limit=METASERVER_CHAT_MAX_MESSAGES;
}
$query="SELECT ".
"address,".
"post_date,".
"game,".
"message ".
"FROM metaserver_chat ";
if ($game) {
$query.="WHERE game=".db_quote($game,METASERVER_SIZE_GAME." ");
}
$query.="ORDER BY post_date DESC ".
"LIMIT ".$limit;
$data=db_exec_query_select($connection,$query);
$now=time();
for ($i=0;$data[$i];++$i) {
$data[$i]["age"]=$now-$data[$i]["post_date"];
}
db_close_connection($connection);
return $data;
}
?>
liquidwar-5.6.5/www/php/list.json.php 0000664 0003720 0003720 00000005547 13407756104 017223 0 ustar travis travis
liquidwar-5.6.5/www/php/html.php 0000664 0003720 0003720 00000006213 13407756104 016233 0 ustar travis travis 0) {
if ($days>1) {
$uptime=$days." days";
}
else{
$uptime="1 day";
}
}
else if ($hours>0) {
$uptime=$hours." h";
}
else if ($minutes>0) {
$uptime=$minutes." min";
}
else {
$uptime=$seconds." sec";
}
return $uptime;
}
//----------------------------------------------------------------------
// Transforms a UNIX timestamp into a readable date
//----------------------------------------------------------------------
function html_date($timestamp)
{
$date=date("Y-m-d H:i:s",$timestamp);
return $date;
}
?>
liquidwar-5.6.5/www/php/register.json.php 0000664 0003720 0003720 00000004045 13407756104 020064 0 ustar travis travis
liquidwar-5.6.5/www/php/favicon.ico 0000664 0003720 0003720 00000002176 13407756104 016703 0 ustar travis travis h ( 4 b ! @ X A 8 7 *?f K j W $N (D
~ z2 v 0X . l
8;74 - .T 0 } )t - 5T @ # TP 5 3
&