summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/page_header.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 15:28:41 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 15:28:41 +0000
commit9848b90bd9eddf0324ffdc0d8f089c6c24683fe8 (patch)
tree755bae71a9ecbc5d3f3c9085c0583a345c0c00d8 /frontends/php/include/page_header.php
parent2a35ecbf642a185e3b53f66f783272e03fe99e93 (diff)
downloadzabbix-9848b90bd9eddf0324ffdc0d8f089c6c24683fe8.tar.gz
zabbix-9848b90bd9eddf0324ffdc0d8f089c6c24683fe8.tar.xz
zabbix-9848b90bd9eddf0324ffdc0d8f089c6c24683fe8.zip
- [DEV-118] added dashboard screen to monitoring (Artem)
- [ZBX-206] merged rev.5367:5370 of 1.4/ (Artem) [fixed case sensitive hosts sorting] - [DEV-119] changes how users online are counted (Artem) - implemented patch [added y axis calculation type: "Calculated [Min=0]"] (Artem) - changes in schema.sql (Artem) - fixed JS lib, url class (Artem) - some other small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5387 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/page_header.php')
-rw-r--r--frontends/php/include/page_header.php24
1 files changed, 16 insertions, 8 deletions
diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php
index d5805886..628a5447 100644
--- a/frontends/php/include/page_header.php
+++ b/frontends/php/include/page_header.php
@@ -52,6 +52,14 @@ COpt::profiling_start("page");
header('Content-Disposition: attachment; filename="'.$page['file'].'"');
define('ZBX_PAGE_NO_MENU', 1);
break;
+ case PAGE_TYPE_JS:
+ header('Content-Type: application/javascript; charset=UTF-8');
+ define('ZBX_PAGE_NO_MENU', 1);
+ break;
+ case PAGE_TYPE_HTML_BLOCK:
+ header('Content-Type: text/plain; charset=UTF-8');
+ define('ZBX_PAGE_NO_MENU', 1);
+ break;
case PAGE_TYPE_HTML:
default:
if(!isset($page['encoding']))
@@ -63,18 +71,17 @@ COpt::profiling_start("page");
if(!isset($page['title'])) $page['title'] = 'ZABBIX';
- if(defined('ZBX_DISTRIBUTED'))
- {
+ if(defined('ZBX_DISTRIBUTED')){
if($curr_node_data = DBfetch(DBselect('select * from nodes where nodeid='.get_current_nodeid(false))))
$page['title'] .= ' ('.$curr_node_data['name'].')';
}
- if(defined('ZBX_PAGE_DO_REFRESH') && $USER_DETAILS["refresh"])
- {
+
+ if(defined('ZBX_PAGE_DO_REFRESH') && $USER_DETAILS["refresh"]){
$page['title'] .= ' [refreshed every '.$USER_DETAILS['refresh'].' sec]';
- /* header('Refresh: '.$USER_DETAILS["refresh"]); */ /* is not part of the official HTTP specification */
}
- break; /* case PAGE_TYPE_HTML */
- } /* switch($page["type"]) */
+ break;
+ }
+ /* switch($page["type"]) */
/* NOTE - menu array format:
first level:
@@ -87,14 +94,15 @@ COpt::profiling_start("page");
'url' = real url for this page
'label' = submenu title, if missed menu skipped, but remmembed as last visited page.
'sub_pages' = collection of pages for displaying but dont remember as last visited.
-
*/
+
$ZBX_MENU = array(
"view"=>array(
"label" => S_MONITORING,
"node_perm" => PERM_READ_LIST,
"default_page_id" => 0,
"pages"=>array(
+ array("url"=>"dashboard.php" ,"label"=>S_DASHBOARD ),
array("url"=>"overview.php" ,"label"=>S_OVERVIEW ),
array("url"=>"httpmon.php" ,"label"=>S_WEB ,
"sub_pages"=>array("httpdetails.php")