Files
phpmyadmin/phpmyadmin.css.php
2010-07-24 18:34:52 +02:00

45 lines
1.3 KiB
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
*
* @package phpMyAdmin
*/
/**
*
*/
// sometimes, we lose $_REQUEST['js_frame']
define('PMA_FRAME', empty($_REQUEST['js_frame']) ? 'right' : $_REQUEST['js_frame']);
define('PMA_MINIMUM_COMMON', true);
require_once './libraries/common.inc.php';
require_once './libraries/sqlparser.lib.php';
// MSIE 6 (at least some unpatched versions) has problems loading CSS
// when zlib_compression is on
if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
&& (ini_get('zlib.output_compression'))) {
@ini_set('zlib.output_compression', 'Off');
}
if ($GLOBALS['text_dir'] === 'ltr') {
$right = 'right';
$left = 'left';
} else {
$right = 'left';
$left = 'right';
}
// Send correct type:
header('Content-Type: text/css; charset=UTF-8');
// Cache output in client - the nocache query parameter makes sure that this
// file is reloaded when config changes
// todo: restore header
//header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
//header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
//header('Last-Modified: ' . $GLOBALS['now']);
header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
$_SESSION['PMA_Theme_Manager']->printCss(PMA_FRAME);
?>