mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 07:07:14 +00:00
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.
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
if(!file_exists('var/installed')) {
|
if(!file_exists('var/installed') && @opendir('install')) {
|
||||||
header("Location: install/");
|
header("Location: install/");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
if(!file_exists('var/installed')) {
|
if(!file_exists('var/installed') && @opendir('install')) {
|
||||||
header("Location: install/");
|
header("Location: install/");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
if(!file_exists('var/installed')) {
|
if(!file_exists('var/installed') && @opendir('/var/installed')) {
|
||||||
header("Location: install/");
|
header("Location: install/");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
if(!file_exists('var/installed')) {
|
if(!file_exists('var/installed') && @opendir('install')) {
|
||||||
header("Location: install/");
|
header("Location: install/");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user