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
RevLine 
[3426]1<?php
[3434]2/* $Id: main.inc.php,v 1.6 2009/06/18 21:02:12 Criss Exp $ */
[3426]3/*
4 Plugin Name: Comment Editor
[3434]5 Version: 1.0.d
[3426]6 Description: Allow to edit comment
[3431]7 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=296
[3426]8 Author: Criss
9 Author URI: http://piwigo.org/
10*/
11
[3431]12/** History **
13
[3434]14    2009-06-18 1.0.d
15                        Improve sanity checking
16
[3433]17    2009-06-18 1.0.c
18                        Add maintain.inc.php file
19                        Fix bug in CE_Comment::validateAuthor()
20
[3431]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*/
[3426]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();
[3431]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);
[3426]39
40set_plugin_data($plugin['id'], $ce_plugin);
41
42?>
Note: See TracBrowser for help on using the repository browser.