Translated using Weblate.
[phpmyadmin.git] / phpmyadmin.css.php
blob4fd7ce260c1083e5a070e95af74a58812fdafda5
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package PhpMyAdmin
6 */
8 /**
11 // sometimes, we lose $_REQUEST['js_frame']
12 define('PMA_FRAME', (! empty($_REQUEST['js_frame']) && is_string($_REQUEST['js_frame'])) ? $_REQUEST['js_frame'] : 'right');
14 define('PMA_MINIMUM_COMMON', true);
15 require_once './libraries/common.inc.php';
16 require_once './libraries/sqlparser.lib.php';
18 // MSIE 6 (at least some unpatched versions) has problems loading CSS
19 // when zlib_compression is on
20 if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER == '6'
21 && (ini_get('zlib.output_compression'))) {
22 @ini_set('zlib.output_compression', 'Off');
25 if ($GLOBALS['text_dir'] === 'ltr') {
26 $right = 'right';
27 $left = 'left';
28 } else {
29 $right = 'left';
30 $left = 'right';
33 // Send correct type:
34 header('Content-Type: text/css; charset=UTF-8');
36 // Cache output in client - the nocache query parameter makes sure that this
37 // file is reloaded when config changes
38 header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
40 $_SESSION['PMA_Theme_Manager']->printCss(PMA_FRAME);