-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.php
More file actions
46 lines (40 loc) · 1.58 KB
/
common.php
File metadata and controls
46 lines (40 loc) · 1.58 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
<?php
/**
* @package [Mod] Superapix
* @author Machine
* @copyright Copyright © 2016, https://ogsteam.eu/
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
*/
if (!defined('IN_SPYOGAME') || !defined('IN_SUPERAPIX'))
die("Hacking attempt");
global $table_prefix;
// constante de table
define("MOD_NAME", "superapix");
define("TABLE_CFG", $table_prefix . MOD_NAME . "_cfg");
define("TABLE_PLAYERS", $table_prefix . MOD_NAME . "_players");
define("TABLE_ALLIANCES", $table_prefix . MOD_NAME . "_alliances");
define("TABLE_RANK_ALLIANCES", $table_prefix . MOD_NAME . "_rank_alliance");
define("TABLE_RANK_PLAYERS", $table_prefix . MOD_NAME . "_rank_player");
define("TABLE_UNIVERS", $table_prefix . MOD_NAME . "_universe");
if (!defined('TABLE_XTENSE_CALLBACKS')) {
define("TABLE_XTENSE_CALLBACKS", $table_prefix . "xtense_callbacks"); // xtense Callbacks
}
// paths
define("MOD_ROOT", "mod/" . MOD_NAME . "/");
define("MOD_ROOT_MODEL", MOD_ROOT . "model/");
define("MOD_ROOT_VUE", MOD_ROOT . "vue/");
define("MOD_ROOT_JS", MOD_ROOT . "js/");
define("MOD_ROOT_INCLUDE", MOD_ROOT . "include/");
define("MOD_ROOT_XML", MOD_ROOT . "xml/");
define("MOD_ROOT_PARSER", MOD_ROOT . "parser/");
//joueur superapix
define("SPA_PLAYER", "SPA_WebService");
// include générique
include(MOD_ROOT_MODEL . "config.php");
include(MOD_ROOT_MODEL . "db.php");
include(MOD_ROOT_MODEL . "xtense.php");
include(MOD_ROOT_INCLUDE . "function.php");
include(MOD_ROOT_INCLUDE . "cst.php");
include(MOD_ROOT_INCLUDE . "lang.php");
include_once(MOD_ROOT_MODEL . "install.php");
defineDebug();