diff options
author | Michal Čihař <michal@cihar.com> | 2005-10-13 19:01:19 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2005-10-13 19:01:19 +0400 |
commit | 52bb3fd79bb954f1509d6d9f5808aa0cf99161af (patch) | |
tree | 9df3657edec8f23992a10e0e4d4142582861ee29 /themes.php | |
parent | f78aa1b2ef8700f0388b71f9842b0814c2c49a69 (diff) |
Use common header.
Diffstat (limited to 'themes.php')
-rw-r--r-- | themes.php | 49 |
1 files changed, 3 insertions, 46 deletions
diff --git a/themes.php b/themes.php index db40b5520e..f58f669699 100644 --- a/themes.php +++ b/themes.php @@ -12,53 +12,10 @@ require_once('./libraries/header_http.inc.php'); /* Gets the font sizes to use */ PMA_setFontSizes(); -/* remove vertical scroll bar bug in ie */ -echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">"; +/* HTML header */ +$page_title = 'phpMyAdmin - ' . $strTheme; +require('./libraries/header_meta_style.inc.php'); ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>"> - -<head> -<title>phpMyAdmin <?php echo PMA_VERSION; ?></title> -<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" /> -<meta http-equiv="imagetoolbar" content="no"> -<script language="JavaScript" type="text/javascript"> -<!-- - /* added 2004-06-10 by Michael Keck - * we need this for Backwards-Compatibility and resolving problems - * with non DOM browsers, which may have problems with css 2 (like NC 4) - */ - var isDOM = (typeof(document.getElementsByTagName) != 'undefined' - && typeof(document.createElement) != 'undefined') - ? 1 : 0; - var isIE4 = (typeof(document.all) != 'undefined' - && parseInt(navigator.appVersion) >= 4) - ? 1 : 0; - var isNS4 = (typeof(document.layers) != 'undefined') - ? 1 : 0; - var capable = (isDOM || isIE4 || isNS4) - ? 1 : 0; - // Uggly fix for Opera and Konqueror 2.2 that are half DOM compliant - if (capable) { - if (typeof(window.opera) != 'undefined') { - var browserName = ' ' + navigator.userAgent.toLowerCase(); - if ((browserName.indexOf('konqueror 7') == 0)) { - capable = 0; - } - } else if (typeof(navigator.userAgent) != 'undefined') { - var browserName = ' ' + navigator.userAgent.toLowerCase(); - if ((browserName.indexOf('konqueror') > 0) && (browserName.indexOf('konqueror/3') == 0)) { - capable = 0; - } - } // end if... else if... - } // end if - document.writeln('<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/phpmyadmin.css.php?lang=<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>&js_frame=right&js_isDOM=' + isDOM + '" />'); -//--> -</script> -<noscript> - <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : './'; ?>css/phpmyadmin.css.php?lang=<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>&js_frame=right" /> -</noscript> <script language="JavaScript"> <!-- function takeThis(what){ |