diff --git a/lam/templates/masscreate.php b/lam/templates/masscreate.php index d8973256..f8e130f2 100644 --- a/lam/templates/masscreate.php +++ b/lam/templates/masscreate.php @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) - Copyright (C) 2003 Tilo Lutz + Copyright (C) 2004 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -35,6 +35,7 @@ include_once('../lib/status.inc'); /** account modules */ include_once('../lib/modules.inc'); + // Start session session_save_path('../sess'); @session_start(); @@ -43,7 +44,7 @@ session_save_path('../sess'); if (!isset($_SESSION['loggedIn'])) { metaRefresh("login.php"); exit; - } +} // Set correct language, codepages, .... setlanguage(); @@ -55,9 +56,9 @@ echo "\n"; echo "
\n"; // check if account specific page should be shown -if ($_POST['user']) showMainPage('user'); -elseif ($_POST['group']) showMainPage('group'); -elseif ($_POST['host']) showMainPage('host'); +if (isset($_POST['user'])) showMainPage('user'); +elseif (isset($_POST['group'])) showMainPage('group'); +elseif (isset($_POST['host'])) showMainPage('host'); // show start page else { echo "