diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-07-29 15:23:22 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-07-29 15:23:22 +0000 |
| commit | 936ff51ecc479199146600c12f5ef3a1e6977c35 (patch) | |
| tree | 07b9f854228687482d3c39826ce68e1d6920d6e1 /frontends/php/include/page_header.php | |
| parent | 4a76e0292516c5a03c722d0b25aeff0ccfcf16ac (diff) | |
| download | zabbix-936ff51ecc479199146600c12f5ef3a1e6977c35.tar.gz zabbix-936ff51ecc479199146600c12f5ef3a1e6977c35.tar.xz zabbix-936ff51ecc479199146600c12f5ef3a1e6977c35.zip | |
- [DEV-191] added inline update of "Latest Data" screen (Artem)
- [DEV-193] improved viewing integer items on graphs (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5852 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/page_header.php')
| -rw-r--r-- | frontends/php/include/page_header.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php index d952a2bb..fa7f2e71 100644 --- a/frontends/php/include/page_header.php +++ b/frontends/php/include/page_header.php @@ -44,8 +44,7 @@ COpt::profiling_start("page"); init_nodes(); /* set Page header */ - switch($page["type"]) - { + switch($page["type"]){ case PAGE_TYPE_IMAGE: set_image_header(); define('ZBX_PAGE_NO_MENU', 1); @@ -79,7 +78,7 @@ COpt::profiling_start("page"); $page['title'] .= ' ('.$curr_node_data['name'].')'; } - if(defined('ZBX_PAGE_DO_REFRESH') && $USER_DETAILS["refresh"]){ + if((defined('ZBX_PAGE_DO_REFRESH') || defined('ZBX_PAGE_DO_JS_REFRESH')) && $USER_DETAILS["refresh"]){ $page['title'] .= ' [refreshed every '.$USER_DETAILS['refresh'].' sec]'; } break; @@ -391,9 +390,11 @@ COpt::profiling_start("page"); if(defined('ZBX_PAGE_DO_REFRESH') && $USER_DETAILS["refresh"]) { echo '<meta http-equiv="refresh" content="'.$USER_DETAILS["refresh"].'" />'; } - ?> - <meta name="Author" content="ZABBIX SIA" /> - <link rel="stylesheet" href="css.css" /> +?> + +<meta name="Author" content="ZABBIX SIA" /> + +<link rel="stylesheet" href="css.css" /> <?php if(isset($DB['DB']) && !is_null($DB['DB'])){ $css = false; @@ -585,11 +586,9 @@ COpt::compare_files_with_menu($ZBX_MENU); access_deny(); } - if(version_compare(phpversion(), '5.1.0RC1', '>=') && $page['type'] == PAGE_TYPE_HTML) - { + if(version_compare(phpversion(), '5.1.0RC1', '>=') && $page['type'] == PAGE_TYPE_HTML){ $tmezone = ini_get('date.timezone'); - if(empty($tmezone)) - { + if(empty($tmezone)) { info('Timezone for PHP is not set. Please set "date.timezone" option in php.ini.'); date_default_timezone_set('UTC'); } |
