source: extensions/Password_Policy/main.inc.php @ 30780

Last change on this file since 30780 was 27179, checked in by Eric, 11 years ago

Piwigo 2.6 compatibility:
Users management (users display, password renewal and unlocking accounts) recoded in plugin's admin panel

File size: 1.4 KB
Line 
1<?php
2/*
3Plugin Name: Password Policy
4Version: auto
5Description: Renforcer la sécurité des mots de passe - Enforce password security
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=718
7Author: Eric
8Author URI: http://www.infernoweb.net
9*/
10
11/* History:  PP_PATH.'Changelog.txt.php' */
12
13if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
14if (!defined('PP_PATH')) define('PP_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
15
16global $conf;
17
18include_once (PP_PATH.'include/functions.inc.php');
19
20load_language('plugin.lang', PP_PATH);
21
22$conf_PP = unserialize($conf['PasswordPolicy']);
23
24
25// Plugin administration panel
26// ---------------------------
27add_event_handler('get_admin_plugin_menu_links', 'PP_admin_menu');
28
29// Display messages on index page
30// ------------------------------
31add_event_handler('init', 'PP_InitPage');
32
33// Features and controls on user connexion
34// ---------------------------------------
35add_event_handler('loc_begin_index', 'PP_Init');
36
37// Check users registration
38// ------------------------
39add_event_handler('register_user_check', 'PP_RegistrationCheck', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
40
41if (script_basename() == 'profile')
42{
43  add_event_handler('loc_begin_profile', 'PP_Profile_Init');
44}
45
46// Security option : Count of login failure and lock account after x attempt
47// -------------------------------------------------------------------------
48add_event_handler('login_failure', 'PP_log_fail');
49
50?>
Note: See TracBrowser for help on using the repository browser.