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

Last change on this file since 9855 was 9855, checked in by Eric, 13 years ago

Renaming SVN directory for UserAdvManager

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