Ignore:
Timestamp:
08/20/09 22:50:54 (11 years ago)
Author:
nikrou
Message:

Reorganize files (template, css, js, ...)
wip : plugin management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/init.php

    r3761 r3764  
    2121// +-----------------------------------------------------------------------+ 
    2222 
     23if (!defined('PHPWG_ROOT_PATH')) { 
     24  die('Hacking attempt!'); 
     25} 
     26 
     27define('AK_PLUGIN_NAME', 'ak Book Style'); 
     28define('AK_PLUGIN_ROOT', dirname(__FILE__)); 
     29define('AK_PLUGIN_LANG', AK_PLUGIN_ROOT . '/'); 
     30define('AK_PLUGIN_TEMPLATE', AK_PLUGIN_ROOT . '/template'); 
     31define('AK_PLUGIN_CSS', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)). '/css'); 
     32define('AK_PLUGIN_JS', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)). '/js'); 
     33define('AK_PLUGIN_IMGS', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)). '/imgs'); 
     34 
     35include_once "include/akConfig.class.php"; 
     36 
     37load_language('plugin.lang', AK_PLUGIN_LANG); 
     38 
     39$plugin_config = new akConfig(AK_PLUGIN_ROOT, AK_PLUGIN_NAME); 
     40$plugin_config->load_config(); 
     41 
     42if (defined('IN_ADMIN')) {  
     43  add_event_handler('get_admin_plugin_menu_links', array($plugin_config, 'plugin_admin_menu'));  
     44} else { 
     45  include_once AK_PLUGIN_ROOT . '/public.php'; 
     46} 
     47 
     48set_plugin_data($plugin['id'], $plugin_config); 
    2349?> 
Note: See TracChangeset for help on using the changeset viewer.