source: extensions/ContactForm/main.inc.php @ 3743

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

Put under SVN control
Add obsolete list
Add language configuration for items texts
Add template variable

File size: 1.7 KB
Line 
1<?php
2/*
3 Plugin Name: Contact Form
4 Version: 1.0.0
5 Description: Add a "Contact" item in the Menu block to offer a contact form to users
6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=304
7 Author: Criss
8 Author URI: http://piwigo.org/
9*/
10
11/** History **
12
13  2009-08-17 1.0.0
14                    Put under SVN control
15
16  2009-08-17 0.1.f
17                    Add obsolete list
18
19  2009-08-17 0.1.e
20                    Add language configuration for items texts
21                    Add template variable
22
23  2009-08-14 0.1.d
24                    Add a redirection page when successfully sent message
25
26  2009-08-13 0.1.c
27                    Fix regexp bug in mail format check in javascript
28
29  2009-08-13 0.1.b
30                    Add admin management
31
32  2009-08-13 0.1.a
33                    Plugin creation
34
35*/
36if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
37
38define('CF_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
39define('CF_ROOT',     dirname(__FILE__).'/');
40include_once(CF_PATH . 'include/cf_common.inc.php');
41
42$cf_plugin = new CF_Plugin($plugin['id']);
43add_event_handler('loc_begin_page_tail',             
44                  array(&$cf_plugin, 'loc_begin_page_header'));
45add_event_handler('blockmanager_apply',             
46                  array(&$cf_plugin, 'blockmanager_apply'));
47add_event_handler('loc_end_index',             
48                  array(&$cf_plugin, 'loc_end_index'));
49add_event_handler('loc_end_page_tail',
50                  array(&$cf_plugin, 'loc_end_page_tail'));
51if(defined('IN_ADMIN')) {
52  add_event_handler('get_admin_plugin_menu_links',
53                    array(&$cf_plugin, 'get_admin_plugin_menu_links'));
54}
55set_plugin_data($plugin['id'], $cf_plugin);
56?>
Note: See TracBrowser for help on using the repository browser.