source: extensions/CommentEditor/branches/2.0/main.inc.php @ 17178

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

bug 0001146

Fix button name value

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