phpmyadmin.css.php 772 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Main stylesheet loader
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. /**
  9. *
  10. */
  11. define('PMA_MINIMUM_COMMON', true);
  12. require_once 'libraries/common.inc.php';
  13. // MSIE 6 (at least some unpatched versions) has problems loading CSS
  14. // when zlib_compression is on
  15. if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
  16. && (ini_get('zlib.output_compression'))
  17. ) {
  18. @ini_set('zlib.output_compression', 'Off');
  19. }
  20. // Send correct type:
  21. header('Content-Type: text/css; charset=UTF-8');
  22. // Cache output in client - the nocache query parameter makes sure that this
  23. // file is reloaded when config changes
  24. header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
  25. $_SESSION['PMA_Theme_Manager']->printCss();
  26. ?>