Remove unused code.

This commit is contained in:
Michal Čihař
2005-11-23 18:30:23 +00:00
parent baaf4b12cc
commit c55e55c478
2 changed files with 3 additions and 17 deletions

View File

@@ -51,6 +51,7 @@ $Source$
* lang/*: Added missing $strInvalidServerHostname. * lang/*: Added missing $strInvalidServerHostname.
* libraries/auth/cookie.auth.lib.php: Move error message on top of page. * libraries/auth/cookie.auth.lib.php: Move error message on top of page.
* lang/swedish: Update, thanks to Bjorn T. Hallberg - bjornth. * lang/swedish: Update, thanks to Bjorn T. Hallberg - bjornth.
* header.inc.php: Remove unused code.
2005-11-22 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-11-22 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* added test/theme.php: for testing themes * added test/theme.php: for testing themes

View File

@@ -24,23 +24,8 @@ if (empty($GLOBALS['is_header_sent'])) {
require_once('./libraries/header_http.inc.php'); require_once('./libraries/header_http.inc.php');
require_once('./libraries/header_meta_style.inc.php'); require_once('./libraries/header_meta_style.inc.php');
/* replaced 2004-05-05 by Michael Keck (mkkeck)
$title = ''; // generate title
if (isset($GLOBALS['db'])) {
$title .= str_replace('\'', '\\\'', $GLOBALS['db']);
}
if (isset($GLOBALS['table'])) {
$title .= (empty($title) ? '' : '.') . str_replace('\'', '\\\'', $GLOBALS['table']);
}
if (!empty($GLOBALS['cfg']['Server']) && isset($GLOBALS['cfg']['Server']['host'])) {
$title .= (empty($title) ? 'phpMyAdmin ' : ' ')
. sprintf($GLOBALS['strRunning'], (empty($GLOBALS['cfg']['Server']['verbose']) ? str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['host']) : str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['verbose'])));
}
$title .= (empty($title) ? '' : ' - ') . 'phpMyAdmin ' . PMA_VERSION;
*/
/* the new one
* 2004-05-05: replaced by Michael Keck (mkkeck)
*/
$title = ''; $title = '';
if ($cfg['ShowHttpHostTitle']) { if ($cfg['ShowHttpHostTitle']) {
$title .= (empty($GLOBALS['cfg']['SetHttpHostTitle']) && isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $GLOBALS['cfg']['SetHttpHostTitle']) . ' / '; $title .= (empty($GLOBALS['cfg']['SetHttpHostTitle']) && isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $GLOBALS['cfg']['SetHttpHostTitle']) . ' / ';