git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@846 7c3ca157-0c34-0410-bff1-cbf682f78f5c
13 lines
319 B
PHP
13 lines
319 B
PHP
<?php
|
|
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;
|
|
}
|
|
$_SESSION["tokens"][$_GET["server"]] = rand(1, 1e6); // defense against cross-site request forgery
|