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/config.inc.php | |
| parent | b0d70e49ec39c7af96a13144fa6747b1b6eaeb20 (diff) | |
- 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/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 1c633932..bf9e20f5 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -151,7 +151,7 @@ function TODO($msg) { echo "TODO: ".$msg.BR; } // DEBUG INFO!!! else { $USER_DETAILS = array( - "alias" =>"guest", + "alias" =>ZBX_GUEST_USER, "userid"=>0, "lang" =>"en_gb", "type" =>"0", @@ -1350,7 +1350,7 @@ $result = global $USER_DETAILS; $result = $default_value; - if($USER_DETAILS["alias"]!="guest") + if($USER_DETAILS["alias"]!=ZBX_GUEST_USER) { $db_profiles = DBselect("select * from profiles where userid=".$USER_DETAILS["userid"]." and idx=".zbx_dbstr($idx)); $profile=DBfetch($db_profiles); @@ -1383,7 +1383,7 @@ $result = global $USER_DETAILS; - if($USER_DETAILS["alias"]=="guest") + if($USER_DETAILS["alias"]==ZBX_GUEST_USER) { return; } |
