X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/2ca13aad316873633c3fd9ba59ee2f5579d90272..c6ec7da2a3e4d8839ca7873c9dcb196da613609c:/examples/index.php?ds=inline diff --git a/examples/index.php b/examples/index.php index b748728..fdb9580 100644 --- a/examples/index.php +++ b/examples/index.php @@ -26,28 +26,28 @@ // $Id$ // +$incs = array( + '../core', + '../modules/album', + '../modules/basic', + '../modules/menu', +// '../modules/', +); $tmp = ini_get('include_path'); -ini_set('include_path', "../src:$tmp"); +ini_set('include_path', join(':', $incs) . ":$tmp"); unset($tmp); umask('002'); require_once 'HTML/Template/HIT.php'; -#require_once 'HTML/Template/Sigma.php'; require_once 'BIFE/Parser.php'; -require_once 'BIFE/Copy.php'; -require_once 'BIFE/Page.php'; -require_once 'BIFE/Title.php'; +require_once 'BIFE/Translate.php'; require_once 'BIFE/Link.php'; -#require_once 'BIFE/Album.php'; -#require_once 'BIFE.php'; $file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf'; $template =& new HTML_Template_HIT('templates'); -#$template =& new HTML_Template_Sigma('templates', 'compiled_templates'); -#$template->setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_ERROR); -$parser =& new BIFE_Parser('BIFE_Copy'); +$parser =& new BIFE_Parser('BIFE_Translate'); $page =& $parser->parseFile($file); $parser->__destruct(); echo $page->render($template);