Ignore:
Timestamp:
Jan 8, 2013, 12:32:56 AM (12 years ago)
Author:
julien1311
Message:

[piwecard] various improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Piwecard/main.inc.php

    r19956 r19968  
    55 * Description: envoi de Cartes Virtuelles
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=487
    7  * Author: Tiico
    8  * Author URI:
     7 * Author: Tiico & Julien1311
    98 * */
    10 /********* Fichier main.inc.php  *********/
    11 
    12 /* See CHANGELOG for release informations */
    139 
    1410if (!defined('PHPWG_ROOT_PATH'))  die('Hacking attempt!');
     
    1814define('ECARD_VERSION', '1.1.0');
    1915
    20 define('ECARD_NAME', 'Piwecard');
    2116define('ECARD_ROOT', dirname(__FILE__));
    22 define('ECARD_DIR' , basename(dirname(__FILE__)));
    23 define('ECARD_CFG_DB' , ECARD_DIR);
    24 define('ECARD_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/');
    25 define('ECARD_INC_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/include/');
    26 define('ECARD_IMG_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/img/');
    27 define('ECARD_ADMIN_PATH' , PHPWG_PLUGINS_PATH . ECARD_DIR . '/admin/');
    28 define('ECARD_TABLE' , $prefixeTable . 'piwecard');
     17define('ECARD_DIR', basename(dirname(__FILE__)));
     18define('ECARD_PATH', PHPWG_PLUGINS_PATH.ECARD_DIR.'/');
     19define('ECARD_INC_PATH', PHPWG_PLUGINS_PATH . ECARD_DIR . '/include/');
     20define('ECARD_INSTALL_PATH', PHPWG_PLUGINS_PATH . ECARD_DIR . '/install/');
     21define('ECARD_TABLE', $prefixeTable . 'piwecard');
    2922define('ECARD_ADMIN',   get_root_url() . 'admin.php?page=plugin-'.ECARD_DIR);
    3023
    3124load_language('plugin.lang', ECARD_PATH);
    3225
    33 include_once ECARD_INC_PATH.'ecard.class.php';
    34 include_once( PHPWG_ROOT_PATH.'include/functions_mail.inc.php' );
    35 include_once( PHPWG_ROOT_PATH.'include/functions_picture.inc.php' );
     26include_once(ECARD_INC_PATH.'piwecard.class.php');
     27include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
     28include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
    3629global $page, $template;
    3730
     
    3932load_language('plugin.lang', ECARD_PATH);       
    4033
    41 $ecard = new ecard();
     34$ecard = new Piwecard();
    4235
    4336// Add ecard to picture page
Note: See TracChangeset for help on using the changeset viewer.