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

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

Fix bug on plugin update

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