-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (49 loc) · 1.54 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
<?php
// Hack Protection
if (!defined('IN_SPYOGAME')) {
exit('Hacking Attempt!');
}
// We'll need that
global $db, $table_prefix;
define("TABLE_EXPEDITION", $table_prefix."eXpedition"); // Toutes
define("TABLE_EXPEDITION_NUL", $table_prefix."eXpedition_nul"); // 0 - Nul
define("TABLE_EXPEDITION_RESS", $table_prefix."eXpedition_ress"); // 1 - Ressources
define("TABLE_EXPEDITION_FLEET", $table_prefix."eXpedition_fleet"); // 2 - Vaisseaux
define("TABLE_EXPEDITION_MERCH", $table_prefix."eXpedition_merch"); // 3 - Marchand
define("TABLE_EXPEDITION_ATTACKS", $table_prefix."eXpedition_attacks"); // 4 - Attaques
define("TABLE_EXPEDITION_ITEMS", $table_prefix."eXpedition_items"); // 5 - Items
//On vérifie que le mod est activé
$query = "SELECT `active`,`root` FROM `".TABLE_MOD."` WHERE `action`='eXpedition' AND `active`='1' LIMIT 1";
if (!$db->sql_numrows($db->sql_query($query))) die('Mod désactivé !');
$result = $db->sql_query($query);
list($active,$root) = $db->sql_fetch_row($result);
// MOD FOLDER
define('FOLDER_EXP','mod/'.$root);
require_once("views/page_header.php");
if(isset($pub_subaction)){
switch($pub_subaction){
case 'stats':
include("statistiques.php");
break;
case 'global':
include("statistiques.php");
break;
case 'hof':
include("hof.php");
break;
case 'detail':
include("detail.php");
break;
case 'detailAll':
include("detail.php");
break;
default:
include ("statistiques.php");
break;
}
}
else{
include("statistiques.php");
}
require_once("views/page_tail.php");
?>