diff --git a/admin/newaccount.php b/admin/newaccount.php index bcd09d1a6e..ed22573932 100755 --- a/admin/newaccount.php +++ b/admin/newaccount.php @@ -92,13 +92,6 @@ $account_expires = -1; } - /* - if (preg_match ("/\D/", $account_file_space_number)) - { - $error[$totalerrors++] = lang ('File space must be an integer'); - } - */ - if (! $error) { $phpgw->db->lock(array( @@ -118,7 +111,6 @@ 'account_lastname' => $account_lastname, 'account_status' => $account_status, 'account_expires' => $account_expires - /* 'account_file_space' => $account_file_space_number . "-" . $account_file_space_type */ ); $phpgw->accounts->create($account_info); @@ -186,7 +178,7 @@ $phpgw->common->hook_single('add_def_pref','admin'); while ($apps = each($apps_after)) { - if ($apps[0] != 'admin') + if (strcasecmp ($apps[0], 'admin') != 0) { $phpgw->common->hook_single('add_def_pref', $apps[1]); } @@ -314,32 +306,6 @@ $p->set_var('groups_select',$groups_select); /* end groups list */ - /* - if (!$account_file_space_number) - { - $account_file_space_number = $phpgw_info['server']['vfs_default_account_size_number']; - } - if (!$account_file_space_type) - { - $account_file_space_type = $phpgw_info['server']['vfs_default_account_size_type']; - } - $account_file_space_type_selected[$account_file_space_type] = "selected"; - - $account_file_space = ' - '; - $account_file_space_select =''; - - $p->set_var ('lang_file_space', "File space"); - $p->set_var ('account_file_space', $account_file_space); - $p->set_var ('account_file_space_select', $account_file_space_select); - */ - $i = 0; $phpgw->applications->read_installed_apps(); $sorted_apps = $phpgw_info['apps'];