4 $WEB_ROOT_FS = realpath(dirname(__FILE__));
5 $BASE_URL = dirname($_SERVER["PHP_SELF"]);
7 global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL;
9 // add libglcas as if it were a path in ../libglcas
10 if(file_exists("../libanyhammer")) {
11 $path = realpath($WEB_ROOT_FS."/../");
12 error_log("added glcas path as $path");
13 set_include_path(get_include_path().PATH_SEPARATOR.$path);
16 // include the based library
17 require_once("libanyhammer/lib.php");
22 // need to trigger installer here
23 $configpath = ah_getConfigPath();
24 if(!$configpath) $configpath = $WEB_ROOT_FS."/../var/anyhammer/config.db";
25 $config = new AHConfig($configpath);
29 if(isset($_REQUEST["q"])) {
30 $url = $_REQUEST["q"];