Translated using Weblate (Vietnamese)
[phpmyadmin.git] / phpmyadmin.css.php
bloba4cae4037df50b9c68fb168c69037b0e223522ec
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Main stylesheet loader
6 * @package PhpMyAdmin
7 */
8 use PhpMyAdmin\OutputBuffering;
9 use PhpMyAdmin\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();