From ed3796edefc8266aa2a3a71639a194deceffc3d5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 10 Sep 2010 10:49:50 -0400
Subject: [PATCH] Fixed a small bug in the nav.php which tries to lookup a custom module config file even if no module is selected and  enabled the dashboard module for the admin user by default after installation.

---
 interface/lib/config.inc.php |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/interface/lib/config.inc.php b/interface/lib/config.inc.php
index 6a34dd8..0cb07a4 100644
--- a/interface/lib/config.inc.php
+++ b/interface/lib/config.inc.php
@@ -82,7 +82,7 @@
 
 //** Paths (Do not change!)
 $conf["rootpath"] = substr(dirname(__FILE__),0,-4);
-$conf["fs_div"] = "/"; // File system divider, "\\" on windows and "/"" on linux and unix
+$conf["fs_div"] = "/"; // File system separator (divider), "\\" on Windows and "/"" on Linux and UNIX
 $conf["classpath"] = $conf["rootpath"].$conf["fs_div"]."lib".$conf["fs_div"]."classes";
 $conf["temppath"] = $conf["rootpath"].$conf["fs_div"]."temp";
 
@@ -101,7 +101,16 @@
 
 
 //** Interface
-define('ISPC_INTERFACE_MODULES_ENABLED', 'mail,sites,dns,tools');
+$conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools';
+
+//** Demo mode
+/* The demo mode is an option to restrict certain actions in the interface like 
+*  changing the password of users with sys_userid < 3 etc. to be 
+*  able to run the ISPConfig interface as online demo. It does not
+*  affect the server part. The demo mode should be always set to false
+*  on every normal installation
+*/
+$conf['demo_mode'] = false;
 
 
 //** Logging
@@ -138,4 +147,4 @@
 define("LOGLEVEL_WARN",1);
 define("LOGLEVEL_ERROR",2);
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1