source: extensions/Comments_Access_Manager/main.inc.php @ 11017

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

Initial release 2.2.0

  • Property svn:eol-style set to LF
File size: 807 bytes
Line 
1<?php
2/*
3Plugin Name: Comments Access Manager
4Version: 2.2.0
5Description: Gérer l'accès aux commentaites - Manage comments access
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
7Author: Eric
8Author URI: http://www.infernoweb.net
9*/
10
11/* History:  CM_PATH.'Changelog.txt' */
12
13if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
14if (!defined('CM_PATH')) define('CM_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
15
16global $conf;
17
18include_once (CM_PATH.'include/functions.inc.php');
19
20load_language('plugin.lang', CM_PATH);
21$conf_CM = unserialize($conf['CommentsManager']);
22
23
24// Plugin administration panel
25add_event_handler('get_admin_plugin_menu_links', 'CM_admin_menu');
26
27// Comments authorisation check
28add_event_handler('user_comment_check', 'CM_CheckCommentAuthor', 50, 2);
29?>
Note: See TracBrowser for help on using the repository browser.