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

Last change on this file since 9623 was 9342, checked in by tiico, 14 years ago

Version 1.0.4 :

  • Correct warning when option "active on user cats" is active
  • Add default mail for Guest eCard (in admin)

RU, IT, DE, LV language need to be updated

  • Property svn:eol-style set to native
File size: 1.5 KB
RevLine 
[8770]1<?php
2/*
3 * Plugin Name: Piwecard
[9342]4 * Version: 1.0.4
[8771]5 * Description: envoi de Cartes Virtuelles
[8773]6 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=487
[8770]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
[9342]18define('ECARD_VERSION', '1.0.4');
[8770]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.