-
Notifications
You must be signed in to change notification settings - Fork 1
/
ranking.php
114 lines (79 loc) · 2.78 KB
/
ranking.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
require 'config.php';
require 'classes/Session.class.php';
require 'classes/Player.class.php';
require 'classes/System.class.php';
require 'classes/Ranking.class.php';
$session = new Session();
$system = new System();
ob_start();
require 'template/contentStart.php';
$system = new System();
$ranking = new Ranking();
$user = ' active';
$clan = '';
$soft = '';
$ddos = '';
if($system->issetGet('show')){
$showInfo = $system->switchGet('show', 'clan', 'software', 'ddos');
if($showInfo['ISSET_GET'] == 1){
$user = '';
if($showInfo['GET_VALUE'] == 'clan'){
$clan = ' active';
} elseif($showInfo['GET_VALUE'] == 'software') {
$soft = ' active';
} else {
$ddos = ' active';
}
} else {
$session->addMsg('Invalid get.', 'error');
}
}
?>
<div class="span12">
<?php
if($session->issetMsg()){
$session->returnMsg();
}
?>
<div class="widget-box">
<div class="widget-title">
<ul class="nav nav-tabs">
<li class="link<?php echo $user; ?>"><a href="ranking.php"><span class="icon-tab he16-rank_user"></span><span class="hide-phone"><?php echo _('User ranking'); ?></span></a></li>
<li class="link<?php echo $clan; ?>"><a href="?show=clan"><span class="icon-tab he16-rank_clan"></span><span class="hide-phone"><?php echo _('Clan ranking'); ?></span></a></li>
<li class="link<?php echo $soft; ?>"><a href="?show=software"><span class="icon-tab he16-rank_software"></span><span class="hide-phone"><?php echo _('Software ranking'); ?></span></a></li>
<li class="link<?php echo $ddos; ?>"><a href="?show=ddos"><span class="icon-tab he16-rank_ddos"></span><span class="hide-phone"><?php echo _('DDoS Ranking'); ?></span></a></li>
</ul>
</div>
<div class="widget-content padding noborder center">
<?php
if($system->issetGet('show')){
$showInfo = $system->switchGet('show', 'clan', 'software', 'ddos');
if($showInfo['ISSET_GET'] == 1){
switch($showInfo['GET_VALUE']){
case 'clan':
$display = 'clan';
break;
case 'software':
$display = 'software';
break;
case 'ddos':
$display = 'ddos';
break;
}
} else {
$display = 'user';
}
} else {
$display = 'user';
}
$ranking->ranking_display($display);
?>
</div>
<div style="clear: both;" class="nav nav-tabs"></div>
<?php
ob_end_flush();
ob_start();
require 'template/contentEnd.php';
ob_end_flush();
?>