From ffc1fa000fc848567176f89199444b7ab04b0c8a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 8 Jul 2013 23:34:17 -0700 Subject: [PATCH] Move logout button --- adminer/include/adminer.inc.php | 14 ++------------ adminer/include/design.inc.php | 8 +++++++- adminer/static/default.css | 4 ++-- editor/include/adminer.inc.php | 10 +--------- 4 files changed, 12 insertions(+), 24 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 8b62d860..1bf15416 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -736,7 +736,7 @@ username.form['auth[driver]'].onchange(); * @return null */ function navigation($missing) { - global $VERSION, $token, $jush, $drivers; + global $VERSION, $jush, $drivers; ?>

name(); ?> @@ -762,22 +762,12 @@ username.form['auth[driver]'].onchange(); } } } else { - ?> -
-

-" . lang('SQL command') . "\n"; + echo "

" . lang('SQL command') . "\n"; if (support("dump")) { echo "" . lang('Dump') . "\n"; } } - ?> - - -

-
-databasesPrint($missing); if ($_GET["ns"] !== "" && !$missing && DB != "") { echo '

" . lang('Create new table') . "\n"; diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php index 312fa1c5..65332058 100644 --- a/adminer/include/design.inc.php +++ b/adminer/include/design.inc.php @@ -106,11 +106,17 @@ function page_messages($error) { * @return null */ function page_footer($missing = "") { - global $adminer; + global $adminer, $token; ?> +

+

+ + +

+
diff --git a/adminer/static/default.css b/adminer/static/default.css index 23f4352d..86b1bc08 100644 --- a/adminer/static/default.css +++ b/adminer/static/default.css @@ -50,13 +50,12 @@ input.default { box-shadow: 1px 1px 1px #777; } .size { width: 6ex; } .help { cursor: help; } .pages { position: fixed; bottom: 0; left: 21em; padding: 5px; background: #ddf; border: 1px solid #999; } +.logout { margin-top: .5em; position: absolute; top: 0; right: 0; } #menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; } #menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; } #dbs { overflow: hidden; } #logins, #tables { white-space: nowrap; overflow: auto; text-overflow: ellipsis; } #logins a, #tables a { background: #fff; } -#logout { background: none; border: none; color: blue; font: inherit; padding: 0; text-decoration: underline; cursor: pointer; } -#logout:hover { color: red; } #content { margin: 2em 0 0 21em; padding: 10px 20px 20px 0; } #lang { position: absolute; top: 0; left: 0; line-height: 1.8em; padding: .3em 1em; } #breadcrumb { white-space: nowrap; position: absolute; top: 0; left: 21em; background: #eee; height: 2em; line-height: 1.8em; padding: 0 1em; margin: 0 0 0 -18px; } @@ -68,6 +67,7 @@ input.default { box-shadow: 1px 1px 1px #777; } .rtl h2 { margin: 0 -18px 20px 0; } .rtl p, .rtl table, .rtl .error, .rtl .message { margin: 1em 0 0 20px; } +.rtl .logout { left: 0; right: auto; } .rtl #content { margin: 2em 21em 0 0; padding: 10px 0 20px 20px; } .rtl #breadcrumb { left: auto; right: 21em; margin: 0 -18px 0 0; } .rtl #lang, .rtl #menu { left: auto; right: 0; } diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index efa8b160..d1867e34 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -536,7 +536,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 } function navigation($missing) { - global $VERSION, $token; + global $VERSION; ?>

name(); ?> @@ -555,14 +555,6 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 } } } else { - ?> -
-

- - -

-
-databasesPrint($missing); if ($missing != "db" && $missing != "ns") { $table_status = table_status('', true);