more framework
[CBFWR.git] / www / index.php
1 <?php
2 $WEB_ROOT_FS = realpath(dirname(__FILE__));
3 $BASE_URL = dirname($_SERVER["PHP_SELF"]);
4
5 global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL;
6
7 // add libglcas as if it were a path in ../libglcas
8 if(file_exists("../libcbfwr")) {
9         $path = realpath($WEB_ROOT_FS."/../");
10         error_log("added cbfwr path as $path");
11         set_include_path(get_include_path().PATH_SEPARATOR.$path);
12 }
13
14 // include the based library
15 require_once("libcbfwr/lib.php");
16
17 ?>