bug 968089, catch when server is not responding

This commit is contained in:
Marc Delisle
2004-06-10 14:11:45 +00:00
parent cbf806e3ab
commit 478fccda5e
102 changed files with 117 additions and 7 deletions

View File

@@ -104,7 +104,16 @@ h1 {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo
<?php
echo "\n";
$GLOBALS['is_header_sent'] = TRUE;
echo '<p>' . $GLOBALS['strAccessDeniedExplanation'] . '</p>' . "\n";
// if we display the "Server not responding" error, do not confuse users
// by telling them they have a settings problem
// (note: it's true that they could have a badly typed host name, but
// anyway the current $strAccessDeniedExplanation tells that the server
// rejected the connection, which is not really what happened)
if (!isset($GLOBALS['errno']) || (isset($GLOBALS['errno']) && $GLOBALS['errno'] != 2003)) {
echo '<p>' . $GLOBALS['strAccessDeniedExplanation'] . '</p>' . "\n";
}
PMA_mysqlDie($conn_error, '');
return TRUE;