From e029768e7aa361011ed08b73b614bae4e21eb9b4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 17 Feb 2010 14:03:28 -0200 Subject: Load fallback configuration Loads config.inc.php.dist if config.inc.php is not present. --- www/index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3