aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-17 14:03:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-02-17 14:03:28 -0200
commite029768e7aa361011ed08b73b614bae4e21eb9b4 (patch)
treec0c9565a95818a95531427a989e7a3dc98475138
parentcf74192c7ce4d5ed5c265378dc8da704b7dacb19 (diff)
downloadoriginal-e029768e7aa361011ed08b73b614bae4e21eb9b4.tar.gz
original-e029768e7aa361011ed08b73b614bae4e21eb9b4.tar.bz2
Load fallback configuration
Loads config.inc.php.dist if config.inc.php is not present.
-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");