-
Notifications
You must be signed in to change notification settings - Fork 76
/
serverLogin.php
39 lines (39 loc) · 2.42 KB
/
serverLogin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.11.01 ##
## Filename: serverLogin.php ##
## Developed by: Advocaite ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
error_reporting(E_ALL);
if (!file_exists('GameEngine/config.php')) {
header("Location: install/");
}
include ("GameEngine/Database.php");
include ("GameEngine/Lang/".$result['lang'].".php");
$users = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "users"));
$time = time() - 60*10;
$online = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "users WHERE timestamp > $time AND tribe!=0 AND tribe!=4 AND tribe!=5"));
?>
<h3 class="pop popgreen bold">Please choose a server.</h3>
<div class="server serverA serverbig servernormal serverbignormal ">
<a class="link" onclick="" href="login.php" title="Log in to Server 1.">
<span class="name">Server 1</span>
<span class="player" title="Players in total: <?php echo $users-4; ?>"><?php echo $users-4; ?></span>
<span class="online" title="Players online: <?php echo $online; ?>"><?php echo $online; ?></span>
<span class="start">The server started <?php echo round((time()-COMMENCE)/86400);?> days ago.</span>
<span class="mark"></span>
<img class="hover" src="img/x.gif">
</a>
</div>