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