Changeset 9882
- Timestamp:
- Mar 26, 2011, 6:39:10 PM (14 years ago)
- Location:
- extensions/HistoryIPExcluder/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/HistoryIPExcluder/trunk/main.inc.php
r9870 r9882 2 2 /* 3 3 Plugin Name: History IP Excluder 4 Version: 2.2. 04 Version: 2.2.1 5 5 Description: Permet l'exclusion d'une IP ou d'une plage d'IP de l'historique et de les blacklister à l'inscription - Base MySql seulement! / Excludes one IP or a range of IP from the history and to blacklist them on registration - MySql database only! 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=147 … … 26 26 2.2.0 - Compliance with Piwigo 2.2.x 27 27 - Plugin directory renamed from nbc_HistoryIPExcluder to HistoryIPExcluder 28 29 2.2.1 - Bug fixed on plugin upgrade from 2.1.x version 28 30 29 31 -------------------------------------------------------------------------------- -
extensions/HistoryIPExcluder/trunk/maintain.inc.php
r9881 r9882 97 97 upgrade_211(); 98 98 } 99 100 /* upgrade from version 2.2.0 to 2.2.1 */ 101 /* *********************************** */ 102 $HIPE_Config = unserialize($conf['HistoryIPConfig']); 103 if ($HIPE_Config['Version'] != '2.2.1') 104 { 105 upgrade_220(); 106 } 99 107 } 100 108 … … 190 198 ;'; 191 199 192 pwg_query($query); 200 pwg_query($query); 193 201 194 202 // Create new HIPE entry in plugins table … … 215 223 } 216 224 } 225 226 227 function upgrade_220() 228 { 229 global $conf; 230 231 // Update plugin version 232 $query = ' 233 SELECT value 234 FROM '.CONFIG_TABLE.' 235 WHERE param = "HistoryIPConfig" 236 ;'; 237 $result = pwg_query($query); 238 239 $conf_HIPE = pwg_db_fetch_assoc($result); 240 241 $Newconf_HIPE = unserialize($conf_HIPE['value']); 242 243 $Newconf_HIPE['Version'] = '2.2.1'; 244 245 $update_conf = serialize($Newconf_HIPE); 246 247 $query = ' 248 UPDATE '.CONFIG_TABLE.' 249 SET value="'.addslashes($update_conf).'" 250 WHERE param="HistoryIPConfig" 251 LIMIT 1 252 ;'; 253 254 pwg_query($query); 255 } 217 256 ?>
Note: See TracChangeset
for help on using the changeset viewer.