.not_classified { background: #{$config['severity_color_0']} !important; } CSS; $pageHeader->addStyle($severityCss); // perform Zabbix server check only for standard pages if ((!defined('ZBX_PAGE_NO_MENU') || defined('ZBX_PAGE_FULLSCREEN')) && $config['server_check_interval'] && !empty($ZBX_SERVER) && !empty($ZBX_SERVER_PORT)) { $page['scripts'][] = 'servercheck.js'; } } } $css = CHtml::encode($css); $pageHeader->addCssFile('styles/themes/' . $css . '/main.css'); if ($page['file'] == 'sysmap.php') { $pageHeader->addCssFile('imgstore.php?css=1&output=css'); } $pageHeader->addJsFile('js/browsers.js'); $pageHeader->addJsBeforeScripts('var PHP_TZ_OFFSET = ' . date('Z') . ';'); // show GUI messages in pages with menus and in fullscreen mode $showGuiMessaging = !defined('ZBX_PAGE_NO_MENU') || $_REQUEST['fullscreen'] == 1 ? 1 : 0; $path = 'jsLoader.php?ver=' . ZABBIX_VERSION . '&lang=' . CWebUser::$data['lang'] . '&showGuiMessaging=' . $showGuiMessaging; $pageHeader->addJsFile($path); if (!empty($page['scripts']) && is_array($page['scripts'])) { foreach ($page['scripts'] as $script) { $path .= '&files[]=' . $script; } $pageHeader->addJsFile($path); } $pageHeader->display(); ?> <body class="<?php echo $css; ?>