Changeset 9326 for extensions/LCAS/trunk/admin/LCAS_admin.php
- Timestamp:
- Feb 20, 2011, 3:40:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/admin/LCAS_admin.php
r9230 r9326 23 23 $error = array(); 24 24 25 $t = pwg_db_fetch_row(pwg_query(' 25 /* Not useful */ 26 /*$t = pwg_db_fetch_row(pwg_query(' 26 27 SELECT `value` 27 28 FROM `'.CONFIG_TABLE.'` … … 30 31 ')); 31 32 32 $conf['LoginCaseAccentsSensitivity'] = $t[0]; 33 $conf['LoginCaseAccentsSensitivity'] = $t[0];*/ 33 34 34 35 // +-----------------------------------------------------------------------+ … … 44 45 $_POST['LCAS_MailText'] = str_replace('\"', '"', str_replace("\'", "'", str_replace("\\\\", "\\", $_POST['LCAS_MailText']))); 45 46 46 // LCAS configuration is now hereby defined :47 // $conf_LCAS[0] : spare // quite lazy, but convenient to not have to48 // 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.52 47 $newconf_LCAS= array( 53 '', // quite lazy, but convenient to not have to54 // decrease index of each option everywhere :-/ ...55 48 $_POST['LCAS_Option'], 56 49 $_POST['LCAS_Mail'], … … 73 66 $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']); 74 67 75 if (isset($conf_LCAS[ 1]))68 if (isset($conf_LCAS[0])) 76 69 { 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'); 79 72 80 73 if ($case_ins or $acc_ins) … … 103 96 pwg_query($query); 104 97 105 if (isset($conf_LCAS[ 2]) and $conf_LCAS[2]= 'true')98 if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 106 99 { 107 100 LCAS_SendMail($lcas_UserToUpdate, $_POST['user-'.$lcas_UserToUpdate]); … … 121 114 // +-----------------------------------------------------------------------+ 122 115 123 $page['all_users'] = LCAS_get_user_list($conf_LCAS[ 1]);116 $page['all_users'] = LCAS_get_user_list($conf_LCAS[0]); 124 117 125 118 // +-----------------------------------------------------------------------+ … … 162 155 'LCAS_VERSION' => $version, 163 156 '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] 169 161 ) 170 162 );
Note: See TracChangeset
for help on using the changeset viewer.