source: extensions/Piwecard/main.inc.php @ 13316

Last change on this file since 13316 was 10629, checked in by tiico, 14 years ago

Changelog + version

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1<?php
2/*
3 * Plugin Name: Piwecard
4 * Version: 1.1.0
5 * Description: envoi de Cartes Virtuelles
6 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=487
7 * Author: Tiico
8 * Author URI:
9 * */
10/********* Fichier main.inc.php  *********/
11
12/* See CHANGELOG for release informations */
13 
14if (!defined('PHPWG_ROOT_PATH'))  die('Hacking attempt!');
15
16global $prefixeTable;
17
18define('ECARD_VERSION', '1.1.0');
19
20define('ECARD_NAME', 'Piwecard');
21define('ECARD_ROOT', dirname(__FILE__));
22define('ECARD_DIR' , basename(dirname(__FILE__)));
23define('ECARD_CFG_DB' , ECARD_DIR);
24define('ECARD_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/');
25define('ECARD_INC_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/include/');
26define('ECARD_IMG_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/img/');
27define('ECARD_ADMIN_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/admin/');
28
29define('ECARD_TABLE' , $prefixeTable . 'ecard');
30
31load_language('plugin.lang', ECARD_PATH);
32
33include_once ECARD_INC_PATH.'ecard.class.php';
34include_once( PHPWG_ROOT_PATH.'include/functions_mail.inc.php' );
35include_once( PHPWG_ROOT_PATH.'include/functions_picture.inc.php' );
36global $page, $template;
37
38
39$ecard = new ecard();
40
41// Add ecard to picture page
42add_event_handler('loc_end_picture', array(&$ecard, 'display_ecard_to_picture')); 
43// Add admin page
44add_event_handler('get_admin_plugin_menu_links', array(&$ecard, 'ecard_admin_menu') );
45
46add_event_handler('loc_end_section_init', array(&$ecard, 'section_init_ecard'));
47add_event_handler('loc_end_index', array(&$ecard, 'index_ecard'));
48
49
50set_plugin_data($plugin['id'], $ecard)
51
52?>
Note: See TracBrowser for help on using the repository browser.