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

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

Fix another bug on plugin update...

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