-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
121 lines (94 loc) · 3.53 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
<?php
/**
* @package [Mod] Superapix
* @author Machine
* @copyright Copyright © 2016, https://ogsteam.eu/
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
*/
define('IN_SUPERAPIX', true);
define('IN_XTENSE', false);
if (!defined('IN_SPYOGAME') || !defined('IN_SUPERAPIX'))
die("Hacking attempt");
include_once("mod/superapix/common.php");
if (!ini_get('allow_url_fopen')) {
echo " allow_url_fopen non activé, verifier votre configuration php ";
die();
}
if (isset($pub_create_uni)) {
//plus necessaire
create_uni_vide();
}
if (isset($pub_reinit)) {
reinit();
header("Refresh: 0; url=index.php?action=superapix&admin=1");
die();
}
// point d access à supprimer
if (isset($pub_sub_action) && $pub_sub_action == "cross") {
require_once("views/page_header.php");
// avant traitement on met la progress barre
if (isset($pub_step) && is_numeric($pub_step)) {
echo progress_barre((int) $pub_step, "");
}
include(MOD_ROOT_JS . "cst_javascript.php");
echo '<script src="' . MOD_ROOT_JS . 'cross_domain.js" type="text/javascript"> </script>';
include(MOD_ROOT_VUE . "cross_domain.php");
require_once("views/page_tail.php");
die;
}
if (isset($pub_sub_action) && $pub_sub_action == "send") {
$temp_ally = constante_array_rank_alliance();
$temp_player = constante_array_rank_player();
if (file_exists(MOD_ROOT_MODEL . "model_" . $pub_type . ".php")) {
include(MOD_ROOT_MODEL . "model_" . $pub_type . ".php");
} elseif (isset($temp_ally[$pub_type])) {
include(MOD_ROOT_MODEL . "model_CST_ALLIANCES_RANK.php");
} elseif (isset($temp_player[$pub_type])) {
include(MOD_ROOT_MODEL . "model_CST_PLAYERS_RANK.php");
} elseif (strstr($pub_type, "CST_UNIVERSE")) {
include(MOD_ROOT_MODEL . "model_CST_UNIVERSE.php");
} else {
echo " moi pas comprendre";
}
die;
}
if (isset($pub_step) && is_numeric($pub_step)) {
require_once("views/page_header.php");
// avant traitement on met la progress barre
if (isset($pub_step) && is_numeric($pub_step)) {
echo progress_barre((int) $pub_step, "");
}
include(MOD_ROOT_JS . "cst_javascript.php");
// echo '<script src="'.MOD_ROOT_JS.'superapix.js" type="text/javascript"> </script>';
// echo '<script src="'.MOD_ROOT_JS.'player.js" type="text/javascript"> </script>';
//echo '<script src="'.MOD_ROOT_JS.'alliance.js" type="text/javascript"> </script>';
//echo '<script src="'.MOD_ROOT_JS.'rank_alliance.js" type="text/javascript"> </script>';
//echo '<script src="'.MOD_ROOT_JS.'rank_player.js" type="text/javascript"> </script>';
// on va d ailleurs pas se casser la tete, le decode on le met ici :
include(MOD_ROOT_VUE . "step.php"); // traitement des envois
require_once("views/page_tail.php");
die;
}
require_once("views/page_header.php");
include(MOD_ROOT_VUE . "page_header_mod.php");
include(MOD_ROOT_VUE . "page_menu_mod.php");
echo '<script src="' . MOD_ROOT_JS . 'step.js" type="text/javascript"> </script>';
switch ($pub_subaction) {
case "link":
include(MOD_ROOT_VUE . "link.php");
break;
case "admin":
include(MOD_ROOT_VUE . "admin.php");
break;
case "superapix":
include(MOD_ROOT_VUE . "index.php");
break;
case "xml":
include(MOD_ROOT_VUE . "xml.php");
break;
default:
include(MOD_ROOT_VUE . "index.php");
break;
}
include(MOD_ROOT_VUE . "page_footer_mod.php");
require_once("views/page_tail.php");