source: extensions/UserAdvManager/trunk/main.inc.php @ 10678

Revision 10678, 2.0 KB checked in by Eric, 8 years ago (diff)

bug 2287 fixed : stuffs_module directory is missing in tags merged from branch 2.20 (I don't know why !!)

New version 2.20.5 hard coded for publication

  • Property svn:eol-style set to LF
Line 
1<?php
2/*
3Plugin Name: UserAdvManager
4Version: 2.20.5
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_PATH')) define('UAM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
20
21global $conf;
22
23include_once (UAM_PATH.'include/constants.php');
24include_once (UAM_PATH.'include/functions.inc.php');
25
26load_language('plugin.lang', UAM_PATH);
27$conf_UAM = unserialize($conf['UserAdvManager']);
28
29
30// Plugin administration panel
31add_event_handler('get_admin_plugin_menu_links', 'UAM_admin_menu');
32
33/* Lastvisit table feed for Ghost Tracker */
34add_event_handler('loc_begin_index', 'UAM_GhostTracker');
35
36// User creation
37add_event_handler('register_user', 'UAM_Adduser');
38
39// User deletion
40add_event_handler('delete_user', 'UAM_Deluser');
41
42// Check users registration
43add_event_handler('register_user_check', 'UAM_RegistrationCheck', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
44
45if (script_basename() == 'profile')
46{
47  add_event_handler('loc_begin_profile', 'UAM_Profile_Init');
48}
49
50// Redirection to profile page
51add_event_handler('login_success', 'UAM_LoginTasks');
52
53// Adding customized text to lost password email
54add_event_handler('render_lost_password_mail_content', 'UAM_lost_password_mail_content');
55
56// *** Important ! This is necessary to make email exclusion work in admin's users management panel ***
57add_event_handler('init', 'UAM_InitPage');
58
59// Comment without author
60add_event_handler('user_comment_check', 'UAM_CheckEmptyCommentAuthor', 50, 2);
61
62// PWG_Stuffs module
63if ((isset($conf_UAM[34]) and $conf_UAM[34] == 'true'))
64{
65  add_event_handler('get_stuffs_modules', 'register_UAM_stuffs_module');
66}
67?>
Note: See TracBrowser for help on using the repository browser.