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 '' . lang('Create new database') . ''; } - page_footer(); + page_footer("db"); exit; } mysql_query("SET CHARACTER SET utf8"); diff --git a/design.inc.php b/design.inc.php index 93b0fe21..57b6035a 100644 --- a/design.inc.php +++ b/design.inc.php @@ -1,12 +1,11 @@ -<?php echo lang('phpMinAdmin') . ($title ? " - $title" : ""); ?> +<?php echo lang('phpMinAdmin') . " - $title"; ?> +
+$title\n"; + if ($_SESSION["message"]) { + echo "

$_SESSION[message]

\n"; + $_SESSION["message"] = ""; + } +} + +function page_footer($missing = false) { + global $SELF; + ob_flush(); + flush(); +?> +
+