[3742] | 1 | <?php |
---|
| 2 | /* |
---|
[5181] | 3 | Plugin Name: UserAdvManager |
---|
[9288] | 4 | Version: 2.20.0-RC |
---|
[4957] | 5 | Description: Renforcer la gestion des utilisateurs - Enforce users management |
---|
[9295] | 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_DIR')) define('UAM_DIR' , basename(dirname(__FILE__))); |
---|
| 20 | if (!defined('UAM_PATH')) define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
[3742] | 21 | |
---|
[5181] | 22 | include_once (UAM_PATH.'include/constants.php'); |
---|
| 23 | include_once (UAM_PATH.'include/functions.inc.php'); |
---|
[3742] | 24 | |
---|
[5181] | 25 | load_language('plugin.lang', UAM_PATH); |
---|
[3858] | 26 | |
---|
| 27 | |
---|
[7955] | 28 | // Plugin administration panel |
---|
[5056] | 29 | add_event_handler('get_admin_plugin_menu_links', 'UAM_admin_menu'); |
---|
[3742] | 30 | |
---|
[4927] | 31 | /* Lastvisit table feed for Ghost Tracker */ |
---|
[5056] | 32 | add_event_handler('loc_begin_index', 'UAM_GhostTracker'); |
---|
[3742] | 33 | |
---|
[7955] | 34 | // User creation |
---|
[5056] | 35 | add_event_handler('register_user', 'UAM_Adduser'); |
---|
[3742] | 36 | |
---|
[7955] | 37 | // User deletion |
---|
[5056] | 38 | add_event_handler('delete_user', 'UAM_Deluser'); |
---|
[3742] | 39 | |
---|
[6990] | 40 | // Check users registration |
---|
[5056] | 41 | add_event_handler('register_user_check', 'UAM_RegistrationCheck', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); |
---|
[3742] | 42 | |
---|
[4124] | 43 | if (script_basename() == 'profile') |
---|
| 44 | { |
---|
[5056] | 45 | add_event_handler('loc_begin_profile', 'UAM_Profile_Init'); |
---|
[3742] | 46 | } |
---|
| 47 | |
---|
[7955] | 48 | // Redirection to profile page |
---|
[8065] | 49 | add_event_handler('login_success', 'UAM_LoginTasks'); |
---|
[6775] | 50 | |
---|
[9135] | 51 | // Adding customized text to lost password email |
---|
| 52 | add_event_handler('render_lost_password_mail_content', 'UAM_lost_password_mail_content'); |
---|
[8065] | 53 | |
---|
[7955] | 54 | // *** Important ! This is necessary to make email exclusion work in admin's users management panel *** |
---|
[5056] | 55 | add_event_handler('init', 'UAM_InitPage'); |
---|
[4124] | 56 | |
---|
[7955] | 57 | // Comment without author |
---|
[5056] | 58 | add_event_handler('user_comment_check', 'UAM_CheckEmptyCommentAuthor', 50, 2); |
---|
[3742] | 59 | ?> |
---|