just a quick uncomment cause some just run and wonder why it dose nothing
[travianx.git] / serverRegister.php
blobd88714aff4746a070ff09c67a9df3c603f874a2f
1 <?php
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. ##
9 ## ##
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>
21 <?php
22 //connect info for server
24 <div class="server serverA serverbig servernormal serverbignormal ">
25 <a class="link" onclick="" href="/anmelden.php" title="Register on Server 1.">
26 <span class="name"> Server 1 </span>
27 <?php
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>
32 <?php
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">
41 </a>
42 </div>