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:
jakubvrana 2009-07-03 09:28:30 +00:00
parent 72313653e8
commit 8a10611f8c

View file

@ -1,2 +1,11 @@
<?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;
}