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:
parent
72313653e8
commit
8a10611f8c
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue