summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/users.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/users.inc.php')
-rw-r--r--frontends/php/include/users.inc.php10
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");