source: extensions/CommentEditor/main.inc.php @ 3434

Last change on this file since 3434 was 3434, checked in by Criss, 15 years ago

Improve sanity checking

  • Property svn:eol-style set to LF
File size: 1.2 KB
Line 
1<?php
2/* $Id: main.inc.php,v 1.6 2009/06/18 21:02:12 Criss Exp $ */
3/*
4 Plugin Name: Comment Editor
5 Version: 1.0.d
6 Description: Allow to edit comment
7 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=296
8 Author: Criss
9 Author URI: http://piwigo.org/
10*/
11
12/** History **
13
14    2009-06-18 1.0.d
15                        Improve sanity checking
16
17    2009-06-18 1.0.c
18                        Add maintain.inc.php file
19                        Fix bug in CE_Comment::validateAuthor()
20
21    2009-06-18 1.0.b
22                        Fix plugin URI to be available in plugin update
23                        check page.
24                        Reduce code line size.
25
26*/
27if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
28
29define('CE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
30define('CE_ROOT', dirname(__FILE__).'/');
31include_once(CE_PATH . 'include/ce_common.inc.php');
32
33
34$ce_plugin = new CE_Plugin();
35add_event_handler(  'loc_begin_page_header',
36                    array(&$ce_plugin, 'loc_begin_page_header'));
37add_event_handler(  'loc_begin_index',
38                    array(&$ce_plugin, 'loc_end_index'), 1);
39
40set_plugin_data($plugin['id'], $ce_plugin);
41
42?>
Note: See TracBrowser for help on using the repository browser.