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

Last change on this file since 31999 was 30744, checked in by Eric, 9 years ago

Help files refactory : Split help.lang.php into files per section and tabs
Done for fr_FR, EN_UK and DA_DK

  • Property svn:eol-style set to LF
File size: 2.7 KB
Line 
1<?php
2/*
3Plugin Name: UserAdvManager
4Version: auto
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);
27load_language('help_config1.lang', UAM_PATH);
28load_language('help_config2.lang', UAM_PATH);
29load_language('help_config3.lang', UAM_PATH);
30load_language('help_config4.lang', UAM_PATH);
31load_language('help_tabs.lang', UAM_PATH);
32load_language('help_bkp.lang', UAM_PATH);
33$conf_UAM = unserialize($conf['UserAdvManager']);
34
35
36// Plugin administration panel
37// ---------------------------
38add_event_handler('get_admin_plugin_menu_links', 'UAM_admin_menu');
39
40// Features and controls on user connexion
41// ---------------------------------------
42add_event_handler('loc_begin_index', 'UAM_Init');
43
44// User creation
45// -------------
46add_event_handler('register_user', 'UAM_Adduser');
47
48// User deletion
49// -------------
50add_event_handler('delete_user', 'UAM_Deluser');
51
52// Check users registration
53// ------------------------
54add_event_handler('register_user_check', 'UAM_RegistrationCheck', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
55
56if (script_basename() == 'profile')
57{
58  add_event_handler('loc_begin_profile', 'UAM_Profile_Init');
59}
60
61// Redirection to profile page
62// ---------------------------
63add_event_handler('login_success', 'UAM_LoginTasks',EVENT_HANDLER_PRIORITY_NEUTRAL, 1);
64
65// Adding customized text to lost password email
66// ---------------------------------------------
67add_event_handler('render_lost_password_mail_content', 'UAM_lost_password_mail_content');
68
69// *** Important ! This is necessary to make email exclusion work in admin's users management panel ***
70// ----------------------------------------------------------------------------------------------------
71add_event_handler('init', 'UAM_InitPage');
72
73
74// PWG_Stuffs module
75// -----------------
76if (isset($conf_UAM['STUFFS']) and $conf_UAM['STUFFS'] == 'true')
77{
78  add_event_handler('get_stuffs_modules', 'register_UAM_stuffs_module');
79}
80
81
82// Check options compatibility between UAM and Piwigo at admin page load
83// ---------------------------------------------------------------------
84add_event_handler('loc_begin_admin_page', 'UAM_check_compat');
85?>
Note: See TracBrowser for help on using the repository browser.