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

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

Fix bug on administration page (text)

  • Property svn:eol-style set to LF
File size: 2.5 KB
Line 
1<?php
2/* $Id: main.inc.php,v 1.15 2009/06/26 14:42:03 Criss Exp $ */
3/*
4 Plugin Name: Comment Editor
5 Version: 1.0.i
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-26 1.0.i
15                    Fix bug on administration page (text)
16
17  2009-06-26 1.0.i
18                    Display edit block on picture page if request comes
19                    from this page
20                    Add simple administration configuration management
21                    Add and remove default configuration from database
22                    on plugin install / uninstall
23
24  2009-06-22 1.0.g
25                    Deactivate anti-flood on update
26                    Adviser can edit only its comments
27                    Language file converted in UTF-8
28                    Add home link in edit and message block title bar
29
30  2009-06-22 1.0.f
31                    Add edit link for author even if he's not an admin
32                    Code cleanup
33
34  2009-06-18 1.0.e
35                    Check existence of function update_user_comment()
36
37  2009-06-18 1.0.d
38                    Improve sanity checking
39
40  2009-06-18 1.0.c
41                    Add maintain.inc.php file
42                    Fix bug in CE_Comment::validateAuthor()
43
44  2009-06-18 1.0.b
45                    Fix plugin URI to be available in plugin update
46                    check page.
47                    Reduce code line size.
48
49*/
50if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
51
52define('CE_VERSION',  '1.0.i');
53define('CE_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
54define('CE_ROOT',     dirname(__FILE__).'/');
55include_once(CE_PATH . 'include/ce_common.inc.php');
56
57$ce_config = new CE_Config($ce_config_default);
58$ce_plugin = new CE_Plugin($plugin['id'], $ce_config);
59
60add_event_handler('get_admin_plugin_menu_links',
61                  array(&$ce_plugin, 'get_admin_plugin_menu_links'));
62add_event_handler('render_comment_content',
63                  array(&$ce_plugin, 'render_comment_content'));
64add_event_handler('loc_begin_page_header',
65                  array(&$ce_plugin, 'loc_begin_page_header'));
66switch (script_basename()) {
67  case 'index':
68    add_event_handler('loc_begin_index',
69                      array(&$ce_plugin, 'loc_begin_index'), 1);
70    break;
71  case 'picture':
72    add_event_handler('loc_begin_picture',
73                      array(&$ce_plugin, 'loc_begin_picture'), 1);
74    break;
75  default:
76}
77set_plugin_data($plugin['id'], $ce_plugin);
78
79?>
Note: See TracBrowser for help on using the repository browser.