X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/b23b73b778ec0e241a0f13d0e2e592c35ef47743..8906fc15517052e513daa2d47ab9c6cacacc7d25:/examples/index.php diff --git a/examples/index.php b/examples/index.php index f7abe2b..3b9f86d 100644 --- a/examples/index.php +++ b/examples/index.php @@ -26,28 +26,20 @@ // $Id$ // -$incs = array( - '../core', - '../modules/album', - '../modules/basic', - '../modules/menu', -// '../modules/', -); $tmp = ini_get('include_path'); -ini_set('include_path', join(':', $incs) . ":$tmp"); +ini_set('include_path', "..:$tmp"); unset($tmp); umask('002'); require_once 'HTML/Template/HIT.php'; require_once 'BIFE/Parser.php'; -require_once 'BIFE/Copy.php'; -require_once 'BIFE/Link.php'; +require_once 'BIFE/Translate.php'; $file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf'; $template =& new HTML_Template_HIT('templates'); -$parser =& new BIFE_Parser('BIFE_Copy'); +$parser =& new BIFE_Parser('BIFE_Translate'); $page =& $parser->parseFile($file); $parser->__destruct(); echo $page->render($template);