-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
127 lines (102 loc) · 3.74 KB
/
index.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
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
/**
* index.php
* @package HofRC
* @author Shad
* @link http://www.ogsteam.fr
* @version : 0.0.1
*/
if (!defined('IN_SPYOGAME')) die("Hacking attempt");
if (!isset($table_prefix)) global $table_prefix;
if (!isset($icon_display)) global $icon_display;
$query = "SELECT `active` FROM `" . TABLE_MOD . "` WHERE `action`='hofrc' AND `active`='1' LIMIT 1";
if (!$db->sql_numrows($db->sql_query($query)))
die("Hacking attempt");
// include
$TABLE_HOFRC_ATTACK = $table_prefix . 'hofrc_attack';
$TABLE_HOFRC_CONFIG = $table_prefix . 'hofrc_config';
$TABLE_HOFRC_DEFENCE = $table_prefix . 'hofrc_defence';
$TABLE_HOFRC_INFO_RC = $table_prefix . 'hofrc_info_rc';
$TABLE_HOFRC_RP = $table_prefix . 'hofrc_rp';
$TABLE_HOFRC_SKIN = $table_prefix . 'hofrc_skin';
$TABLE_HOFRC_TITLE = $table_prefix . 'hofrc_title';
if (!isset($pub_subaction)) $pub_subaction = "convert";
if ($pub_subaction !== "preview" && $pub_subaction !== "temp") {
require_once("views/page_header.php");
require_once('mod/hofrc/Pages/include.php');
?>
<div class="ogspy-mod-header">
<h2>HOF RC</h2>
</div>
<?php
$activeconvert = ($pub_subaction == "convert") ? " active " : "";
$activegestion = ($pub_subaction == "gestion") ? " active " : "";
$activeadmin = ($pub_subaction == "admin") ? " active " : "";
$activechangelog = ($pub_subaction == "changelog") ? " active " : "";
?>
<div class="nav-page-menu">
<div class="nav-page-menu-item <?php echo $activeconvert;?> ">
<a class="nav-page-menu-link" href="index.php?action=hofrc&subaction=convert">
Conversion d'un HOF
</a>
</div>
<div class="nav-page-menu-item <?php echo $activegestion; ?> ">
<a class="nav-page-menu-link" href="index.php?action=hofrc&subaction=gestion">
Gestion des HOF
</a>
</div>
<div class="nav-page-menu-item <?php echo $activeadmin; ?>">
<a class="nav-page-menu-link" href="index.php?action=hofrc&subaction=admin">
Administration
</a>
</div>
<div class="nav-page-menu-item <?php echo $activechangelog; ?>">
<a class="nav-page-menu-link" href="index.php?action=hofrc&subaction=changelog">
Changelog
</a>
</div>
</div>
<table width="100%">
<tr>
<td>
<?php
}
switch ($pub_subaction) {
case "convert":
require_once("Pages/convert.php");
break;
case "preview":
require_once("Pages/preview.php");
break;
case "gestion":
require_once("Pages/gestion.php");
break;
// case "rp" :
// require_once("Pages/rp.php");
// break;
case "admin":
require_once("Pages/admin.php");
break;
case "publier":
require_once("Pages/publier.php");
break;
case "changelog":
require_once("Pages/changelog.php");
break;
default:
require_once("Pages/convert.php");
break;
}
?>
</td>
</tr>
</table>
<?php
if (!isset($pub_subaction)) $pub_subaction = "convert";
if ($pub_subaction !== "preview" && $pub_subaction !== "temp") {
require_once("views/page_header.php");
require_once('mod/hofrc/Pages/include.php');
page_footer();
}
require_once("views/page_tail.php");
?>