Changeset 10978 for extensions/HistoryIPExcluder
- Timestamp:
- May 21, 2011, 4:54:45 PM (14 years ago)
- Location:
- extensions/HistoryIPExcluder/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/HistoryIPExcluder/trunk/admin/HIPE_admin.php
r6758 r10978 42 42 'Version' => $version, 43 43 ); 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))); 53 46 54 47 // information message -
extensions/HistoryIPExcluder/trunk/include/dbupgrade.inc.php
r10045 r10978 3 3 /* Database upgrading functions */ 4 4 5 // This wil update only current plugin version number in database5 // This will update only current plugin version number in database 6 6 function global_version_update() 7 7 { … … 25 25 26 26 $Newconf_HIPE['Version'] = $version; 27 28 $update_conf = serialize($Newconf_HIPE);29 27 30 $query = ' 31 UPDATE '.CONFIG_TABLE.' 32 SET value="'.addslashes($update_conf).'" 33 WHERE param="HistoryIPConfig" 34 LIMIT 1 35 ;'; 36 37 pwg_query($query); 28 conf_update_param('HistoryIPConfig', pwg_db_real_escape_string(serialize($Newconf_HIPE))); 38 29 } 39 30 … … 71 62 $q = ' 72 63 INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 73 VALUES ("HistoryIPConfig","'. addslashes(serialize($default)).'","History IP Excluder options");64 VALUES ("HistoryIPConfig","'.pwg_db_real_escape_string(serialize($default)).'","History IP Excluder options"); 74 65 '; 75 66 -
extensions/HistoryIPExcluder/trunk/main.inc.php
r10045 r10978 32 32 33 33 2.2.3 - Improved update mechanism. When no structural update of database is necessary, it sets the correct version number in plugin's configuration 34 35 34 -------------------------------------------------------------------------------- 36 35 */ -
extensions/HistoryIPExcluder/trunk/maintain.inc.php
r10045 r10978 49 49 $q = ' 50 50 INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 51 VALUES ("HistoryIPConfig","'. addslashes(serialize($default)).'","History IP Excluder options");51 VALUES ("HistoryIPConfig","'.pwg_db_real_escape_string(serialize($default)).'","History IP Excluder options"); 52 52 '; 53 53 pwg_query($q);
Note: See TracChangeset
for help on using the changeset viewer.