aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.php b/index.php
index 96e8583d6..52ea58374 100644
--- a/index.php
+++ b/index.php
@@ -15,7 +15,9 @@ require_once("dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
unset($db_host, $db_user, $db_pass, $db_data);
-require_once("session.php");
+if(! $install)
+ require_once("session.php");
+
require_once("datetime.php");
date_default_timezone_set(($default_timezone) ? $default_timezone : 'UTC');
@@ -101,7 +103,8 @@ $a->page['content'] .= $debug_text;
// build page
// Navigation (menu) template
-require_once("nav.php");
+if($a->module != 'install')
+ require_once("nav.php");
$page = $a->page;
$profile = $a->profile;