diff --git a/htdocs/sql/libraries/auth/config.auth.lib.php b/htdocs/sql/libraries/auth/config.auth.lib.php deleted file mode 100755 --- a/htdocs/sql/libraries/auth/config.auth.lib.php +++ /dev/null @@ -1,152 +0,0 @@ - authentication failed - * - * @global string the MySQL error message PHP returns - * @global string the connection type (persistent or not) - * @global string the MySQL server port to use - * @global string the MySQL socket port to use - * @global array the current server settings - * @global string the font face to use in case of failure - * @global string the default font size to use in case of failure - * @global string the big font size to use in case of failure - * @global boolean tell the "PMA_mysqlDie()" function headers have been - * sent - * - * @return boolean always true (no return indeed) - * - * @access public - */ -function PMA_auth_fails() -{ - global $php_errormsg, $cfg; - - $conn_error = PMA_DBI_getError(); - if (!$conn_error) { - if (isset($php_errormsg)) { - $conn_error = $php_errormsg; - } else { - $conn_error = $GLOBALS['strConnectionError']; - } - } - - // Defines the charset to be used - header('Content-Type: text/html; charset=' . $GLOBALS['charset']); - /* HTML header */ - $page_title = $GLOBALS['strAccessDenied']; - require './libraries/header_meta_style.inc.php'; - ?> - - -
-
-
-
- ' . $GLOBALS['strAccessDenied'] . '' . "\n";
- } else {
- // Check whether user has configured something
- if ($_SESSION['PMA_Config']->source_mtime == 0) {
- echo ' ' . sprintf($GLOBALS['strAccessDeniedCreateConfig'], '', '') . ' ' . "\n"; - } elseif (!isset($GLOBALS['errno']) || (isset($GLOBALS['errno']) && $GLOBALS['errno'] != 2002) && $GLOBALS['errno'] != 2003) { - // 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) - // 2002 is the error given by mysqli - // 2003 is the error given by mysql - echo '' . $GLOBALS['strAccessDeniedExplanation'] . ' ' . "\n"; - } - PMA_mysqlDie($conn_error, '', true, '', false); - } - if (! empty($GLOBALS['PMA_errors']) && is_array($GLOBALS['PMA_errors'])) { - foreach ($GLOBALS['PMA_errors'] as $error) { - echo '' . $error . ' ' . "\n";
- }
- }
-?>
- |
-
' . "\n"; - PMA_select_server(TRUE, TRUE); - echo ' | ' . "\n"; - echo '