mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Use auth_error
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@792 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,2 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
$dbh = connect(); //! process errors
|
function auth_error($exception = null) {
|
||||||
|
page_header(lang('Login'), htmlspecialchars(lang('Invalid credentials.'), null));
|
||||||
|
page_footer("auth");
|
||||||
|
}
|
||||||
|
|
||||||
|
$dbh = connect();
|
||||||
|
if (is_string($dbh)) {
|
||||||
|
auth_error();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user