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

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

Fix another bug on plugin update...

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