| 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() ;
|