Changeset 1490


Ignore:
Timestamp:
Jul 21, 2006, 5:30:13 PM (18 years ago)
Author:
nikrou
Message:

bug 482 fixed: deletion of our account must be impossible
svn merge from trunk into branch 1.6

Location:
branches/branch-1_6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/admin/user_list.php

    r1463 r1490  
    251251// |                             delete users                              |
    252252// +-----------------------------------------------------------------------+
    253 
    254253if (isset($_POST['delete']) and count($collection) > 0)
    255254{
     
    257256  {
    258257    array_push($page['errors'], l10n('Webmaster cannot be deleted'));
     258  }
     259  elseif (in_array($user['id'], $collection))
     260  {
     261    array_push($page['errors'], l10n('You cannot delete your account'));
    259262  }
    260263  else
  • branches/branch-1_6/language/en_UK.iso-8859-1/admin.lang.php

    r1453 r1490  
    178178$lang['You are running on development sources, no check possible.'] = 'You are running on development sources, no check possible.';
    179179$lang['You are running the latest version of PhpWebGallery.'] = 'You are running the latest version of PhpWebGallery.';
     180$lang['You cannot delete your account'] = "You cannot delete your account";
    180181$lang['You cannot move a category in its own sub category'] = 'You cannot move a category in its own sub category';
    181182$lang['You need to confirm deletion'] = 'You need to confirm deletion';
  • branches/branch-1_6/language/fr_FR.iso-8859-1/admin.lang.php

    r1460 r1490  
    178178$lang['You are running on development sources, no check possible.'] = 'Vous travaillez avec les sources de développement, impossible de vérifier la dernière version.';
    179179$lang['You are running the latest version of PhpWebGallery.'] = 'Vous utilisez la dernière version de PhpWebGallery.';
     180$lang['You cannot delete your account'] = "Vous ne pouvez pas supprimer votre compte";
    180181$lang['You cannot move a category in its own sub category'] = 'Vous ne pouvez pas déplacer une catégorie dans sa propre sous-catégorie';
    181182$lang['You need to confirm deletion'] = 'Vous devez confirmer la suppression';
Note: See TracChangeset for help on using the changeset viewer.