Ignore:
Timestamp:
Mar 26, 2011, 5:01:30 PM (13 years ago)
Author:
Eric
Message:

Piwigo 2.2 compliance
Renaming of plugin directory from nbc_HistoryIPExcluder to HistoryIPExcluder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/nbc_HistoryIPExcluder/trunk/main.inc.php

    r6760 r9870  
    22/*
    33Plugin Name: History IP Excluder
    4 Version: 2.1.1
     4Version: 2.2.0
    55Description: 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!
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=147
     
    2424                  - Bug 1511 fixed - New function to blacklist excluded IPs or ranged IPs for registration
    2525
     262.2.0             - Compliance with Piwigo 2.2.x
     27                  - Plugin directory renamed from nbc_HistoryIPExcluder to HistoryIPExcluder
     28
    2629--------------------------------------------------------------------------------
    2730*/
     
    2932if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    3033
    31 if (!defined('HIPE_DIR')) define('HIPE_DIR' , basename(dirname(__FILE__)));
    3234if (!defined('HIPE_PATH')) define('HIPE_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
    3335
     
    3638load_language('plugin.lang', HIPE_PATH);
    3739
    38 add_event_handler('pwg_log_allowed', 'HIPE_IP_Filtrer');
    3940add_event_handler('get_admin_plugin_menu_links', 'HIPE_admin_menu');
    4041
     
    5152    array(
    5253      '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)
    5455    )
    5556  );
     
    5859}
    5960
     61// IP exclusion from logs
     62add_event_handler('pwg_log_allowed', 'HIPE_IP_Filtrer');
    6063
    6164function HIPE_IP_Filtrer($do_log)
Note: See TracChangeset for help on using the changeset viewer.