X-Git-Url: https://code.racktables.org/racktables/blobdiff_plain/94c80dd71f11467b204fc62b65c1b8320e940b91..9c0b00165ef9b24861ec3d6e48dcab009b3afc24:/inc/auth.php diff --git a/inc/auth.php b/inc/auth.php index e7b141f6..1bdffd99 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -14,7 +14,6 @@ function authenticate () showError ('Password hash not supported, authentication impossible.'); die(); } - global $enterprise; if ( !isset ($_SERVER['PHP_AUTH_USER']) or @@ -22,7 +21,7 @@ function authenticate () !authenticated ($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) ) { - header ("WWW-Authenticate: Basic realm=\"${enterprise} RackTables access\""); + header ('WWW-Authenticate: Basic realm="' . getConfigVar ('enterprise') . ' RackTables access"'); header ('HTTP/1.0 401 Unauthorized'); showError ('This system requires authentication. You should use a username and a password.'); die();