From d9f4d044c6da476b02d84dd7e126e087f83a93c1 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sat, 28 Oct 2017 09:32:54 +0200 Subject: [PATCH] fix: new install version + old installed version redirected to install Because the check changed to see if /var/installed is present (and it would never be in the version previously installed), this caused some pages to redirect to /install. --- anmelden.php | 2 +- index.php | 2 +- login.php | 2 +- password.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anmelden.php b/anmelden.php index 6ef483b8..61408c99 100644 --- a/anmelden.php +++ b/anmelden.php @@ -10,7 +10,7 @@ ## ## ################################################################################# -if(!file_exists('var/installed')) { +if(!file_exists('var/installed') && @opendir('install')) { header("Location: install/"); exit; } diff --git a/index.php b/index.php index e552b596..5787cc41 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ ## ## ################################################################################# -if(!file_exists('var/installed')) { +if(!file_exists('var/installed') && @opendir('install')) { header("Location: install/"); exit; } diff --git a/login.php b/login.php index d95ed5a8..94c85c56 100644 --- a/login.php +++ b/login.php @@ -10,7 +10,7 @@ ## ## ################################################################################# -if(!file_exists('var/installed')) { +if(!file_exists('var/installed') && @opendir('/var/installed')) { header("Location: install/"); exit; } diff --git a/password.php b/password.php index ce12f62b..b326b749 100644 --- a/password.php +++ b/password.php @@ -9,7 +9,7 @@ ## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## ## ################################################################################# -if(!file_exists('var/installed')) { +if(!file_exists('var/installed') && @opendir('install')) { header("Location: install/"); exit; }