From ee20e7d16637625e900f518b6b46a61bfa30fe6e Mon Sep 17 00:00:00 2001 From: andi Date: Thu, 19 May 2005 22:10:09 +0200 Subject: first attempt of syntax plugins The first version of the new plugin system. Syntax plugins only yet. A very simple example plugin called info (doing nothig useful yet) is included. Missing Features - Doku_Block_Handler needs work (doesn't honur plugins yet) - there is no way to specify the order of plugins and other modes yet - useful output from the info plugin - bug testing and fixing - code cleanup - documentation darcs-hash:20050519201009-9977f-f793dbfc6a39d8a9643b610927d93cd3288bdd6b.gz --- inc/init.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index 150e07d83..af1d1eb9c 100644 --- a/inc/init.php +++ b/inc/init.php @@ -10,6 +10,7 @@ error_reporting(E_ALL ^ E_NOTICE); //prepare config array() + global $conf; $conf = array(); // load the config file(s) @@ -17,12 +18,16 @@ @include_once(DOKU_INC.'conf/local.php'); //prepare language array + global $lang; $lang = array(); // define baseURL if(!defined('DOKU_BASE')) define('DOKU_BASE',getBaseURL()); if(!defined('DOKU_URL')) define('DOKU_URL',getBaseURL(true)); + // define Plugin dir + if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'inc/plugins/'); + // define main script if(!defined('DOKU_SCRIPT')) define('DOKU_SCRIPT','doku.php'); -- cgit v1.2.3