[3742] | 1 | <?php |
---|
| 2 | /* |
---|
[5181] | 3 | Plugin Name: UserAdvManager |
---|
[11319] | 4 | Version: 2.20.11 |
---|
[4957] | 5 | Description: Renforcer la gestion des utilisateurs - Enforce users management |
---|
[9296] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 |
---|
[3742] | 7 | Author: Nicco, Eric |
---|
| 8 | Author URI: http://gallery-nicco.no-ip.org, http://www.infernoweb.net |
---|
| 9 | */ |
---|
| 10 | |
---|
[5181] | 11 | /* History: UAM_PATH.'Changelog.txt.php' */ |
---|
[3742] | 12 | |
---|
| 13 | /* |
---|
| 14 | ***** TODO List ***** |
---|
[6783] | 15 | See project bugtracker: http://piwigo.org/bugs/my_view_page.php |
---|
[3742] | 16 | */ |
---|
| 17 | |
---|
[4927] | 18 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
[5181] | 19 | if (!defined('UAM_PATH')) define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
[3742] | 20 | |
---|
[9909] | 21 | global $conf; |
---|
| 22 | |
---|
[5181] | 23 | include_once (UAM_PATH.'include/constants.php'); |
---|
| 24 | include_once (UAM_PATH.'include/functions.inc.php'); |
---|
[3742] | 25 | |
---|
[5181] | 26 | load_language('plugin.lang', UAM_PATH); |
---|
[9909] | 27 | $conf_UAM = unserialize($conf['UserAdvManager']); |
---|
[3858] | 28 | |
---|
| 29 | |
---|
[7955] | 30 | // Plugin administration panel |
---|
[5056] | 31 | add_event_handler('get_admin_plugin_menu_links', 'UAM_admin_menu'); |
---|
[3742] | 32 | |
---|
[4927] | 33 | /* Lastvisit table feed for Ghost Tracker */ |
---|
[5056] | 34 | add_event_handler('loc_begin_index', 'UAM_GhostTracker'); |
---|
[3742] | 35 | |
---|
[7955] | 36 | // User creation |
---|
[5056] | 37 | add_event_handler('register_user', 'UAM_Adduser'); |
---|
[3742] | 38 | |
---|
[7955] | 39 | // User deletion |
---|
[5056] | 40 | add_event_handler('delete_user', 'UAM_Deluser'); |
---|
[3742] | 41 | |
---|
[6990] | 42 | // Check users registration |
---|
[5056] | 43 | add_event_handler('register_user_check', 'UAM_RegistrationCheck', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); |
---|
[3742] | 44 | |
---|
[4124] | 45 | if (script_basename() == 'profile') |
---|
| 46 | { |
---|
[5056] | 47 | add_event_handler('loc_begin_profile', 'UAM_Profile_Init'); |
---|
[3742] | 48 | } |
---|
| 49 | |
---|
[7955] | 50 | // Redirection to profile page |
---|
[8065] | 51 | add_event_handler('login_success', 'UAM_LoginTasks'); |
---|
[6775] | 52 | |
---|
[9136] | 53 | // Adding customized text to lost password email |
---|
| 54 | add_event_handler('render_lost_password_mail_content', 'UAM_lost_password_mail_content'); |
---|
[8065] | 55 | |
---|
[7955] | 56 | // *** Important ! This is necessary to make email exclusion work in admin's users management panel *** |
---|
[5056] | 57 | add_event_handler('init', 'UAM_InitPage'); |
---|
[4124] | 58 | |
---|
[9909] | 59 | // PWG_Stuffs module |
---|
[11019] | 60 | if ((isset($conf_UAM[33]) and $conf_UAM[33] == 'true')) |
---|
[9909] | 61 | { |
---|
| 62 | add_event_handler('get_stuffs_modules', 'register_UAM_stuffs_module'); |
---|
| 63 | } |
---|
[3742] | 64 | ?> |
---|