Ignore:
Timestamp:
Dec 12, 2010, 4:01:06 PM (14 years ago)
Author:
Eric
Message:
  • Bug 2054 fixed - Add of customized email notification to validated users when admins validate them manually
  • Bug 2056 fixed - Automated tasks are available to delete or downgrade ghost users with or without email notification
  • Database upgrade process improved for new features
  • Language files update (step1)
File:
1 edited

Legend:

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

    r8072 r8092  
    118118
    119119    $_POST['UAM_GTAutoMailText'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_GTAutoMailText'])));
     120   
     121    $_POST['UAM_AdminValidationMail_Text'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_AdminValidationMail_Text'])));
    120122
    121123    //Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them
     
    160162      $_POST['UAM_RedirToProfile'],
    161163      $_POST['UAM_GTAuto'],
    162       $_POST['UAM_GTAutoDel'],
    163164      $_POST['UAM_GTAutoMail'],
    164165      $_POST['UAM_GTAutoDelText'],
    165166      $_POST['UAM_GTAutoMailText'],
    166167      (isset($_POST['UAM_Downgrade_Group'])?$_POST['UAM_Downgrade_Group']:''),
    167       (isset($_POST['UAM_Downgrade_Status'])?$_POST['UAM_Downgrade_Status']:''));
     168      (isset($_POST['UAM_Downgrade_Status'])?$_POST['UAM_Downgrade_Status']:''),
     169      $_POST['UAM_AdminValidationMail_Text']
     170      );
    168171
    169172    $conf['UserAdvManager'] = serialize($newconf_UAM);
     
    252255                }
    253256    //configuration value for downgrade users
    254     if (isset($conf_UAM[27]) and $conf_UAM[27] == $row['id'])
     257    if (isset($conf_UAM[26]) and $conf_UAM[26] == $row['id'])
    255258                {
    256259                $Downgrade = $row['id'];
     
    331334  {
    332335          $status_options[$status] = l10n('user_status_'.$status);
    333           if (isset($conf_UAM[28]) and $conf_UAM[28] == $status)
     336          if (isset($conf_UAM[27]) and $conf_UAM[27] == $status)
    334337                {
    335338                  $Downgrade_Status = $status;
     
    395398    'UAM_GTAUTO_TRUE'                => $conf_UAM[22]=='true' ?  'checked="checked"' : '' ,
    396399    'UAM_GTAUTO_FALSE'               => $conf_UAM[22]=='false' ?  'checked="checked"' : '' ,
    397     'UAM_GTAUTODEL_TRUE'             => $conf_UAM[23]=='true' ?  'checked="checked"' : '' ,
    398     'UAM_GTAUTODEL_FALSE'            => $conf_UAM[23]=='false' ?  'checked="checked"' : '' ,
    399     'UAM_GTAUTOMAIL_TRUE'            => $conf_UAM[24]=='true' ?  'checked="checked"' : '' ,
    400     'UAM_GTAUTOMAIL_FALSE'           => $conf_UAM[24]=='false' ?  'checked="checked"' : '' ,
    401     'UAM_GTAUTODEL_TEXT'             => $conf_UAM[25],
    402     'UAM_GTAUTOMAILTEXT'             => $conf_UAM[26],
    403                 'UAM_Downgrade_Group'            => $conf_UAM[27],
    404                 'UAM_Downgrade_Status'           => $conf_UAM[28],
     400    'UAM_GTAUTOMAIL_TRUE'            => $conf_UAM[23]=='true' ?  'checked="checked"' : '' ,
     401    'UAM_GTAUTOMAIL_FALSE'           => $conf_UAM[23]=='false' ?  'checked="checked"' : '' ,
     402    'UAM_GTAUTODEL_TEXT'             => $conf_UAM[24],
     403    'UAM_GTAUTOMAILTEXT'             => $conf_UAM[25],
     404                'UAM_Downgrade_Group'            => $conf_UAM[26],
     405                'UAM_Downgrade_Status'           => $conf_UAM[27],
     406    'UAM_ADMINVALIDATIONMAIL_TEXT'   => $conf_UAM[28],
    405407                'UAM_PASSWORD_TEST_SCORE'        => $UAM_Password_Test_Score,
    406408    'UAM_ERROR_REPORTS4'             => $UAM_Exclusionlist_Error,
     
    966968        {
    967969          ForceValidation($user_id);
     970          validation_mail($user_id);
    968971        }
    969972        array_push(
Note: See TracChangeset for help on using the changeset viewer.