Translated using Weblate (Norwegian Bokmål)
[phpmyadmin.git] / phpmyadmin.css.php
blobcfbd656c7ca45ebe76761200283fa6ca4287997c
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;
9 use PMA\libraries\ThemeManager;
11 /**
15 define('PMA_MINIMUM_COMMON', true);
16 require_once 'libraries/common.inc.php';
19 $buffer = OutputBuffering::getInstance();
20 $buffer->start();
21 register_shutdown_function(
22 function () {
23 echo OutputBuffering::getInstance()->getContents();
27 // Send correct type:
28 header('Content-Type: text/css; charset=UTF-8');
30 // Cache output in client - the nocache query parameter makes sure that this
31 // file is reloaded when config changes
32 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
34 ThemeManager::getInstance()->printCss();