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 | */ |
---|
36 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
37 | |
---|
38 | define('CF_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
39 | define('CF_ROOT', dirname(__FILE__).'/'); |
---|
40 | include_once(CF_PATH . 'include/cf_common.inc.php'); |
---|
41 | |
---|
42 | $cf_plugin = new CF_Plugin($plugin['id']); |
---|
43 | add_event_handler('loc_begin_page_tail', |
---|
44 | array(&$cf_plugin, 'loc_begin_page_header')); |
---|
45 | add_event_handler('blockmanager_apply', |
---|
46 | array(&$cf_plugin, 'blockmanager_apply')); |
---|
47 | add_event_handler('loc_end_index', |
---|
48 | array(&$cf_plugin, 'loc_end_index')); |
---|
49 | add_event_handler('loc_end_page_tail', |
---|
50 | array(&$cf_plugin, 'loc_end_page_tail')); |
---|
51 | if(defined('IN_ADMIN')) { |
---|
52 | add_event_handler('get_admin_plugin_menu_links', |
---|
53 | array(&$cf_plugin, 'get_admin_plugin_menu_links')); |
---|
54 | } |
---|
55 | set_plugin_data($plugin['id'], $cf_plugin); |
---|
56 | ?> |
---|