diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-12-06 15:48:46 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-12-06 15:48:46 +0000 |
| commit | 224ef1379dfb1c35ca45dcee50072406c76f714a (patch) | |
| tree | 5079d7ad6d2a847e28dabf22a7f2f7e27dcb10b7 /frontends/php/include/users.inc.php | |
| parent | 9950cb73ea6abb9150f265baa127efd52454f671 (diff) | |
| download | zabbix-224ef1379dfb1c35ca45dcee50072406c76f714a.tar.gz zabbix-224ef1379dfb1c35ca45dcee50072406c76f714a.tar.xz zabbix-224ef1379dfb1c35ca45dcee50072406c76f714a.zip | |
- added supporting of sqlite database for frontend (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3571 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/users.inc.php')
| -rw-r--r-- | frontends/php/include/users.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/include/users.inc.php b/frontends/php/include/users.inc.php index 278fab4d..a15bb65a 100644 --- a/frontends/php/include/users.inc.php +++ b/frontends/php/include/users.inc.php @@ -44,7 +44,7 @@ return 0; } - if(DBfetch(DBexecute("select * from users where alias=".zbx_dbstr($alias)." and ".DBid2nodeid('userid')."=".$ZBX_CURNODEID))) + if(DBfetch(DBselect("select * from users where alias=".zbx_dbstr($alias)." and ".DBid2nodeid('userid')."=".$ZBX_CURNODEID))) { error('User "'.$alias.'" already exists'); return 0; @@ -92,7 +92,7 @@ { global $ZBX_CURNODEID; - if(DBfetch(DBexecute("select * from users where alias=".zbx_dbstr($alias). + if(DBfetch(DBselect("select * from users where alias=".zbx_dbstr($alias). " and userid<>$userid and ".DBid2nodeid('userid')."=".$ZBX_CURNODEID))) { error("User '$alias' already exists"); @@ -161,7 +161,7 @@ return false; } - while($row=DBfetch(DBexecute('select actionid from actions where userid='.$userid))) + while($row=DBfetch(DBselect('select actionid from actions where userid='.$userid))) { $result = delete_action($row["actionid"]); if(!$result) return $result; @@ -200,7 +200,7 @@ { global $ZBX_CURNODEID; - if(DBfetch(DBexecute("select * from usrgrp where name=".zbx_dbstr($name)." and ".DBid2nodeid('usrgrpid')."=".$ZBX_CURNODEID))) + if(DBfetch(DBselect("select * from usrgrp where name=".zbx_dbstr($name)." and ".DBid2nodeid('usrgrpid')."=".$ZBX_CURNODEID))) { error("Group '$name' already exists"); return 0; @@ -235,7 +235,7 @@ { global $ZBX_CURNODEID; - if(DBfetch(DBexecute("select * from usrgrp where name=".zbx_dbstr($name). + if(DBfetch(DBselect("select * from usrgrp where name=".zbx_dbstr($name). " and usrgrpid<>".$usrgrpid." and ".DBid2nodeid('usrgrpid')."=".$ZBX_CURNODEID))) { error("Group '$name' already exists"); |
