<?php
require("include/config.php");
head("Serveri");
//------------------------------------------------------------------------------------------------------------+
//[ PREPARE CONFIG - DO NOT CHANGE OR MOVE THIS ]
global $server_config; $server_config = array();
//------------------------------------------------------------------------------------------------------------+
//[ BACKGROUND COLORS - CHANGE TO MATCH YOUR THEME ]
$server_config['background'][1] = "background-color:#e4eaf2;border-bottom: 1px solid #fff";
$server_config['background'][2] = "background-color:#f4f7fa;border-bottom: 1px solid #ccd5e2";
//------------------------------------------------------------------------------------------------------------+
//[ SHOW TOTAL SERVERS / PLAYERS / MAX PLAYERS AT BOTTOM OF THE LIST ]
$server_config['list']['totals'] = 0;
$server_config['D_ROOT'] = $_SERVER['DOCUMENT_ROOT']."/";
$server_config['http'] = url;
//------------------------------------------------------------------------------------------------------------+
//[ ZONE SHOWS PLAYER NAMES - OPTIONS: 0=NO 1=YES ]
$server_config['players'][1] = 1;
$server_config['players'][2] = 1;
$server_config['players'][3] = 1;
$server_config['players'][4] = 1;
$server_config['players'][5] = 1;
$server_config['players'][6] = 1;
$server_config['players'][7] = 1;
$server_config['players'][8] = 1;
//------------------------------------------------------------------------------------------------------------+
//[ ZONE RANDOMISATION - SEE README ON HOW TO USE ]
$server_config['random'][1] = 0;
$server_config['random'][2] = 0;
$server_config['random'][3] = 0;
$server_config['random'][4] = 0;
$server_config['random'][5] = 0;
$server_config['random'][6] = 0;
$server_config['random'][7] = 0;
$server_config['random'][8] = 0;
//------------------------------------------------------------------------------------------------------------+
//[ ZONE GRID WIDTH - INCREASE TO MAKE ZONES GO SIDE BY SIDE ]
$server_config['grid'][1] = 1;
$server_config['grid'][2] = 1;
$server_config['grid'][3] = 1;
$server_config['grid'][4] = 1;
$server_config['grid'][5] = 1;
$server_config['grid'][6] = 1;
$server_config['grid'][7] = 1;
$server_config['grid'][8] = 1;
//------------------------------------------------------------------------------------------------------------+
//[ ZONE SIZING ]
$server_config['zone']['width'] = "160"; // images will be fuzzy or cropped until resized to match
$server_config['zone']['height'] = "100"; // height of the zone box containing the player names
//------------------------------------------------------------------------------------------------------------+
//[ SORTING OPTIONS ]
$server_config['sort']['servers'] = "players"; // other options are "players"
$server_config['sort']['players'] = "score"; // other options are "score"
//------------------------------------------------------------------------------------------------------------+
// [ HIDE OFFLINE SERVERS ON LIST AND ZONES - OPTIONS: 0=SHOW 1=HIDE ]
$server_config['hide_offline'][0] = 0;
$server_config['hide_offline'][1] = 0;
$server_config['hide_offline'][2] = 0;
$server_config['hide_offline'][3] = 0;
$server_config['hide_offline'][4] = 0;
$server_config['hide_offline'][5] = 0;
$server_config['hide_offline'][6] = 0;
$server_config['hide_offline'][7] = 0;
$server_config['hide_offline'][8] = 0;
//------------------------------------------------------------------------------------------------------------+
//[ e107 VERSION - PAGE AND ZONE TITLES - FOR OTHER CMS USE THE ADMIN PANEL ]
//------------------------------------------------------------------------------------------------------------+
//[ TEXT OPTIONS - 'nmp' AND 'nnm' ONLY CHANGE WHEN CACHE IS EMPTY ( CLICK UPDATE IN ADMIN PANEL ) ]
$server_config['text']['vsd'] = "CLICK TO VIEW SERVER DETAILS";
$server_config['text']['slk'] = "GAME LINK";
$server_config['text']['sts'] = "Statuss:";
$server_config['text']['adr'] = "Adrese:";
$server_config['text']['cpt'] = "Connection Port:";
$server_config['text']['qpt'] = "Ports:";
$server_config['text']['typ'] = "Tips:";
$server_config['text']['gme'] = "Spēle:";
$server_config['text']['map'] = "Karte:";
$server_config['text']['plr'] = "Spēlētāji:";
$server_config['text']['npi'] = "Nav spēlētāju";
$server_config['text']['nei'] = "Nav papildus informācija";
$server_config['text']['onl'] = "Ieslēgts";
$server_config['text']['onp'] = "Ieslēgts ar paroli";
$server_config['text']['nrs'] = "Nav atbildes";
$server_config['text']['pen'] = "WAITING TO BE QUERIED";
$server_config['text']['zpl'] = "Spēlētāji:";
$server_config['text']['mid'] = "MISSING OR INVALID SERVER ID";
$server_config['text']['nnm'] = "Serveris pašlaik nedarbojas";
$server_config['text']['nmp'] = "-";
$server_config['text']['tns'] = "Serveri:";
$server_config['text']['tnp'] = "Spēlētāji:";
$server_config['text']['tmp'] = "Max Spēlētāji:";
//------------------------------------------------------------------------------------------------------------+
//[ STAND-ALONE VERSION - ADMIN DETAILS ]
$server_config['admin']['user'] = "admin";
$server_config['admin']['pass'] = "dators";
//------------------------------------------------------------------------------------------------------------+
//[ FEED METHOD - OPTIONS: 0=DISABLED 1=CURL OR FSOCKOPEN 2=FSOCKOPEN ONLY ]
$server_config['feed']['method'] = 0;
$server_config['feed']['url'] = "http://www.greycube.co.uk/server/feed/server_files/server_feed.php";
//------------------------------------------------------------------------------------------------------------+
//[ ADVANCED SETTINGS - DO NOT TOUCH THESE UNLESS YOU REALLY KNOW WHAT YOUR DOING ]
$server_config['live_time'] = 4; // seconds per page load allowed for live querying
$server_config['cache_time'] = 70; // seconds before the cached information is considered old
$server_config['management'] = 0; // 1 will show advanced management in the admin by default
$server_config['retry_offline'] = 0; // 1 will quickly re-query offline servers
$server_config['timeout'] = 0; // 1 will increase the query timeout
$server_config['public_feed'] = 0; // 1 will allow anyone to add servers to your server database
$server_config['cms'] = "sa"; // sets which CMS specific code to use
$server_config['url_path'] = ""; // full domain path to /server_files/ for when path detection fails
//------------------------------------------------------------------------------------------------------------+
//------------------------------------------------------------------------------------------------------------+
$output = "";
if (is_numeric(@$_GET['s']))
{
require "include/details.php";
}
elseif(@$_GET['do'] == "add")
{
require("include/server_add.php");
}
else
{
require "include/list.php";
}
echo $output;
//------------------------------------------------------------------------------------------------------------+
foot();
?>
sql
CREATE TABLE `servers` (
`id` int(11) NOT NULL auto_increment,
`type` varchar(50) default NULL,
`ip` varchar(255) default NULL,
`c_port` varchar(5) default NULL,
`q_port` varchar(5) default NULL,
`s_port` varchar(5) default NULL,
`status` tinyint(1) NOT NULL default '0',
`cache_time` text,
`website` varchar(300) default NULL,
`map` varchar(200) default NULL,
`pl_online` int(5) NOT NULL,
`pl_max` int(5) NOT NULL,
`players` text,
`serveris` varchar(150) default NULL,
`show` varchar(1) NOT NULL default '1',
`balsis` varchar(10) NOT NULL,
`cache` varchar(10000) NOT NULL,
`zone` int(11) NOT NULL,
`disabled` int(11) NOT NULL,
`web` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;