source: extensions/NBC_UserAdvManager/trunk/main.inc.php @ 9458

Last change on this file since 9458 was 9295, checked in by Eric, 14 years ago

Add of new usage tips for association with Additional Pages plugin

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