source: extensions/CommentEditor/trunk/main.inc.php @ 31810

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

Move current code to trunk

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