Fix #14 - show installation dialog on 404 page if config not found

This commit is contained in:
Vojtěch Sajdl
2018-01-18 22:57:12 +01:00
parent fe02441c3d
commit 696b205b68
13 changed files with 106 additions and 93 deletions
+9 -3
View File
@@ -1,6 +1,11 @@
<?php
require("config.php");
require("template.php");
require_once("template.php");
if (!file_exists("config.php"))
{
require_once("install.php");
}else{
require_once("config.php");
Template::render_header("Page not found");
?>
<div class="text-center">
@@ -8,4 +13,5 @@ Template::render_header("Page not found");
<p><?php echo _("Sorry, but the page you were trying to view does not exist.");?></p>
</div>
<?php
Template::render_footer();
Template::render_footer();
}