]> git.llucax.com Git - software/bife/base.git/blobdiff - examples/index.php
- Added a new feature to Link. Now if the URL is a directory (finishes with
[software/bife/base.git] / examples / index.php
index 898334990513cce894c051b5c28fc0e4020ad2e8..5377064641a40ba6136e8bf9d8f29af9d3569169 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:
 // +--------------------------------------------------------------------+
 // |                       BIFE - Buil It FastEr                        |
 // +--------------------------------------------------------------------+
 // +--------------------------------------------------------------------+
 // |                       BIFE - Buil It FastEr                        |
 // +--------------------------------------------------------------------+
 // $Id$
 //
 
 // $Id$
 //
 
-ini_set('include_path', '../src:../../hit/src:../../bife/src:',
-    ini_get('include_path'));
-umask('002');
-
-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);
+// Starts bife.
+header('Location: bife/');
 
 ?>
 
 ?>