]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - base/examples/index.php
Removed \n at the end of the file and added a VIM option to keep it as is.
[software/bife/bife-all.git] / base / examples / index.php
index 5a7e24a28748009d84c150ec259ef32fb721c65c..e578de5637e0dfccc815a0963fe34f13ba52d49c 100644 (file)
@@ -1,5 +1,5 @@
-<?
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+<?php
+// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker binary:
 // +--------------------------------------------------------------------+
 // |                       BIFE - Buil It FastEr                        |
 // +--------------------------------------------------------------------+
 // $Id$
 //
 
-ini_set('include_path', '../src:../../hit/src:../../bife/src:' .
-    ini_get('include_path'));
-umask('002');
+// Starts bife.
+header('Location: bife/');
 
-require_once 'HTML/Template/HIT.php';
-require_once 'BIFE/Parser.php';
-require_once 'BIFE/Translate.php';
-
-$file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf';
-#$file = isset($_SERVER['PATH_INFO']) ? ".{$_SERVER['PATH_INFO']}" : 'index.xbf';
-
-$template =& new HTML_Template_HIT('templates');
-
-$parser =& new BIFE_Parser('BIFE_Translate');
-$page =& $parser->parseFile($file);
-$parser->__destruct();
-echo $page->render($template);
-
-?>
+?>
\ No newline at end of file