--- docman.php 2000/10/10 14:32:07 1.24 +++ docman.php 2000/12/21 07:30:04 1.25 @@ -641,9 +641,9 @@ $self = $GLOBALS["PHP_SELF"] ; if (isset($GLOBALS["HTTPS"]) && $GLOBALS["HTTPS"] == "on") { - $webRoot = "https://" . $GLOBALS["SERVER_NAME"] ; + $webRoot = "https://" . $GLOBALS["HTTP_HOST"] ; } else { - $webRoot = "http://" . $GLOBALS["SERVER_NAME"] ; + $webRoot = "http://" . $GLOBALS["HTTP_HOST"] ; } $fsDir = $fsRoot . $relDir . "/" ; // current directory @@ -820,7 +820,13 @@ + + No files in this directory + + @@ -840,15 +846,14 @@
- "; include(".info.inc"); + print " +
"; } ?> - - -
CREATE NEW @@ -1182,7 +1187,7 @@ // authentication if $gblAuth == true if ( $gblAuth && $gblHash($PHP_AUTH_USER.$PHP_AUTH_PW) != $gblPw || isset($relogin) && $gblPw == $relogin ) { - header("WWW-authenticate: basic realm=\"$SERVER_NAME\"") ; + header("WWW-authenticate: basic realm=\"$HTTP_HOST\"") ; header("HTTP/1.0 401 Unauthorized") ; NoEntry() ; exit ; @@ -1410,7 +1415,7 @@ if (!is_writeable($gblFsRoot . $relDir)) Error("Write access denied",$relDir) ; $text = "Use this page to upload a single " ; - $text .= "file to $SERVER_NAME." ; + $text .= "file to $HTTP_HOST." ; StartHTML("(Upload Page)", $text) ; UploadPage($gblFsRoot, $relDir) ; EndHTML() ; @@ -1437,7 +1442,7 @@ if (!is_writeable($gblFsRoot . $relDir)) Error("Write access denied",$relDir) ; $text = "Use this page to update a single " ; - $text .= "file to $SERVER_NAME." ; + $text .= "file to $HTTP_HOST." ; StartHTML("(Update file Page)", $text) ; UploadPage($gblFsRoot, $relDir, $F) ; EndHTML() ;