-
Notifications
You must be signed in to change notification settings - Fork 1
/
fame.php
100 lines (75 loc) · 2.55 KB
/
fame.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
<?php
require 'config.php';
require 'classes/Session.class.php';
require 'classes/Player.class.php';
require 'classes/System.class.php';
require 'classes/Fame.class.php';
$session = new Session();
$system = new System();
ob_start();
require 'template/contentStart.php';
$fame = new Fame();
$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="fame"><span class="icon-tab he16-fame_user"></span>Famous Users</a></li>
<li class="link<?php echo $clan; ?>"><a href="?show=clan"><span class="icon-tab he16-fame_clan"></span>Famous Clans</a></li>
<li class="link<?php echo $soft; ?>"><a href="?show=software"><span class="icon-tab he16-fame_software"></span>Famous Softwares</a></li>
<li class="link<?php echo $ddos; ?>"><a href="?show=ddos"><span class="icon-tab he16-fame_ddos"></span>Famous DDoS</a></li>
</ul>
</div>
<div class="widget-content padding noborder center">
<?php
$display = 'user';
$round = '';
$top = FALSE;
if($system->issetGet('show')){
$showInfo = $system->switchGet('show', 'clan', 'software', 'ddos');
if($showInfo['ISSET_GET'] == 1){
$display = $showInfo['GET_VALUE'];
}
}
if($system->issetGet('round')){
$roundInfo = $system->verifyNumericGet('round');
if($roundInfo['IS_NUMERIC'] == 1 && $roundInfo['GET_VALUE'] > 0){
$round = $roundInfo['GET_VALUE'];
} elseif($_GET['round'] == 'all'){
$top = TRUE;
}
}
$fame->HallOfFame($display, $round, $top);
?>
</div>
<div class="nav nav-tabs" style="clear: both;"></div>
<?php
ob_end_flush();
ob_start();
require 'template/contentEnd.php';
ob_end_flush();
?>