Changeset 19968 for extensions/Piwecard/main.inc.php
- Timestamp:
- Jan 8, 2013, 12:32:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/main.inc.php
r19956 r19968 5 5 * Description: envoi de Cartes Virtuelles 6 6 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=487 7 * Author: Tiico 8 * Author URI: 7 * Author: Tiico & Julien1311 9 8 * */ 10 /********* Fichier main.inc.php *********/11 12 /* See CHANGELOG for release informations */13 9 14 10 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 18 14 define('ECARD_VERSION', '1.1.0'); 19 15 20 define('ECARD_NAME', 'Piwecard');21 16 define('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'); 17 define('ECARD_DIR', basename(dirname(__FILE__))); 18 define('ECARD_PATH', PHPWG_PLUGINS_PATH.ECARD_DIR.'/'); 19 define('ECARD_INC_PATH', PHPWG_PLUGINS_PATH . ECARD_DIR . '/include/'); 20 define('ECARD_INSTALL_PATH', PHPWG_PLUGINS_PATH . ECARD_DIR . '/install/'); 21 define('ECARD_TABLE', $prefixeTable . 'piwecard'); 29 22 define('ECARD_ADMIN', get_root_url() . 'admin.php?page=plugin-'.ECARD_DIR); 30 23 31 24 load_language('plugin.lang', ECARD_PATH); 32 25 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');26 include_once(ECARD_INC_PATH.'piwecard.class.php'); 27 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 28 include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php'); 36 29 global $page, $template; 37 30 … … 39 32 load_language('plugin.lang', ECARD_PATH); 40 33 41 $ecard = new ecard();34 $ecard = new Piwecard(); 42 35 43 36 // Add ecard to picture page
Note: See TracChangeset
for help on using the changeset viewer.