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

Last change on this file since 3801 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
RevLine 
[3426]1<?php
[3486]2/* $Id: main.inc.php,v 1.22 2009/07/01 20:01:37 Criss Exp $ */
[3426]3/*
4 Plugin Name: Comment Editor
[3801]5 Version: 1.0.p
[3426]6 Description: Allow to edit comment
[3431]7 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=296
[3426]8 Author: Criss
9 Author URI: http://piwigo.org/
10*/
11
[3431]12/** History **
[3486]13
[3801]14  2009-06-30 1.0.p
15                    Fix submit button label (bug 0001146)
16
[3486]17  2009-06-30 1.0.o
18                    Langue IT
19
[3482]20  2009-06-30 1.0.n
21                    Fix another bug on plugin update...
22
[3481]23  2009-06-30 1.0.m
24                    Fix another bug on plugin update...
25
[3476]26  2009-06-30 1.0.l
27                    Fix bug on plugin update
28
[3475]29  2009-06-30 1.0.k
30                    Add toolbar trigger for edit template
31
[3473]32  2009-06-29 1.0.j
33                    Add obsolete files management
34                    Add italian language (thanks to Rio)
[3431]35
[3465]36  2009-06-26 1.0.i
37                    Fix bug on administration page (text)
38
[3475]39  2009-06-26 1.0.h
40                    Display edit block on picture page if request comes from
41                    this page
[3462]42                    Add simple administration configuration management
[3475]43                    Add and remove default configuration from database on
44                    plugin install / uninstall
[3443]45
[3462]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
[3439]51
[3462]52  2009-06-22 1.0.f
53                    Add edit link for author even if he's not an admin
54                    Code cleanup
[3436]55
[3462]56  2009-06-18 1.0.e
57                    Check existence of function update_user_comment()
[3434]58
[3462]59  2009-06-18 1.0.d
60                    Improve sanity checking
[3433]61
[3462]62  2009-06-18 1.0.c
63                    Add maintain.inc.php file
64                    Fix bug in CE_Comment::validateAuthor()
[3431]65
[3462]66  2009-06-18 1.0.b
[3475]67                    Fix plugin URI to be available in plugin update check page.
[3462]68                    Reduce code line size.
69
[3431]70*/
[3426]71if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
72
[3462]73define('CE_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
74define('CE_ROOT',     dirname(__FILE__).'/');
[3426]75include_once(CE_PATH . 'include/ce_common.inc.php');
76
[3462]77$ce_config = new CE_Config($ce_config_default);
78$ce_plugin = new CE_Plugin($plugin['id'], $ce_config);
[3426]79
[3462]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}
[3426]97set_plugin_data($plugin['id'], $ce_plugin);
98
99?>
Note: See TracBrowser for help on using the repository browser.