Ignore:
Timestamp:
Jan 22, 2011, 6:14:15 PM (14 years ago)
Author:
Eric
Message:

Set compatibility for Piwigo 2.2-RC
Note : Little display bug remains on Piwigo's left menu due to sortable tables (userlist.tpl, usermanager.tpl and ghosttracker.tpl) when no user is listed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r8092 r8841  
    105105  case 'global':
    106106
    107         if (isset($_POST['submit']) and !is_adviser() and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']))
     107        if (isset($_POST['submit']) and isset($_POST['UAM_Mail_Info']) and isset($_POST['UAM_Username_Char']) and isset($_POST['UAM_Confirm_Mail']) and isset($_POST['UAM_No_Comment_Anonymous']) and isset($_POST['UAM_Password_Enforced']) and isset($_POST['UAM_AdminPassword_Enforced']) and isset($_POST['UAM_GhostUser_Tracker']) and isset($_POST['UAM_Admin_ConfMail']) and isset($_POST['UAM_RedirToProfile']) and isset($_POST['UAM_GTAuto']))
    108108  {
    109109
     
    215215
    216216  //Testing password enforcement
    217   if (isset($_POST['PasswordTest']) and !is_adviser() and isset($_POST['UAM_Password_Test']) and !empty($_POST['UAM_Password_Test']))
     217  if (isset($_POST['PasswordTest']) and isset($_POST['UAM_Password_Test']) and !empty($_POST['UAM_Password_Test']))
    218218  {
    219219    $UAM_Password_Test_Score = testpassword($_POST['UAM_Password_Test']);
    220220  }
    221   else if (isset($_POST['PasswordTest']) and !is_adviser() and empty($_POST['UAM_Password_Test']))
     221  else if (isset($_POST['PasswordTest']) and empty($_POST['UAM_Password_Test']))
    222222  {
    223223    array_push($page['errors'], l10n('reg_err_login3'));
     
    10021002    }
    10031003
    1004     //Hide radio-button if not allow to assign adviser
    1005                 if ($conf['allow_adviser'])
    1006         {
    1007         $template->assign('adviser', true);
    1008         }
    1009 
    10101004// +-----------------------------------------------------------------------+
    10111005// |                               user list                               |
     
    10861080                                  ? '<BR>['.l10n('is_the_default').']' : ''),
    10871081                                  'STATUS' => l10n('user_status_'
    1088                                   .$local_user['status']).(($local_user['adviser'] == 'true')
    1089                                   ? '<BR>['.l10n('adviser').']' : ''),
     1082                                  .$local_user['status']),
    10901083                                        'EMAIL'            => get_email_address_as_display_text($local_user['email']),
    10911084                'GROUPS'           => $groups_string,
     
    13441337    {
    13451338      //Reset is only allowed for admins !
    1346       if (is_admin() and !is_adviser())
     1339      if (is_admin())
    13471340      {
    13481341        $query1 = '
     
    14121405    }
    14131406
    1414     //Hide radio-button if not allow to assign adviser
    1415                 if ($conf['allow_adviser'])
    1416     {
    1417       $template->assign('adviser', true);
    1418         }
    1419 
    14201407// +-----------------------------------------------------------------------+
    14211408// |                               user list                               |
Note: See TracChangeset for help on using the changeset viewer.