mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Session management
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1173 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -44,6 +44,9 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
|
||||
echo "<div class='message'>" . implode("</div>\n<div class='message'>", $_SESSION["messages"]) . "</div>\n";
|
||||
$_SESSION["messages"] = array();
|
||||
}
|
||||
if (!$_POST && !isset($_SESSION["passwords"])) { // used in auth
|
||||
$_SESSION["passwords"] = array();
|
||||
}
|
||||
$databases = &$_SESSION["databases"][$_GET["server"]];
|
||||
if (strlen(DB) && $databases && !in_array(DB, $databases, true)) {
|
||||
$databases = null;
|
||||
|
Reference in New Issue
Block a user