-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
73 lines (60 loc) · 1.93 KB
/
index.php
File metadata and controls
73 lines (60 loc) · 1.93 KB
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
<?php
/**
* OGSPY - Mod PAx Superi
*
* @package [Mod] Pax Superi
* @author Machine
* @copyright Copyright © 2016, https://ogsteam.eu/
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
*/
if (! defined('IN_SPYOGAME')) {
exit('Hacking Attempt!');
}
/**
* Inclusion du fichier commun qui contient les definitions et les inclusions
* necessaires pour le fonctionnement du module.
*/
include_once 'mod/paxsuperi/common.php';
global $pax_logger;
$pax_logger->info('Chargement de la page principale de PaxSuperi');
require_once 'views/page_header.php';
include MOD_ROOT_VUE . 'page_header_mod.php';
include MOD_ROOT_VUE . 'page_menu_mod.php';
$setting = Setting::getInstance();
$pax_logger->debug('Paramètres chargés: uni=' . $setting->uni . ', pays=' . $setting->pays);
// / formulaire admin
if (isset($pub_admin) && $pub_admin === '1') {
// univers
if (isset($pub_uni)) {
$setting->uni = (int) ($pub_uni);
}
// univers
if (isset($pub_pays) && strlen($pub_pays) < 4) {
$setting->pays = $pub_pays;
}
if (isset($pub_temporisation)) {
$pub_temporisation = (int) $pub_temporisation > 3 ? 3 : (int) $pub_temporisation; // inf a 3 s
$pub_temporisation = (int) $pub_temporisation < 1 ? 1 : (int) $pub_temporisation; // sup a 1 s
$setting->temporisation = (int) $pub_temporisation;
}
if (isset($pub_debug)) {
$pub_debug = (int) $pub_debug;
$setting->debug = $pub_debug < 2 ? $pub_debug : 0;
}
}
switch ($pub_subaction ?? null) {
case 'admin':
include MOD_ROOT_VUE . 'admin.php';
break;
case 'state':
include MOD_ROOT_VUE . 'state.php';
break;
case 'paxsuperi':
include MOD_ROOT_VUE . 'index.php';
break;
default:
include MOD_ROOT_VUE . 'index.php';
break;
}
include MOD_ROOT_VUE . 'page_footer_mod.php';
require_once 'views/page_tail.php';