Display PMA_errors on login form.

This commit is contained in:
Michal Čihař
2005-11-28 13:54:45 +00:00
parent 2153a6af48
commit 319cabce52
2 changed files with 9 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2005-11-28 Michal Čihař <michal@cihar.com>
* scripts/setup.php: Don't allow loading of configuration if there is no
write permission on config.
* libraries/auth/cookie.auth.lib.php: Display PMA_errors on login form.
2005-11-28 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/Theme.class.php, libraries/Theme_Manager.class.php:

View File

@@ -234,6 +234,14 @@ echo sprintf( $GLOBALS['strWelcome'],
<div class="notice"><?php echo $GLOBALS['strCookiesRequired']; ?></div>
<?php
if ( ! empty( $GLOBALS['PMA_errors'] ) && is_array( $GLOBALS['PMA_errors'] ) ) {
foreach( $GLOBALS['PMA_errors'] as $error ) {
echo '<div class="error">' . $error . '</div>' . "\n";
}
}
?>
<script type="text/javascript" language="javascript">
<!--
var uname = document.forms['login_form'].elements['pma_username'];