3.3.8.1 correct release date and PMASA ref
[phpmyadmin/tyronm.git] / phpmyadmin.css.php
blobebf48bb365133949da1ccf5e7410348aaeab841e
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 * @package phpMyAdmin
7 */
9 /**
12 // sometimes, we lose $_REQUEST['js_frame']
13 define('PMA_FRAME', empty($_REQUEST['js_frame']) ? 'right' : $_REQUEST['js_frame']);
15 define('PMA_MINIMUM_COMMON', true);
16 require_once './libraries/common.inc.php';
17 require_once './libraries/sqlparser.lib.php';
19 // MSIE 6 (at least some unpatched versions) has problems loading CSS
20 // when zlib_compression is on
21 if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
22 && (ini_get('zlib.output_compression'))) {
23 @ini_set('zlib.output_compression', 'Off');
26 if ($GLOBALS['text_dir'] === 'ltr') {
27 $right = 'right';
28 $left = 'left';
29 } else {
30 $right = 'left';
31 $left = 'right';
34 // Send correct type:
35 header('Content-Type: text/css; charset=UTF-8');
37 // Cache output in client - the nocache query parameter makes sure that this
38 // file is reloaded when config changes
39 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
41 $_SESSION['PMA_Theme_Manager']->printCss(PMA_FRAME);