web pages and shite
[CBFWR.git] / www / index.php
index 15c5adc..f933c82 100644 (file)
@@ -1,3 +1,23 @@
 <?php
+$WEB_ROOT_FS = realpath(dirname(__FILE__));
+$BASE_URL = dirname($_SERVER["PHP_SELF"]);
+$AM_DAEMON=false;
+
+global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL, $AM_DAEMON;
+
+// add libglcas as if it were a path in ../libglcas
+if(file_exists("../libcbfwr")) {
+       $path = realpath($WEB_ROOT_FS."/../");
+       error_log("added cbfwr path as $path");
+       set_include_path(get_include_path().PATH_SEPARATOR.$path);
+}
+
+// include the based library
+require_once("libcbfwr/lib.php");
+
+error_log("create cbfwweb");
+$webResponder = new CBFWWeb();
+error_log("go");
+$webResponder->go();
 
 ?>
\ No newline at end of file