From e909e5cd519d8ecdf0f8bade6b0f8e64bce9bfd4 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 16 Jun 2007 11:50:25 +0000 Subject: [PATCH] changed main page loading --- lam/templates/login.php | 3 ++- lam/templates/main.php | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lam/templates/login.php b/lam/templates/login.php index 9598cb6f..4f724994 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -397,7 +397,8 @@ if(!empty($_POST['checklogin'])) // logging logNewMessage(LOG_NOTICE, 'User ' . $_POST['username'] . ' successfully logged in.'); // Load main frame - include("./main.php"); + metaRefresh("./main.php"); + die(); } else { diff --git a/lam/templates/main.php b/lam/templates/main.php index ff9a6899..662f28c8 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -30,6 +30,13 @@ $Id$ /** LDAP attibute cache */ include_once('../lib/cache.inc'); +/** config object */ +include_once('../lib/config.inc'); + +// start session +startSecureSession(); + +setlanguage(); // create cache object if (!isset($_SESSION['cache'])) {