- bug 173 fixed: due to phpBB user identifiers management, the method to

find the next user identifier has changer to MAX+1.

- improvement: information message when new user added

- bug fixed: language item "Username" used instead of "login".


git-svn-id: http://piwigo.org/svn/trunk@906 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2005-10-22 09:53:12 +00:00
commit 11615fcba6
6 changed files with 41 additions and 10 deletions

View file

@ -188,6 +188,17 @@ $page['filtered_users'] = get_filtered_user_list();
if (isset($_POST['submit_add']))
{
$page['errors'] = register_user($_POST['login'], $_POST['password'], '');
if (count($page['errors']) == 0)
{
array_push(
$page['infos'],
sprintf(
l10n('user "%s" added'),
$_POST['login']
)
);
}
}
// +-----------------------------------------------------------------------+
@ -409,7 +420,6 @@ $template->assign_vars(
'L_GROUP_ADD_USER' => $lang['group_add_user'],
'L_SUBMIT'=>$lang['submit'],
'L_STATUS'=>$lang['user_status'],
'L_USERNAME' => $lang['login'],
'L_PASSWORD' => $lang['password'],
'L_EMAIL' => $lang['mail_address'],
'L_ORDER_BY' => $lang['order_by'],