Ignore:
Timestamp:
Feb 20, 2011, 3:40:42 PM (13 years ago)
Author:
Eric
Message:
  • Bug 2066 fixed : There was a bug still remaining in the notification feature.
  • Tablesorter JQuery script updated
  • Initial config updated
  • Refactory of LCAS options vars ($conf_LCAS[x]) : We start now with offset 0 instead of 1
File:
1 edited

Legend:

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

    r9230 r9326  
    2323$error = array();
    2424
    25 $t = pwg_db_fetch_row(pwg_query('
     25/* Not useful */
     26  /*$t = pwg_db_fetch_row(pwg_query('
    2627  SELECT `value`
    2728  FROM `'.CONFIG_TABLE.'`
     
    3031'));
    3132
    32 $conf['LoginCaseAccentsSensitivity'] = $t[0];
     33$conf['LoginCaseAccentsSensitivity'] = $t[0];*/
    3334
    3435// +-----------------------------------------------------------------------+
     
    4445                $_POST['LCAS_MailText'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['LCAS_MailText'])));
    4546   
    46                 // LCAS configuration is now hereby defined :
    47     // $conf_LCAS[0] : spare // quite lazy, but convenient to not have to
    48       // decrease index of each option below everywhere :-/ ...
    49     // $conf_LCAS[1] : LCAS option, describe the choice of the webmaster;
    50     // $conf_LCAS[2] : LCAS_Mail;
    51     // $conf_LCAS[3] : LCAS_MailText.
    5247    $newconf_LCAS= array(
    53       '', // quite lazy, but convenient to not have to
    54       // decrease index of each option everywhere :-/ ...
    5548      $_POST['LCAS_Option'],
    5649      $_POST['LCAS_Mail'],
     
    7366        $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']);
    7467 
    75   if (isset($conf_LCAS[1]))
     68  if (isset($conf_LCAS[0]))
    7669  {
    77     $case_ins = ($conf_LCAS[1] == '1' or $conf_LCAS[1] == '3');
    78     $acc_ins = ($conf_LCAS[1] == '2' or $conf_LCAS[1] == '3');
     70    $case_ins = ($conf_LCAS[0] == '1' or $conf_LCAS[0] == '3');
     71    $acc_ins = ($conf_LCAS[0] == '2' or $conf_LCAS[0] == '3');
    7972
    8073    if ($case_ins or $acc_ins)
     
    10396          pwg_query($query);
    10497
    105         if (isset($conf_LCAS[2]) and $conf_LCAS[2] = 'true')
     98        if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true')
    10699        {
    107100          LCAS_SendMail($lcas_UserToUpdate, $_POST['user-'.$lcas_UserToUpdate]);
     
    121114// +-----------------------------------------------------------------------+
    122115
    123       $page['all_users'] = LCAS_get_user_list($conf_LCAS[1]);
     116      $page['all_users'] = LCAS_get_user_list($conf_LCAS[0]);
    124117
    125118// +-----------------------------------------------------------------------+
     
    162155    'LCAS_VERSION'                  => $version,
    163156    'LCAS_PATH'                     => LCAS_PATH,
    164     'Personalized_not_allowed'      => (!isset($conf['LCAS_replacement_set'][0])),
    165                 'LCAS_Option'                   => $conf_LCAS[1],
    166                 'LCAS_MAIL_TRUE'                => $conf_LCAS[2] == 'true'  ? 'checked = "checked"' : '' ,
    167                 'LCAS_MAIL_FALSE'               => $conf_LCAS[2] == 'false' ? 'checked = "checked"' : '' ,
    168     'LCAS_MAILTEXT'                 => $conf_LCAS[3]
     157                'LCAS_Option'                   => $conf_LCAS[0],
     158                'LCAS_MAIL_TRUE'                => $conf_LCAS[1] == 'true'  ? 'checked = "checked"' : '' ,
     159                'LCAS_MAIL_FALSE'               => $conf_LCAS[1] == 'false' ? 'checked = "checked"' : '' ,
     160    'LCAS_MAILTEXT'                 => $conf_LCAS[2]
    169161    )
    170162  );
Note: See TracChangeset for help on using the changeset viewer.