From 37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc Mon Sep 17 00:00:00 2001 From: artem Date: Mon, 4 Jun 2007 13:42:03 +0000 Subject: - added constant ZBX_GUEST_USER (Artem) - added user check on 'guest' to 'history' (Artem) git-svn-id: svn://svn.zabbix.com/trunk@4231 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/page_header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/page_header.php') diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php index d776b53c..40e62c87 100644 --- a/frontends/php/include/page_header.php +++ b/frontends/php/include/page_header.php @@ -377,7 +377,7 @@ COpt::compare_files_with_menu($ZBX_MENU); $help->SetTarget('_blank'); $page_header_r_col = array($help); - if($USER_DETAILS["alias"] != "guest"){ + if($USER_DETAILS["alias"] != ZBX_GUEST_USER){ $page_header_r_col[] = array("|", new CLink(S_PROFILE, "profile.php", "small_font"),"|", new CLink(S_LOGOUT, "index.php?reconnect=1", "small_font")); @@ -443,7 +443,7 @@ COpt::compare_files_with_menu($ZBX_MENU); $sub_menu_table->Show(); } //------------------------------------- --------------------------------------- - if(isset($page['hist_arg'])){ + if(isset($page['hist_arg']) && ($USER_DETAILS["alias"] != ZBX_GUEST_USER)){ $table = new CTable(); $table->SetClass('history'); -- cgit