]> git.llucax.com Git - software/bife/base.git/blobdiff - examples/bife.php
- New Link model (uses Apache's PATH_INFO).
[software/bife/base.git] / examples / bife.php
similarity index 94%
rename from examples/index.php
rename to examples/bife.php
index 656561b771bc79b81c158bf9335674afe7afd73f..cf2b2f612baa853d3a313919405d7f2fd91d7bff 100644 (file)
@@ -36,8 +36,9 @@ require_once 'BIFE/Translate.php';
 // }}}
 
 // Selects the file to view {{{
-$file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf';
-#$file = isset($_SERVER['PATH_INFO']) ? ".{$_SERVER['PATH_INFO']}" : 'index.xbf';
+$file = (@$_SERVER['PATH_INFO'] and ($_SERVER['PATH_INFO'] != '/'))
+    ? ".{$_SERVER['PATH_INFO']}"
+    : 'index.xbf';
 // }}}
 
 // Looks if we want to show the source {{{