Changeset 9870 for extensions/nbc_HistoryIPExcluder/trunk/main.inc.php
- Timestamp:
- Mar 26, 2011, 5:01:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/nbc_HistoryIPExcluder/trunk/main.inc.php
r6760 r9870 2 2 /* 3 3 Plugin Name: History IP Excluder 4 Version: 2. 1.14 Version: 2.2.0 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 … … 24 24 - Bug 1511 fixed - New function to blacklist excluded IPs or ranged IPs for registration 25 25 26 2.2.0 - Compliance with Piwigo 2.2.x 27 - Plugin directory renamed from nbc_HistoryIPExcluder to HistoryIPExcluder 28 26 29 -------------------------------------------------------------------------------- 27 30 */ … … 29 32 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 30 33 31 if (!defined('HIPE_DIR')) define('HIPE_DIR' , basename(dirname(__FILE__)));32 34 if (!defined('HIPE_PATH')) define('HIPE_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 33 35 … … 36 38 load_language('plugin.lang', HIPE_PATH); 37 39 38 add_event_handler('pwg_log_allowed', 'HIPE_IP_Filtrer');39 40 add_event_handler('get_admin_plugin_menu_links', 'HIPE_admin_menu'); 40 41 … … 51 52 array( 52 53 'NAME' => $name, 53 'URL' => get_ admin_plugin_menu_link(HIPE_PATH.'admin/HIPE_admin.php')54 'URL' => get_root_url().'admin.php?page=plugin-'.basename(HIPE_PATH) 54 55 ) 55 56 ); … … 58 59 } 59 60 61 // IP exclusion from logs 62 add_event_handler('pwg_log_allowed', 'HIPE_IP_Filtrer'); 60 63 61 64 function HIPE_IP_Filtrer($do_log)
Note: See TracChangeset
for help on using the changeset viewer.