diff --git a/lam/templates/masscreate.php b/lam/templates/masscreate.php index 3c2a6b2b..d8973256 100644 --- a/lam/templates/masscreate.php +++ b/lam/templates/masscreate.php @@ -19,26 +19,21 @@ $Id$ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - LDAP Account Manager displays table for creating or modifying accounts in LDAP */ -// include all needed files -include_once('../lib/account.inc'); // File with all account-funtions -include_once('../lib/config.inc'); // File with configure-functions -include_once('../lib/profiles.inc'); // functions to load and save profiles -include_once('../lib/status.inc'); // Return error-message -include_once('../lib/pdf.inc'); // Return a pdf-file -include_once('../lib/ldap.inc'); // LDAP-functions - -/* We have to include all modules -* before start session -* *** fixme I would prefer loading them dynamic but -* i don't know how to to this +/** +* Start page of file upload +* +* @author Roland Gruber +* @package tools */ -$dir = opendir('../lib/modules'); -while ($entry = readdir($dir)) - if (is_file('../lib/modules/'.$entry)) include_once ('../lib/modules/'.$entry); + +/** access to configuration */ +include_once('../lib/config.inc'); +/** status messages */ +include_once('../lib/status.inc'); +/** account modules */ +include_once('../lib/modules.inc'); // Start session session_save_path('../sess'); @@ -53,561 +48,175 @@ if (!isset($_SESSION['loggedIn'])) { // Set correct language, codepages, .... setlanguage(); -if (!isset($_SESSION['cache'])) { - $_SESSION['cache'] = new cache(); - } - -/* Save current time in $time. We need $time to check out how -* long masscreate.php is running. To avoid max. execution time -* set in php.ini masscreate.php will create a redirect to -* itself. -*/ -$time=time(); -/* Startcondition massdetail.php was called from outside or -* from masscreate.php itself via meta refresh -*/ -if (count($_POST)==0) { - // Register new account_container - $_SESSION['account'] = new accountContainer('user', 'account'); - // load profile - - // Find out list of attribtues which must be set put not allready covered by profile - - // Print first HTML-Page - echo $_SESSION['header']; - echo "