-
Notifications
You must be signed in to change notification settings - Fork 1
/
update.php
49 lines (36 loc) · 1.09 KB
/
update.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
<?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, $table_prefix;
include_once("mod/superapix/common.php");
include_once(MOD_ROOT_MODEL . "install.php");
$filename = 'mod/superapix/version.txt';
if (file_exists($filename)) $file = file($filename);
$security = false;
$security = update_mod('superapix', 'superapix');
if ($security) {
// on ajoute
insert_config("requete_max", 500);
insert_config("tempo", 1);
rempli_table_univers();
newPlayer();
fixPtPerMember();
// reinitialisation de le table player
delete_table_rank_player();
create_table_rank_player();
// ajout datadate et tag ally_name
delete_table_players();
create_table_players();
delete_table_alliances();
create_table_alliances();
delete_table_univers();
create_table_univers();
rempli_table_univers();
create_uni_vide();
}