Merge remote-tracking branch 'origin/master'
[phpmyadmin.git] / phpmyadmin.css.php
blob68faed8c2a8217626720ab8381b0e66aa3e217db
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Main stylesheet loader
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\OutputBuffering;
10 /**
14 define('PMA_MINIMUM_COMMON', true);
15 require_once 'libraries/common.inc.php';
17 // MSIE 6 (at least some unpatched versions) has problems loading CSS
18 // when zlib_compression is on
19 if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
20 && (ini_get('zlib.output_compression'))
21 ) {
22 @ini_set('zlib.output_compression', 'Off');
23 } else {
24 $buffer = OutputBuffering::getInstance();
25 $buffer->start();
26 register_shutdown_function(
27 function () {
28 echo OutputBuffering::getInstance()->getContents();
33 // Send correct type:
34 header('Content-Type: text/css; charset=UTF-8');
36 // Cache output in client - the nocache query parameter makes sure that this
37 // file is reloaded when config changes
38 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
40 $_SESSION['PMA_Theme_Manager']->printCss();