summaryrefslogtreecommitdiffstats
path: root/frontends/php/users.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-12-19 20:03:59 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-12-19 20:03:59 +0000
commit23805aceca018f86f66e5bc45a9306c8b33b7a41 (patch)
treea295a5b4520458e9a954a6ef1d09613b5b1a7fec /frontends/php/users.php
parentbfa81a03b8d93236b28e73b5d816766fc9888eff (diff)
downloadzabbix-23805aceca018f86f66e5bc45a9306c8b33b7a41.tar.gz
zabbix-23805aceca018f86f66e5bc45a9306c8b33b7a41.tar.xz
zabbix-23805aceca018f86f66e5bc45a9306c8b33b7a41.zip
- fixed possible zabbix_suckerd crash. It may happen if socket() returns 0.
(Alexei) - added new Host status - Template(3). )Alexei) - fixed group "all" in latest.php (Alexei) - do not dump "Expression cannot be evaluated" in case if function.lastvalue is NULL. Logic was changed a bit, but the message is still there. (Alexei) - show who is online in User config form. (Alexei) - when ran first time, some triggers becomes TRUE (like files was changed). This is already fixed. This bug does not exist. (Alexei) - fixed bug in queue.php select statement. Trapper type will not be selected. (Alexei) - when W2000 with SNMP agent restarted, items will becomes Not Supported. There is no such bug in CVS code anymore. (Alexei) - map will show host status in case of trigger based on trapper (Alexei) - fixed bug in zabbix_suckerd's select statements. Trapper type will not be selected. (Alexei) - new protocol for Zabbix agents, Support for ZBX_ERROR and ZBX_NOTSUPPORTED. (Alexei) - about.hph: version of Zabbix was changed to 1.0beta7 (Alexei) - items.php: "Delay" renamed to "Update interval". (Alexei) - fixed precision issues in zabbix_agent(d) and zabbix_suckerd. All floats converted to double. (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@596 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/users.php')
-rw-r--r--frontends/php/users.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontends/php/users.php b/frontends/php/users.php
index c2f95369..c41cb807 100644
--- a/frontends/php/users.php
+++ b/frontends/php/users.php
@@ -73,6 +73,7 @@
echo "<TD WIDTH=10%><B>Alias</B></TD>";
echo "<TD WIDTH=10%><B>Name</B></TD>";
echo "<TD WIDTH=10%><B>Surname</B></TD>";
+ echo "<TD WIDTH=10%><B>Is online?</B></TD>";
echo "<TD WIDTH=10%><B>Actions</B></TD>";
echo "</TR>";
@@ -91,6 +92,17 @@
echo "<TD>".$row["alias"]."</TD>";
echo "<TD>".$row["name"]."</TD>";
echo "<TD>".$row["surname"]."</TD>";
+ $sql="select count(*) as count from sessions where userid=".$row["userid"]." and lastaccess-600<".time();
+ $result2=DBselect($sql);
+ $row2=DBfetch($result2);
+ if($row2["count"]>0)
+ {
+ echo "<TD><font color=\"00AA00\">Yes</font></TD>";
+ }
+ else
+ {
+ echo "<TD><font color=\"AA0000\">No</font></TD>";
+ }
echo "<TD>";
if(check_right("User","U",$row["userid"]))
{