Ignore:
Timestamp:
Dec 1, 2013, 11:01:27 PM (10 years ago)
Author:
LucMorizur
Message:

Compatibility with Piwigo version 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/branch/2.2/admin/LCAS_admin.php

    r10549 r25774  
    2222
    2323load_language('plugin.lang', LCAS_PATH);
    24 load_language('help/plugin.lang', LCAS_PATH);
     24load_language('help.lang', LCAS_PATH);
    2525
    2626$error = array();
     
    4646    $_POST['LCAS_MailText']);
    4747
    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)));
    5849
    5950  array_push($page['infos'], l10n('LCAS_save_config'));
     
    123114          $query = '
    124115            UPDATE '.USERS_TABLE.'
    125             SET username="'.addslashes($_POST['user-'.$lcas_UserToUpdate]).'"
     116            SET username="'.pwg_db_real_escape_string($_POST['user-'.$lcas_UserToUpdate]).'"
    126117            WHERE id='.$lcas_UserToUpdate.'
    127118            LIMIT 1
     
    180171          'USERNAME'    => stripslashes($local_user['username']),
    181172          'COMPARE'     => stripslashes($local_user['transformed']),
    182           'EMAIL'       =>
    183            get_email_address_as_display_text($local_user['email']),
     173          'EMAIL'       => $local_user['email'],
    184174          'DISPLAY'     => $display,
    185175        )
Note: See TracChangeset for help on using the changeset viewer.