summaryrefslogtreecommitdiffstats
path: root/frontends/php/users.html
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-05-01 16:01:40 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-05-01 16:01:40 +0000
commitba3fc7f6fabf0fa79fa48bf8039515244ee62a68 (patch)
tree081f2993cb0606d51d919458ccf3083c30994f9d /frontends/php/users.html
parent53dc3617b87ee0e05a7e9b14a37437f96fedf275 (diff)
Warnings elimination in PHP frontend.
git-svn-id: svn://svn.zabbix.com/trunk@61 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/users.html')
-rw-r--r--frontends/php/users.html28
1 files changed, 16 insertions, 12 deletions
diff --git a/frontends/php/users.html b/frontends/php/users.html
index 65015232..b81995bc 100644
--- a/frontends/php/users.html
+++ b/frontends/php/users.html
@@ -12,22 +12,25 @@
?>
<?
- if($register=="add")
+ if(isset($register))
{
- if($password1==$password2)
+ if($register=="add")
{
- $result=add_user($groupid,$name,$surname,$alias,$password1);
+ if($password1==$password2)
+ {
+ $result=add_user($groupid,$name,$surname,$alias,$password1);
+ }
}
- }
- if($register=="delete")
- {
- delete_user($userid);
- }
- if($register=="update")
- {
- if($password1==$password2)
+ if($register=="delete")
+ {
+ delete_user($userid);
+ }
+ if($register=="update")
{
- update_user($userid,$groupid,$name,$surname,$alias,$password1);
+ if($password1==$password2)
+ {
+ update_user($userid,$groupid,$name,$surname,$alias,$password1);
+ }
}
}
?>
@@ -44,6 +47,7 @@
$result=DBselect("select u.userid,u.alias,u.name,u.surname,g.name from users u,groups g where u.groupid=g.groupid order by g.name,u.alias");
echo "<CENTER>";
+ $col=0;
for($i=0;$i<DBnum_rows($result);$i++)
{
if($col==1)