diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-04 13:42:03 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-04 13:42:03 +0000 |
| commit | 37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc (patch) | |
| tree | be498b8eb64e38ccdc3da50901c03039c956fb27 /frontends/php/include/page_header.php | |
| parent | b0d70e49ec39c7af96a13144fa6747b1b6eaeb20 (diff) | |
| download | zabbix-37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc.tar.gz zabbix-37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc.tar.xz zabbix-37d5d87fa9c1b4f2e9c1ff56aa9a903b04ba45fc.zip | |
- 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
Diffstat (limited to 'frontends/php/include/page_header.php')
| -rw-r--r-- | frontends/php/include/page_header.php | 4 |
1 files changed, 2 insertions, 2 deletions
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();
}
//------------------------------------- <HISTORY> ---------------------------------------
- if(isset($page['hist_arg'])){
+ if(isset($page['hist_arg']) && ($USER_DETAILS["alias"] != ZBX_GUEST_USER)){
$table = new CTable();
$table->SetClass('history');
|
