[3743] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Contact Form |
---|
[3753] | 4 | Version: 1.0.4 |
---|
[3743] | 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 | |
---|
[3753] | 13 | 2009-08-18 1.0.4 |
---|
| 14 | Update configuration pages |
---|
| 15 | |
---|
[3749] | 16 | 2009-08-18 1.0.3 |
---|
| 17 | Add configuration option to define menu link or not |
---|
| 18 | |
---|
[3748] | 19 | 2009-08-18 1.0.2 |
---|
| 20 | Add configuration option to define template variable or not |
---|
| 21 | |
---|
[3746] | 22 | 2009-08-17 1.0.1 |
---|
| 23 | Add default value to language translation |
---|
| 24 | |
---|
[3743] | 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 | */ |
---|
| 48 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 49 | |
---|
| 50 | define('CF_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
| 51 | define('CF_ROOT', dirname(__FILE__).'/'); |
---|
| 52 | include_once(CF_PATH . 'include/cf_common.inc.php'); |
---|
| 53 | |
---|
| 54 | $cf_plugin = new CF_Plugin($plugin['id']); |
---|
| 55 | add_event_handler('loc_begin_page_tail', |
---|
| 56 | array(&$cf_plugin, 'loc_begin_page_header')); |
---|
| 57 | add_event_handler('blockmanager_apply', |
---|
| 58 | array(&$cf_plugin, 'blockmanager_apply')); |
---|
| 59 | add_event_handler('loc_end_index', |
---|
| 60 | array(&$cf_plugin, 'loc_end_index')); |
---|
| 61 | add_event_handler('loc_end_page_tail', |
---|
| 62 | array(&$cf_plugin, 'loc_end_page_tail')); |
---|
| 63 | if(defined('IN_ADMIN')) { |
---|
| 64 | add_event_handler('get_admin_plugin_menu_links', |
---|
| 65 | array(&$cf_plugin, 'get_admin_plugin_menu_links')); |
---|
| 66 | } |
---|
| 67 | set_plugin_data($plugin['id'], $cf_plugin); |
---|
| 68 | ?> |
---|