From 09041b7c5482a776c33b54105044c43df58f1548 Mon Sep 17 00:00:00 2001
From: jakubvrana
Date: Fri, 6 Jul 2007 08:47:20 +0000
Subject: [PATCH] Move menu to footer
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@53 7c3ca157-0c34-0410-bff1-cbf682f78f5c
---
auth.inc.php | 2 +-
connect.inc.php | 4 ++--
design.inc.php | 38 +++++++++++++++++++++-----------------
3 files changed, 24 insertions(+), 20 deletions(-)
diff --git a/auth.inc.php b/auth.inc.php
index 770f2c72..6501ad8b 100644
--- a/auth.inc.php
+++ b/auth.inc.php
@@ -10,7 +10,7 @@ if (isset($_POST["server"])) {
}
if (isset($_GET["logout"]) || !@mysql_connect($_GET["server"], $_SESSION["usernames"][$_GET["server"]], $_SESSION["passwords"][$_GET["server"]])) {
- page_header(lang('Login'), "auth");
+ page_header(lang('Login'));
if (isset($_GET["logout"])) {
echo "" . lang('Logout successful.') . "
\n";
} elseif (isset($_SESSION["usernames"][$_GET["server"]])) {
diff --git a/connect.inc.php b/connect.inc.php
index 759eb24f..33deffb2 100644
--- a/connect.inc.php
+++ b/connect.inc.php
@@ -1,12 +1,12 @@
" . lang('Invalid database.') . "
\n";
} else {
echo '
+$title\n";
+ if ($_SESSION["message"]) {
+ echo "
$_SESSION[message]
\n";
+ $_SESSION["message"] = "";
+ }
+}
+
+function page_footer($missing = false) {
+ global $SELF;
+ ob_flush();
+ flush();
+?>
+
+
-
-$title\n";
- if ($_SESSION["message"]) {
- echo "
$_SESSION[message]
\n";
- $_SESSION["message"] = "";
- }
-}
-
-function page_footer() {
-?>
-
-