Ignore:
Timestamp:
Aug 14, 2010, 12:28:53 AM (14 years ago)
Author:
Eric
Message:
  • Bug 1656 fixed: New ability to manually validate new registers
  • Language files updated - Some DE, ES and IT translation are missing
File:
1 edited

Legend:

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

    r6753 r6754  
    2828$UAM_Password_Test_Score = 0;
    2929$UAM_Exclusionlist_Error = false;
    30 
    3130
    3231// +-----------------------------------------------------------------------+
     
    119118      $UAM_Exclusionlist_Error = true;
    120119    }
    121                
     120
    122121                $newconf_UAM = array(
    123122      $_POST['UAM_Mail_Info'],
     
    154153                pwg_query($query);
    155154
    156 
    157155/* Email confirmation settings */
    158156    $_POST['UAM_ConfirmMail_ReMail_Txt1'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_ReMail_Txt1'])));
     
    163161   
    164162    $_POST['UAM_ConfirmMail_Custom_Txt2'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['UAM_ConfirmMail_Custom_Txt2'])));
    165 
    166 
     163   
    167164          $newconf_UAM_ConfirmMail = array (
    168165      $_POST['UAM_ConfirmMail_TimeOut'],
     
    310307                'UAM_CONFIRM_MAIL_TRUE'          => $conf_UAM[1]=='true' ?  'checked="checked"' : '' ,
    311308                'UAM_CONFIRM_MAIL_FALSE'         => $conf_UAM[1]=='false' ?  'checked="checked"' : '' ,
     309    'UAM_CONFIRM_MAIL_LOCAL'         => $conf_UAM[1]=='local' ?  'checked="checked"' : '' ,
    312310                'UAM_CONFIRMMAIL_TEXT'           => $conf_UAM[10],
    313311                'UAM_No_Confirm_Group'           => $conf_UAM[2],
     
    626624  $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);
    627625       
    628   if (isset($conf_UAM[1]) and $conf_UAM[1]=='true' and ((isset($conf_UAM[2]) and $conf_UAM[2] <> '-1') or (isset($conf_UAM[8]) and $conf_UAM[8] <> '-1')))
    629   {
     626  if (isset($conf_UAM[1]) and ($conf_UAM[1]=='true' or $conf_UAM[1]=='local') and ((isset($conf_UAM[2]) and $conf_UAM[2] <> '-1') or (isset($conf_UAM[8]) and $conf_UAM[8] <> '-1')))
     627  {   
    630628// +-----------------------------------------------------------------------+
    631629// |                           initialization                              |
     
    11121110
    11131111                        $expiration = expiration($local_user['id']);
    1114 
     1112     
    11151113                $template->append(
    11161114                'users',
     
    11351133                                )
    11361134                        );
    1137                 }
     1135                }   
     1136
     1137    // Check if validation of register is made by admin or visitor
     1138    // If visitor, $Confirm_Local is used to mask useless buttons
     1139    $Confirm_Local = "";
     1140   
     1141    if ($conf_UAM[1] == 'local')
     1142    {
     1143      $Confirm_Local = $conf_UAM[1];
     1144    }
     1145    else
     1146    {
     1147      $Confirm_Local = "";
     1148    }
     1149   
    11381150    /* Plugin version inserted */
    11391151    $template->assign(
    11401152      array(
     1153        'CONFIRM_LOCAL'=> $Confirm_Local,
    11411154        'UAM_VERSION'  => $version,
    11421155        'UAM_PATH'     => UAM_PATH,
Note: See TracChangeset for help on using the changeset viewer.