Changeset 25774 for extensions/LCAS/branch/2.2/admin/LCAS_admin.php
- Timestamp:
- Dec 1, 2013, 11:01:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/branch/2.2/admin/LCAS_admin.php
r10549 r25774 22 22 23 23 load_language('plugin.lang', LCAS_PATH); 24 load_language('help /plugin.lang', LCAS_PATH);24 load_language('help.lang', LCAS_PATH); 25 25 26 26 $error = array(); … … 46 46 $_POST['LCAS_MailText']); 47 47 48 $conf['LoginCaseAccentsSensitivity'] = serialize($newconf_LCAS); 49 50 $query = ' 51 UPDATE '.CONFIG_TABLE.' 52 SET value="'.addslashes($conf['LoginCaseAccentsSensitivity']).'" 53 WHERE param="LoginCaseAccentsSensitivity" 54 LIMIT 1 55 ;'; 56 57 pwg_query($query); 48 conf_update_param('LoginCaseAccentsSensitivity', pwg_db_real_escape_string(serialize($newconf_LCAS))); 58 49 59 50 array_push($page['infos'], l10n('LCAS_save_config')); … … 123 114 $query = ' 124 115 UPDATE '.USERS_TABLE.' 125 SET username="'. addslashes($_POST['user-'.$lcas_UserToUpdate]).'"116 SET username="'.pwg_db_real_escape_string($_POST['user-'.$lcas_UserToUpdate]).'" 126 117 WHERE id='.$lcas_UserToUpdate.' 127 118 LIMIT 1 … … 180 171 'USERNAME' => stripslashes($local_user['username']), 181 172 'COMPARE' => stripslashes($local_user['transformed']), 182 'EMAIL' => 183 get_email_address_as_display_text($local_user['email']), 173 'EMAIL' => $local_user['email'], 184 174 'DISPLAY' => $display, 185 175 )
Note: See TracChangeset
for help on using the changeset viewer.