mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-12-23 18:35:34 -05:00
Only make changes to files when not in development mode
This commit is contained in:
parent
1408d0ad91
commit
3e706233a4
19
install.php
19
install.php
@ -9,6 +9,14 @@ define("COPYRIGHT_TEXT","");
|
||||
require_once("classes/locale-negotiator.php");
|
||||
require_once("classes/db-class.php");
|
||||
|
||||
$isDeveleoperEnvironement = false;
|
||||
if(isset($_GET["isDev"])){
|
||||
if($_GET["isDev"] == "devMode"){
|
||||
$isDeveleoperEnvironement = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$negotiator = new LocaleNegotiator("en_GB");
|
||||
$message = "";
|
||||
$db = new SSDB();
|
||||
@ -161,11 +169,12 @@ if(isset($_POST['server']) && empty($message))
|
||||
$db->setSetting($mysqli,"google_recaptcha_secret","");
|
||||
$db->setSetting($mysqli,"google_recaptcha_sitekey","");
|
||||
$db->setSetting($mysqli,"cron_server_ip","");
|
||||
unlink("create-server-config.php");
|
||||
unlink("config.php.template");
|
||||
unlink("install.sql");
|
||||
unlink(__FILE__);
|
||||
|
||||
if(!$isDeveleoperEnvironement) {
|
||||
unlink("create-server-config.php");
|
||||
unlink("config.php.template");
|
||||
unlink("install.sql");
|
||||
unlink(__FILE__);
|
||||
}
|
||||
header("Location: ".WEB_URL);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,4 @@
|
||||
<?php
|
||||
//This should later be translatable, maybe find a better solution?
|
||||
//This is here for better generation of POT files :)
|
||||
$statuses = array(_("Major outage"), _("Minor outage"), _("Planned maintenance"), _("Operational") );
|
||||
$classes = array("danger", "warning", "primary", "success" );
|
||||
$icons = array("fa fa-times", "fa fa-exclamation", "fa fa-info", "fa fa-check" );
|
||||
|
Loading…
Reference in New Issue
Block a user