http range request ass bandits from redhat for their installer and
[glcas.git] / www / index.php
index 4657e52..47a19a4 100644 (file)
@@ -1,8 +1,9 @@
 <?php
 
 $WEB_ROOT_FS = realpath(dirname(__FILE__));
+$BASE_URL = dirname($_SERVER["PHP_SELF"]);
 
-global $WEB_ROOT_FS, $URL_HANDLERS;
+global $WEB_ROOT_FS, $URL_HANDLERS, $BASE_URL;
 
 // add libglcas as if it were a path in ../libglcas
 if(file_exists("../libglcas")) {
@@ -37,14 +38,20 @@ if(file_exists($WEB_ROOT_FS."/../var")) {
        }
 }
 
+header("Accept-Ranges: none");
 
 $glconfig = new GLCASConfig();
 $glconfig->loadConfig($configpath);
 $webResponder = new GLCASWeb($glconfig);
 $webResponder->go($URL_HANDLERS);
-/*
 
+
+/*
 echo "<pre>";
+echo "BASEURL: $BASE_URL\n";
+echo "CUSTOM\n";
+print_r($_SERVER);
+
 $vars = get_defined_vars();
 foreach($vars as $var => $vkey) {
        echo "VAR $var is:\n";