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