aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/index.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/www/index.php b/www/index.php
index 92b3a3f..915acb8 100644
--- a/www/index.php
+++ b/www/index.php
@@ -4,7 +4,14 @@
#language support
require_once ("lib/lib.l10n.php");
-require_once("inc/config.inc.php");
+
+if (file_exists("inc/config.inc.php") {
+ require_once("inc/config.inc.php");
+} else {
+ # Load fallback configuration
+ require_once("inc/config.inc.php.dist");
+}
+
require_once("inc/www.class.inc.php");
require_once("inc/funkce.inc.php");
//session_name("navstevnik");