diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-09-14 11:06:27 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-09-14 11:06:27 +0000 |
| commit | 8755f9643aba3cffc5320321618fbe8e7b78b73b (patch) | |
| tree | 61f79790fee2222b1d3c5c3cd3faf09c9de8f168 /frontends/php/users.php | |
| parent | 220a18752f8fefdd0af90ccd17cc045c2e6ae1a6 (diff) | |
| download | zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.tar.gz zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.tar.xz zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.zip | |
Initial integration of distributed monitoring.
Changes 3196:HEAD of branches/distributed
git-svn-id: svn://svn.zabbix.com/trunk@3306 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/users.php')
| -rw-r--r-- | frontends/php/users.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontends/php/users.php b/frontends/php/users.php index cf186a46..11d30306 100644 --- a/frontends/php/users.php +++ b/frontends/php/users.php @@ -211,8 +211,9 @@ $table=new CTableInfo(S_NO_USERS_DEFINED); $table->setHeader(array(S_ID,S_ALIAS,S_NAME,S_SURNAME,S_IS_ONLINE_Q,S_ACTIONS)); - $db_users=DBselect("select u.userid,u.alias,u.name,u.surname ". - "from users u order by u.alias"); + $db_users=DBselect("select userid,alias,name,surname ". + " from users where mod(userid,100)=".$ZBX_CURNODEID. + " order by alias"); while($db_user=DBfetch($db_users)) { if(!check_right("User","R",$db_user["userid"])) continue; @@ -306,7 +307,9 @@ $table = new CTableInfo(S_NO_USER_GROUPS_DEFINED); $table->setHeader(array(S_ID,S_NAME,S_MEMBERS)); - $result=DBselect("select usrgrpid,name from usrgrp order by name"); + $result=DBselect("select usrgrpid,name from usrgrp". + " where mod(usrgrpid,100)=".$ZBX_CURNODEID. + " order by name"); while($row=DBfetch($result)) { if(!check_right("User group","R",$row["usrgrpid"])) continue; |
