X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/83c0aaf19ae9241ba9f30da47013479ee761685e..d64656402cea7c885ad419e59acd4eb818fc7a38:/examples/index.php diff --git a/examples/index.php b/examples/index.php index 5e21623..3b9f86d 100644 --- a/examples/index.php +++ b/examples/index.php @@ -27,24 +27,21 @@ // $tmp = ini_get('include_path'); -ini_set('include_path', "../src:$tmp"); +ini_set('include_path', "..:$tmp"); unset($tmp); +umask('002'); -require_once 'HTML/Template/Sigma.php'; +require_once 'HTML/Template/HIT.php'; require_once 'BIFE/Parser.php'; -require_once 'BIFE/Page.php'; -require_once 'BIFE/Title.php'; -require_once 'BIFE/Album.php'; -#require_once 'BIFE.php'; +require_once 'BIFE/Translate.php'; -$file = 'simple.xbf'; +$file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf'; -$template =& new HTML_Template_Sigma('templates'); -$template->setErrorHandling(PEAR_ERROR_PRINT); +$template =& new HTML_Template_HIT('templates'); -$parser =& new BIFE_Parser($template); -$parser->parseFile($file); -echo $parser->getOutput(); +$parser =& new BIFE_Parser('BIFE_Translate'); +$page =& $parser->parseFile($file); $parser->__destruct(); +echo $page->render($template); ?>