phpmyadmin.css.php 740 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Main stylesheet loader
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\OutputBuffering;
  9. use PhpMyAdmin\ThemeManager;
  10. /**
  11. *
  12. */
  13. define('PMA_MINIMUM_COMMON', true);
  14. require_once 'libraries/common.inc.php';
  15. $buffer = OutputBuffering::getInstance();
  16. $buffer->start();
  17. register_shutdown_function(
  18. function () {
  19. echo OutputBuffering::getInstance()->getContents();
  20. }
  21. );
  22. // Send correct type:
  23. header('Content-Type: text/css; charset=UTF-8');
  24. // Cache output in client - the nocache query parameter makes sure that this
  25. // file is reloaded when config changes
  26. header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
  27. ThemeManager::getInstance()->printCss();