Skip to content

Commit

Permalink
Checks in index.php and setup.php should now match
Browse files Browse the repository at this point in the history
  • Loading branch information
Liongold authored Jul 13, 2016
1 parent b25553a commit 53f9342
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/public/setup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
$currentStep = (file_exists("../app/storage/config/setup") ? file_get_contents("../app/storage/config/setup") : 1);
if($currentStep >= 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;
}
?>
<!DOCTYPE html>
Expand Down Expand Up @@ -681,4 +685,4 @@ function toggleButton(field, onload) {
});
</script>
</body>
</html>
</html>

0 comments on commit 53f9342

Please sign in to comment.