forked from OGSteam/mod-superapix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.php
More file actions
40 lines (24 loc) · 747 Bytes
/
update.php
File metadata and controls
40 lines (24 loc) · 747 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
<?php
/**
* @package [Mod] Superapix
* @author Machine
* @copyright Copyright © 2016, http://ogsteam.fr/
* @license http://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 == true){
// on ajoute
insert_config("requete_max",500);
rempli_table_univers();
newPlayer();
fixPtPerMember();
}
?>