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

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

Update configuration pages

File size: 2.0 KB
Line 
1<?php
2/*
3 Plugin Name: Contact Form
4 Version: 1.0.4
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-18 1.0.4
14                    Update configuration pages
15
16  2009-08-18 1.0.3
17                    Add configuration option to define menu link or not
18
19  2009-08-18 1.0.2
20                    Add configuration option to define template variable or not
21
22  2009-08-17 1.0.1
23                    Add default value to language translation
24
25  2009-08-17 1.0.0
26                    Put under SVN control
27
28  2009-08-17 0.1.f
29                    Add obsolete list
30
31  2009-08-17 0.1.e
32                    Add language configuration for items texts
33                    Add template variable
34
35  2009-08-14 0.1.d
36                    Add a redirection page when successfully sent message
37
38  2009-08-13 0.1.c
39                    Fix regexp bug in mail format check in javascript
40
41  2009-08-13 0.1.b
42                    Add admin management
43
44  2009-08-13 0.1.a
45                    Plugin creation
46
47*/
48if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
49
50define('CF_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
51define('CF_ROOT',     dirname(__FILE__).'/');
52include_once(CF_PATH . 'include/cf_common.inc.php');
53
54$cf_plugin = new CF_Plugin($plugin['id']);
55add_event_handler('loc_begin_page_tail',             
56                  array(&$cf_plugin, 'loc_begin_page_header'));
57add_event_handler('blockmanager_apply',             
58                  array(&$cf_plugin, 'blockmanager_apply'));
59add_event_handler('loc_end_index',             
60                  array(&$cf_plugin, 'loc_end_index'));
61add_event_handler('loc_end_page_tail',
62                  array(&$cf_plugin, 'loc_end_page_tail'));
63if(defined('IN_ADMIN')) {
64  add_event_handler('get_admin_plugin_menu_links',
65                    array(&$cf_plugin, 'get_admin_plugin_menu_links'));
66}
67set_plugin_data($plugin['id'], $cf_plugin);
68?>
Note: See TracBrowser for help on using the repository browser.