improvement suggested by Sebastian
This commit is contained in:
@@ -188,17 +188,9 @@ function PMA_auth_set_user()
|
|||||||
*/
|
*/
|
||||||
function PMA_auth_fails()
|
function PMA_auth_fails()
|
||||||
{
|
{
|
||||||
if (PMA_DBI_getError() && $GLOBALS['errno'] != 1045) {
|
$error = PMA_DBI_getError();
|
||||||
$conn_error = PMA_sanitize(PMA_DBI_getError());
|
if ($error && $GLOBALS['errno'] != 1045) {
|
||||||
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
PMA_sendHeaderLocation('error.php?error=' . urlencode($error));
|
||||||
$page_title = 'phpMyAdmin ' . PMA_VERSION;
|
|
||||||
require './libraries/header_meta_style.inc.php';
|
|
||||||
|
|
||||||
echo '<div class="error"><h1>' . $GLOBALS['strError'] . '</h1>' . "\n";
|
|
||||||
echo $conn_error . '</div>' . "\n";
|
|
||||||
// no footer here, would not make sense
|
|
||||||
echo '</body></html>' . "\n";
|
|
||||||
// exit immediately to avoid warnings from the db library
|
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
PMA_auth();
|
PMA_auth();
|
||||||
|
Reference in New Issue
Block a user