web pages and shite
[CBFWR.git] / www / index.php
1 <?php
2 $WEB_ROOT_FS = realpath(dirname(__FILE__));
3 $BASE_URL = dirname($_SERVER["PHP_SELF"]);
4 $AM_DAEMON=false;
5
6 global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL, $AM_DAEMON;
7
8 // add libglcas as if it were a path in ../libglcas
9 if(file_exists("../libcbfwr")) {
10         $path = realpath($WEB_ROOT_FS."/../");
11         error_log("added cbfwr path as $path");
12         set_include_path(get_include_path().PATH_SEPARATOR.$path);
13 }
14
15 // include the based library
16 require_once("libcbfwr/lib.php");
17
18 error_log("create cbfwweb");
19 $webResponder = new CBFWWeb();
20 error_log("go");
21 $webResponder->go();
22
23 ?>