2 #################################################################################
3 ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
4 ## --------------------------------------------------------------------------- ##
5 ## Filename index.php ##
6 ## Developed by: Advocaite ##
7 ## License: TravianX Project ##
8 ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
10 #################################################################################
12 error_reporting(E_ALL
);
13 if (!file_exists('GameEngine/config.php')) {
14 header("Location: install/");
16 include("GameEngine/config.php");
17 include("GameEngine/Database.php");
18 include("GameEngine/Lang/".LANG
.".php");
20 <h3
class="pop popgreen bold">Please choose a server
.</h3
>
22 //connect info for server
24 <div
class="server serverA serverbig servernormal serverbignormal ">
25 <a
class="link" onclick
="" href
="/login.php" title
="Log in to Server 1.">
26 <span
class="name"> Server
1 </span
>
28 $users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX
."users"));
31 <span
class="player" title
="Players in total: <?php echo $users;?>"><?php
echo $users;?
> </span
>
33 $result = mysql_query("SELECT * FROM ".TB_PREFIX
."active");
34 $num_rows = mysql_num_rows($result);
37 <span
class="online" title
="Players online: <?php echo $num_rows;?>"><?php
echo $num_rows;?
> </span
>
38 <span
class="start"> The server started
<?php
echo round((time()-COMMENCE
)/86400);?
> days ago
. </span
>
39 <span
class="mark"> </span
>
40 <img
class="hover" src
="img/x.gif">