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

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

bug 0001327

Force a template-extension to bypass user one

File size: 1.2 KB
Line 
1<?php
2/*
3 Plugin Name: Contact Form
4 Version: 1.0.7
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
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13define('CF_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
14define('CF_ROOT',     dirname(__FILE__).'/');
15include_once(CF_PATH . 'include/cf_common.inc.php');
16
17$cf_plugin = new CF_Plugin($plugin['id']);
18add_event_handler('loc_begin_index',             
19                  array(&$cf_plugin, 'loc_begin_index'));
20add_event_handler('loc_begin_page_tail',             
21                  array(&$cf_plugin, 'loc_begin_page_header'));
22add_event_handler('blockmanager_apply',             
23                  array(&$cf_plugin, 'blockmanager_apply'));
24add_event_handler('loc_end_index',             
25                  array(&$cf_plugin, 'loc_end_index'));
26add_event_handler('loc_end_page_tail',
27                  array(&$cf_plugin, 'loc_end_page_tail'));
28if(defined('IN_ADMIN')) {
29  add_event_handler('get_admin_plugin_menu_links',
30                    array(&$cf_plugin, 'get_admin_plugin_menu_links'));
31}
32set_plugin_data($plugin['id'], $cf_plugin);
33?>
Note: See TracBrowser for help on using the repository browser.