Move error message on top of page.
This commit is contained in:
@@ -140,6 +140,13 @@ echo sprintf( $GLOBALS['strWelcome'],
|
||||
?>
|
||||
</h1>
|
||||
<?php
|
||||
|
||||
// Show error message
|
||||
if ( !empty($conn_error)) {
|
||||
echo '<div class="error"><h1>' . $GLOBALS['strError'] . '</h1>' . "\n";
|
||||
echo $conn_error . '</div>' . "\n";
|
||||
}
|
||||
|
||||
// Displays the languages form
|
||||
if (empty($cfg['Lang'])) {
|
||||
echo "\n";
|
||||
@@ -161,11 +168,6 @@ echo sprintf( $GLOBALS['strWelcome'],
|
||||
. '</html>';
|
||||
exit();
|
||||
}
|
||||
|
||||
if ( !empty($conn_error)) {
|
||||
echo '<div class="error"><h1>' . $GLOBALS['strError'] . '</h1>' . "\n";
|
||||
echo $conn_error . '</div>' . "\n";
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
<!-- Login form -->
|
||||
|
Reference in New Issue
Block a user