-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.php
More file actions
44 lines (34 loc) · 920 Bytes
/
install.php
File metadata and controls
44 lines (34 loc) · 920 Bytes
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
<?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'))
die("Hacking attempt");
define('IN_SUPERAPIX', true);
global $db;
include_once("mod/superapix/common.php");
$security = false;
$mod_folder = MOD_NAME;
$security = install_mod($mod_folder);
if ($security == true) {
// on ajoute
// création tables
create_table_config();
create_table_players();
create_table_alliances();
create_table_rank_alliance();
create_table_rank_player();
create_table_univers();
rempli_table_univers();
insert_config("uni", 0);
insert_config("dev", 0);
insert_config("pays", "fr");
insert_config("tempo", 1);
// installation d un joueur
newPlayer();
fixPtPerMember();
create_uni_vide();
}