Ignore:
Timestamp:
Dec 23, 2010, 11:24:37 PM (13 years ago)
Author:
Eric
Message:

bug 2066 second step fix :

  • Add option to enable / disable email send
  • Email function integration in userlist table
  • LCAS_SendMail function coded (not tested)

Database init updated
Translation files updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/admin/LCAS_admin.php

    r8257 r8271  
    2929$version = $plugin['version'];
    3030
    31         if (isset($_POST['submit']) and !is_adviser() and isset($_POST['LCAS_Case_Sensitive']) and isset($_POST['LCAS_Accent_Sensitive']) )
     31        if (isset($_POST['submit']) and !is_adviser() and isset($_POST['LCAS_Case_Sensitive']) and isset($_POST['LCAS_Accent_Sensitive']) and isset($_POST['LCAS_Mail']))
    3232  {
    3333
     
    3838      $_POST['LCAS_Case_Sensitive'],
    3939      $_POST['LCAS_Accent_Sensitive'],
     40      $_POST['LCAS_Mail'],
    4041      $_POST['LCAS_MailText']);
    4142
     
    8990
    9091                                pwg_query($query);
    91                
     92
     93      if (isset($conf_LCAS[2]) and $conf_LCAS[2] = 'true')
     94      {
     95        LCAS_SendMail($lcas_UserToUpdate, $_POST['user-'.$lcas_UserToUpdate]);
     96      }
     97
    9298                                array_push($page['infos'], l10n('LCAS_Info_userlist_username_renamed'));
    9399        }
     
    97103        }
    98104    }
    99 
    100105
    101106
     
    166171
    167172
     173// +-----------------------------------------------------------------------+
     174// |                           templates init                              |
     175// +-----------------------------------------------------------------------+
    168176  $template->assign(
    169177    array(
    170     'LCAS_VERSION'                   => $version,
    171     'LCAS_PATH'                      => LCAS_PATH,
    172     'PWG_insensitive_case_logon'     => $conf['insensitive_case_logon']? 'true'              : 'false',
    173                 'LCAS_Case_Sensitive_TRUE'       => $conf_LCAS[0]=='true'          ? 'checked="checked"' : '' ,
    174                 'LCAS_Case_Sensitive_FALSE'      => $conf_LCAS[0]=='false'         ? 'checked="checked"' : '' ,
    175                 'LCAS_Accent_Sensitive_TRUE'     => $conf_LCAS[1]=='true'          ? 'checked="checked"' : '' ,
    176                 'LCAS_Accent_Sensitive_FALSE'    => $conf_LCAS[1]=='false'         ? 'checked="checked"' : '' ,
    177     'LCAS_MAILTEXT'                  => $conf_LCAS[2]
     178    'LCAS_VERSION'                  => $version,
     179    'LCAS_PATH'                     => LCAS_PATH,
     180    'PWG_insensitive_case_logon'    => $conf['insensitive_case_logon']? 'true'              : 'false',
     181                'LCAS_Case_Sensitive_TRUE'      => $conf_LCAS[0]=='true'          ? 'checked="checked"' : '' ,
     182                'LCAS_Case_Sensitive_FALSE'     => $conf_LCAS[0]=='false'         ? 'checked="checked"' : '' ,
     183                'LCAS_Accent_Sensitive_TRUE'    => $conf_LCAS[1]=='true'          ? 'checked="checked"' : '' ,
     184                'LCAS_Accent_Sensitive_FALSE'   => $conf_LCAS[1]=='false'         ? 'checked="checked"' : '' ,
     185                'LCAS_MAIL_TRUE'                => $conf_LCAS[2]=='true'          ? 'checked="checked"' : '' ,
     186                'LCAS_MAIL_FALSE'               => $conf_LCAS[2]=='false'         ? 'checked="checked"' : '' ,
     187    'LCAS_MAILTEXT'                 => $conf_LCAS[3]
    178188    )
    179189  );
Note: See TracChangeset for help on using the changeset viewer.