Changeset 20079 for extensions/Piwecard/main.inc.php
- Timestamp:
- Jan 11, 2013, 8:43:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/main.inc.php
r20059 r20079 1 <?php1 <?php 2 2 /* 3 3 * Plugin Name: Piwecard … … 7 7 * Author: Tiico & Julien1311 8 8 * */ 9 9 10 10 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 11 11 12 12 global $prefixeTable; 13 14 define('ECARD_VERSION', '1.1.0');15 13 16 14 define('PIWECARD_ROOT', dirname(__FILE__)); … … 21 19 define('PIWECARD_TABLE', $prefixeTable . 'piwecard'); 22 20 define('PIWECARD_ADMIN', get_root_url() . 'admin.php?page=plugin-'.PIWECARD_DIR); 23 24 load_language('plugin.lang', PIWECARD_PATH);25 21 26 22 include_once(PIWECARD_INC_PATH.'piwecard.class.php'); … … 40 36 add_event_handler('loc_end_index', array(&$piwecard, 'index_ecard')); 41 37 42 add_event_handler('loc_end_page_header', 'css_js_ecard');43 44 38 set_plugin_data($plugin['id'], $piwecard); 45 39 … … 47 41 * | Plugin admin | 48 42 * +-----------------------------------------------------------------------+ */ 43 add_event_handler('get_admin_plugin_menu_links', 'piwecard_admin_menu'); 49 44 50 // Add an entry to the plugins menu 51 add_event_handler('get_admin_plugin_menu_links', 'ecard_admin_menu'); 52 53 function ecard_admin_menu($menu) { 45 function piwecard_admin_menu($menu) { 54 46 array_push( 55 47 $menu, array( … … 64 56 * | CSS/JS Style | 65 57 * +-----------------------------------------------------------------------+ */ 58 add_event_handler('loc_end_page_header', 'piwecard_css_js'); 66 59 67 function css_js_ecard() {60 function piwecard_css_js() { 68 61 global $template; 69 62 … … 72 65 73 66 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.PIWECARD_PATH . 'css/piwecard.css">'); 74 } 67 } 75 68 ?>
Note: See TracChangeset
for help on using the changeset viewer.