auth and strRunning

This commit is contained in:
Marc Delisle
2001-12-04 18:42:18 +00:00
parent 4b81044614
commit ccfc8fe376
2 changed files with 3 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ $Source$
2001-12-04 Marc Delisle <lem9@users.sourceforge.net> 2001-12-04 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: FAQ about Konqueror * Documentation.html: FAQ about Konqueror
* libraries/common.lib.php3, support new $strRunning string
2001-12-03 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2001-12-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_select.php3: fixed bugs with text and time type fields. * tbl_select.php3: fixed bugs with text and time type fields.

View File

@@ -69,7 +69,8 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
*/ */
function PMA_auth() function PMA_auth()
{ {
header('WWW-Authenticate: Basic realm="phpMyAdmin ' . trim($GLOBALS['strRunning']) . ' ' . $GLOBALS['cfgServer']['host'] . '"'); // header('WWW-Authenticate: Basic realm="phpMyAdmin ' . trim($GLOBALS['strRunning']) . ' ' . $GLOBALS['cfgServer']['host'] . '"');
header('WWW-Authenticate: Basic realm="phpMyAdmin ' . sprintf($GLOBALS['strRunning'], (empty($GLOBALS['cfgServer']['verbose']) ? str_replace('\'', '\\\'',$GLOBALS['cfgServer']['host']) : str_replace('\'', '\\\'', $GLOBALS['cfgServer']['verbose']))) . '"');
header('HTTP/1.0 401 Unauthorized'); header('HTTP/1.0 401 Unauthorized');
header('status: 401 Unauthorized'); header('status: 401 Unauthorized');
?> ?>