X-Git-Url: https://git.llucax.com/software/bife/base.git/blobdiff_plain/79951593075fdc5389f7840f9a4f38c68514bdc6..778ce089e6282126a7003291ec93e3557ad6df2d:/examples/index.php diff --git a/examples/index.php b/examples/index.php index 5a7e24a..656561b 100644 --- a/examples/index.php +++ b/examples/index.php @@ -1,5 +1,5 @@ -'; + echo htmlentities(join('', file($file))); + } else { + // We want to see the php file source. + highlight_file($_SERVER['SCRIPT_FILENAME']); + } + exit; +} +// }}} -$parser =& new BIFE_Parser('BIFE_Translate'); -$page =& $parser->parseFile($file); +// If we are not looking at the source, we use BIFE to show the page {{{ +$template =& new HTML_Template_HIT('templates'); +$parser =& new BIFE_Parser('BIFE_Translate'); +$page =& $parser->parseFile($file); $parser->__destruct(); echo $page->render($template); +// }}} ?>