-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
69 lines (50 loc) · 1.27 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
<?php
if (!defined('IN_SPYOGAME')) die("Hacking attempt"); // Pas d'acc�s direct
// includes classes
include_once("mod/emspyre/common.php");
require_once("views/page_header.php");
// point d entree, sert de controleur...
// page par defaut
if (!isset($pub_subaction)) $pub_subaction = "gestion";
// on genere le menu
generate_menu($pub_subaction);
if ($pub_subaction == 'gestion')
{
if (isset($pub_else))
{
if ($pub_else == 'add_player'){add_player_for_spy((int)$pub_g,(int)$pub_s,(int)$pub_r);}
if ($pub_else == 'del_player'){del_player_for_spy($pub_id);}
}
include(FOLDER."vue/gestion.php");
}
if ($pub_subaction == 'update')
{
if (isset($pub_id)){
include(FOLDER."vue/update.php");
}}
if ($pub_subaction == 'voir')
{
include(FOLDER."vue/voir.php");
}
if ($pub_subaction == 'stat')
{
include(FOLDER."vue/stat.php");
}
if ($pub_subaction == 'simu')
{
include(FOLDER."vue/simu.php");
}
if ($pub_subaction == 'flotte')
{
include(FOLDER."vue/flotte.php");
}
if ($pub_subaction == 'presence')
{
include(FOLDER."vue/presence.php");
}
if ($pub_subaction == 'prod')
{
include(FOLDER."vue/prod.php");
}
require_once("views/page_tail.php"); //on inclus la queue d'ogspy
//Voila le mod est fini ! Pas trop triste ? :D