From c5af16a7b22b65791032a730936376f32af24ecf Mon Sep 17 00:00:00 2001
From: jakubvrana
Date: Thu, 5 Jul 2007 11:51:06 +0000
Subject: [PATCH] Change language in login
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@42 7c3ca157-0c34-0410-bff1-cbf682f78f5c
---
auth.inc.php | 5 +----
design.inc.php | 19 +++++++++----------
2 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/auth.inc.php b/auth.inc.php
index 8131f20c..d9731440 100644
--- a/auth.inc.php
+++ b/auth.inc.php
@@ -11,12 +11,9 @@ if (isset($_POST["server"])) {
if (isset($_GET["logout"]) || !@mysql_connect($_GET["server"], $_SESSION["username"], $_SESSION["password"])) {
page_header(lang('Login'), "auth");
- ?>
-
- " . lang('Logout successful.') . "
\n";
- } elseif (isset($_GET["server"])) {
+ } elseif (isset($_SESSION["username"])) {
echo "" . lang('Invalid credentials.') . "
\n";
}
?>
diff --git a/design.inc.php b/design.inc.php
index 8303e82e..f0723278 100644
--- a/design.inc.php
+++ b/design.inc.php
@@ -12,24 +12,22 @@ function page_header($title, $missing = false) {
BODY { color: Black; background-color: White; }
A { color: Blue; }
A:visited { color: Navy; }
+H1 { font-size: 150%; margin: 0; }
+H1 A { color: Black; }
H2 { font-size: 150%; margin-top: 0; }
.error { color: Red; }
.message { color: Green; }
#menu { float: left; width: 15em; overflow: auto; white-space: nowrap; }
-#menu H1 { font-size: 150%; margin: 0; }
-#menu H1 A { color: Black; }
#content { margin-left: 16em; }
-
$title\n";
- }
+ echo "
$title
\n";
if ($_SESSION["message"]) {
echo "
$_SESSION[message]
\n";
$_SESSION["message"] = "";
}
}
-function page_footer($missing = false) {
- echo "\n" . ($missing ? "" : "
\n");
+function page_footer() {
?>
+
+