fix: login + logout pages redirect to install, if not installed yet

This commit is contained in:
Martin Ambrus
2017-10-27 19:34:47 +02:00
parent 3200cf2c3c
commit 1e9098505e
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -10,6 +10,11 @@
## ##
#################################################################################
if(!file_exists('var/installed')) {
header("Location: install/");
exit;
}
include('GameEngine/Account.php');
$invited=(isset($_GET['uid'])) ? filter_var($_GET['uid'], FILTER_SANITIZE_NUMBER_INT):$form->getError('invt');
?>
+2 -2
View File
@@ -18,8 +18,8 @@
#################################################################################
if(!file_exists('var/installed')) {
header("Location: install/");
exit;
header("Location: install/");
exit;
}
include ("GameEngine/config.php");