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 | |
---|
12 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
13 | |
---|
14 | define('CE_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
15 | define('CE_ROOT', dirname(__FILE__).'/'); |
---|
16 | include_once(CE_PATH . 'include/ce_common.inc.php'); |
---|
17 | |
---|
18 | |
---|
19 | $ce_plugin = new CE_Plugin(); |
---|
20 | add_event_handler('loc_begin_page_header', array(&$ce_plugin, 'loc_begin_page_header')); |
---|
21 | add_event_handler('loc_begin_index', array(&$ce_plugin, 'loc_end_index'), 1); |
---|
22 | |
---|
23 | set_plugin_data($plugin['id'], $ce_plugin); |
---|
24 | |
---|
25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.