X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/537561c5709c3f574c5d406cb4cb28b3522f2566..5a38104a646a3e60a7c29f816f034691ae354351:/examples/index.php diff --git a/examples/index.php b/examples/index.php index cd198be..d00262c 100644 --- a/examples/index.php +++ b/examples/index.php @@ -29,19 +29,24 @@ $tmp = ini_get('include_path'); ini_set('include_path', "../src:$tmp"); unset($tmp); +umask('002'); -require_once 'HTML/Template/Sigma.php'; +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/Album.php'; +require_once 'BIFE/Link.php'; +#require_once 'BIFE/Album.php'; +#require_once 'BIFE/AlbumPhoto.php'; #require_once 'BIFE.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'); +#$template =& new HTML_Template_Sigma('templates', 'compiled_templates'); +#$template->setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_ERROR); $parser =& new BIFE_Parser('BIFE_Copy'); $page =& $parser->parseFile($file);