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

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

CommentEditor plugin creation

  • Property svn:eol-style set to LF
File size: 715 bytes
Line 
1<?php
2/* $Id: main.inc.php,v 1.3 2009/06/17 19:08:25 Criss Exp $ */
3/*
4 Plugin Name: Comment Editor
5 Version: 1.0.a
6 Description: Allow to edit comment
7 Plugin URI: http://piwigo.org/
8 Author: Criss
9 Author URI: http://piwigo.org/
10*/
11
12if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
13
14define('CE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
15define('CE_ROOT', dirname(__FILE__).'/');
16include_once(CE_PATH . 'include/ce_common.inc.php');
17
18
19$ce_plugin = new CE_Plugin();
20add_event_handler('loc_begin_page_header',  array(&$ce_plugin, 'loc_begin_page_header'));
21add_event_handler('loc_begin_index',        array(&$ce_plugin, 'loc_end_index'), 1);
22
23set_plugin_data($plugin['id'], $ce_plugin);
24
25?>
Note: See TracBrowser for help on using the repository browser.