-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
executable file
·30 lines (28 loc) · 942 Bytes
/
install.php
File metadata and controls
executable file
·30 lines (28 loc) · 942 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
<?php
/**
* Autoupdate install script
* @package [Mod] Autoupdate
* @subpackage main
* @author Bartheleway <contactbarthe@g.q-le-site.webou.net>
* @copyright Copyright © 2016, https://ogsteam.eu/
* @license https://opensource.org/licenses/gpl-license.php GNU Public License
* @version 2.1.9
*/
if (!defined('IN_SPYOGAME')) {
die("Hacking attempt");
}
// Ajout du module dans la table des mod de OGSpy
$is_ok = false;
$mod_folder = "autoupdate";
$is_ok = install_mod($mod_folder);
if ($is_ok) {
//si besoin de créer des tables, a faire ici
//Options par défaut.
mod_set_option("CYCLEMAJ", "24");
mod_set_option("MAJ_ALPHA", "0");
mod_set_option("MAJ_BETA", "0");
mod_set_option("LAST_REPO_LIST", "0");
mod_set_option("GITHUBTOKEN", "");
} else {
echo "<script>alert(\"Désolé, un problème a eu lieu pendant l'installation: corrigez les problèmes survenus et réessayez.\");</script>";
}