From 53f9342d8ea9512ccd80807fb024dbee2ff71c1b Mon Sep 17 00:00:00 2001 From: Liongold Date: Wed, 13 Jul 2016 18:05:31 +0200 Subject: [PATCH] Checks in index.php and setup.php should now match --- frontend/public/setup.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/public/setup.php b/frontend/public/setup.php index f85fdf062..8e4cb1dcf 100644 --- a/frontend/public/setup.php +++ b/frontend/public/setup.php @@ -1,7 +1,11 @@ = 7) { + if($currentStep >= 7 && file_exists("../app/storage/config/database.json") && file_exists("../app/storage/config/paperwork.json")) { header("Location: /"); + }else if(!file_exists("../app/storage/config/database.json")) { + $currentStep = 3; + }else if(!file_exists("../app/storage/config/paperwork.json")) { + $currentStep = 4; } ?> @@ -681,4 +685,4 @@ function toggleButton(field, onload) { }); - \ No newline at end of file +