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
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
[3486]5 Version: 1.0.o
[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
14  2009-06-30 1.0.o
15                    Langue IT
16
[3482]17  2009-06-30 1.0.n
18                    Fix another bug on plugin update...
19
[3481]20  2009-06-30 1.0.m
21                    Fix another bug on plugin update...
22
[3476]23  2009-06-30 1.0.l
24                    Fix bug on plugin update
25
[3475]26  2009-06-30 1.0.k
27                    Add toolbar trigger for edit template
28
[3473]29  2009-06-29 1.0.j
30                    Add obsolete files management
31                    Add italian language (thanks to Rio)
[3431]32
[3465]33  2009-06-26 1.0.i
34                    Fix bug on administration page (text)
35
[3475]36  2009-06-26 1.0.h
37                    Display edit block on picture page if request comes from
38                    this page
[3462]39                    Add simple administration configuration management
[3475]40                    Add and remove default configuration from database on
41                    plugin install / uninstall
[3443]42
[3462]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
[3439]48
[3462]49  2009-06-22 1.0.f
50                    Add edit link for author even if he's not an admin
51                    Code cleanup
[3436]52
[3462]53  2009-06-18 1.0.e
54                    Check existence of function update_user_comment()
[3434]55
[3462]56  2009-06-18 1.0.d
57                    Improve sanity checking
[3433]58
[3462]59  2009-06-18 1.0.c
60                    Add maintain.inc.php file
61                    Fix bug in CE_Comment::validateAuthor()
[3431]62
[3462]63  2009-06-18 1.0.b
[3475]64                    Fix plugin URI to be available in plugin update check page.
[3462]65                    Reduce code line size.
66
[3431]67*/
[3426]68if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
69
[3462]70define('CE_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
71define('CE_ROOT',     dirname(__FILE__).'/');
[3426]72include_once(CE_PATH . 'include/ce_common.inc.php');
73
[3462]74$ce_config = new CE_Config($ce_config_default);
75$ce_plugin = new CE_Plugin($plugin['id'], $ce_config);
[3426]76
[3462]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}
[3426]94set_plugin_data($plugin['id'], $ce_plugin);
95
96?>
Note: See TracBrowser for help on using the repository browser.