Changeset 906


Ignore:
Timestamp:
Oct 22, 2005, 11:53:12 AM (19 years ago)
Author:
plg
Message:
  • 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".
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r880 r906  
    189189{
    190190  $page['errors'] = register_user($_POST['login'], $_POST['password'], '');
     191
     192  if (count($page['errors']) == 0)
     193  {
     194    array_push(
     195      $page['infos'],
     196      sprintf(
     197        l10n('user "%s" added'),
     198        $_POST['login']
     199        )
     200      );
     201  }
    191202}
    192203
     
    410421    'L_SUBMIT'=>$lang['submit'],
    411422    'L_STATUS'=>$lang['user_status'],
    412     'L_USERNAME' => $lang['login'],
    413423    'L_PASSWORD' => $lang['password'],
    414424    'L_EMAIL' => $lang['mail_address'],
  • trunk/doc/ChangeLog

    r905 r906  
     12005-10-22 Pierrick LE GALL
     2
     3        * bug 173 fixed: due to phpBB user identifiers management, the
     4        method to find the next user identifier has changer to MAX+1.
     5
     6        * improvement: information message when new user added
     7
     8        * bug fixed: language item "Username" used instead of "login".
     9       
    1102005-10-20 chrisaga
    211
    3         * bug 176 fixed: need a javascript to handle transparent PNG background in IE
    4         (tribute to Bob Osola http://homepage.ntlworld.com/bobosola/index.htm
    5 
    6         * display: fixed another IE childselector bug in Categories Management admin page
    7         and improved display of this page in all browsers too.
     12        * bug 176 fixed: need a javascript to handle transparent PNG
     13        background in IE (tribute to Bob Osola
     14        http://homepage.ntlworld.com/bobosola/index.htm)
     15
     16        * display: fixed another IE childselector bug in Categories
     17        Management admin page and improved display of this page in all
     18        browsers too.
    819
    9202005-10-18 Pierrick LE GALL
  • trunk/include/functions_user.inc.php

    r879 r906  
    7777  if (count($errors) == 0)
    7878  {
     79    // what will be the inserted id ?
     80    $query = '
     81SELECT MAX('.$conf['user_fields']['id'].') + 1
     82  FROM '.USERS_TABLE.'
     83;';
     84    list($next_id) = mysql_fetch_array(pwg_query($query));
     85   
    7986    $insert =
    8087      array(
     88        $conf['user_fields']['id'] => $next_id,
    8189        $conf['user_fields']['username'] => mysql_escape_string($login),
    8290        $conf['user_fields']['password'] => $conf['pass_convert']($password),
     
    8795    mass_inserts(USERS_TABLE, array_keys($insert), array($insert));
    8896   
    89     create_user_infos(mysql_insert_id());
    90   }
    91  
     97    create_user_infos($next_id);
     98  }
     99
    92100  return $errors;
    93101}
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r895 r906  
    355355$lang['update_wrong_dirname_short'] = 'wrong filename';
    356356$lang['upload'] = 'Upload';
     357$lang['user "%s" added'] = 'user "%s" added';
    357358$lang['user_delete'] = 'Delete user';
    358359$lang['user_delete_hint'] = 'Click here to delete this user. Warning! This operation cannot be undone!';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r894 r906  
    353353$lang['update_wrong_dirname_short'] = 'nom de fichier erroné';
    354354$lang['upload'] = 'Ajout';
     355$lang['user "%s" added'] = 'utilisateur "%s" ajouté';
    355356$lang['user_delete'] = 'Supprimer utilisateur';
    356357$lang['user_delete_hint'] = 'Cliquer ici pour supprimer cet utilisateur. Attention :  cette opération ne peut pas être annulée !';
  • trunk/template/yoga/admin/user_list.tpl

    r874 r906  
    99  <fieldset>
    1010    <legend>{lang:Add a user}</legend>
    11     <label>{L_USERNAME} <input type="text" name="login" maxlength="50" size="20" /></label>
     11    <label>{lang:Username} <input type="text" name="login" maxlength="50" size="20" /></label>
    1212    <label>{L_PASSWORD} <input type="text" name="password" /></label>
    1313    <input type="submit" name="submit_add" value="{L_SUBMIT}" />
     
    2828
    2929
    30   <label>{lang:username} <input type="text" name="username" value="{F_USERNAME}" /></label>
     30  <label>{lang:Username} <input type="text" name="username" value="{F_USERNAME}" /></label>
    3131
    3232  <label>
     
    7777  <tr class="throw">
    7878    <th>&nbsp;</th>
    79     <th>{L_USERNAME}</th>
     79    <th>{lang:Username}</th>
    8080    <th>{L_STATUS}</th>
    8181    <th>{L_EMAIL}</th>
Note: See TracChangeset for help on using the changeset viewer.