Ignore:
Timestamp:
May 21, 2011, 4:54:45 PM (13 years ago)
Author:
Eric
Message:

using conf_update_param() and pwg_db_real_escape_string()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/HistoryIPExcluder/trunk/admin/HIPE_admin.php

    r6758 r10978  
    4242    'Version'   => $version,
    4343  );
    44  
    45   $conf['HistoryIPConfig'] = serialize($newconf_HIPE);
    46 
    47   $query = '
    48     UPDATE '.CONFIG_TABLE.'
    49     SET value="'.addslashes($conf['HistoryIPConfig']).'"
    50     WHERE param="HistoryIPConfig"
    51     LIMIT 1';
    52   pwg_query($query);
     44
     45  conf_update_param('HistoryIPConfig', pwg_db_real_escape_string(serialize($newconf_HIPE)));
    5346
    5447  // information message
Note: See TracChangeset for help on using the changeset viewer.