diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php index 5d821fe5..7b9bcd93 100644 --- a/adminer/include/design.inc.php +++ b/adminer/include/design.inc.php @@ -10,8 +10,8 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { global $LANG, $HTTPS, $adminer, $connection, $drivers; header("Content-Type: text/html; charset=utf-8"); $adminer->headers(); + $title_all = $title . ($title2 != "" ? ": " . h($title2) : ""); if (!is_ajax()) { - $title_all = $title . ($title2 != "" ? ": " . h($title2) : ""); $protocol = ($HTTPS ? "https" : "http"); ?> @@ -32,35 +32,34 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
' . $drivers[DRIVER] . ' » '; - $link = substr(preg_replace('~(db|ns)=[^&]*&~', '', ME), 0, -1); - $server = (SERVER != "" ? h(SERVER) : lang('Server')); - if ($breadcrumb === false) { - echo "$server\n"; - } else { - echo "$server » "; - if ($_GET["ns"] != "" || (DB != "" && is_array($breadcrumb))) { - echo '' . h(DB) . ' » '; - } - if (is_array($breadcrumb)) { - if ($_GET["ns"] != "") { - echo '' . h($_GET["ns"]) . ' » '; - } - foreach ($breadcrumb as $key => $val) { - $desc = (is_array($val) ? $val[1] : $val); - if ($desc != "") { - echo '' . h($desc) . ' » '; - } - } - } - echo "$title\n"; - } - } - echo "

$title_all

\n"; - echo "
\n"; } + if (isset($breadcrumb)) { + $link = substr(preg_replace('~(username|db|ns)=[^&]*&~', '', ME), 0, -1); + echo '

$title_all

\n"; restart_session(); if ($_SESSION["messages"]) { echo "
" . implode("
\n
", $_SESSION["messages"]) . "
\n"; @@ -84,7 +83,6 @@ function page_footer($missing = "") { if (!is_ajax()) { ?>
-