summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/users.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-06 15:48:46 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-06 15:48:46 +0000
commit224ef1379dfb1c35ca45dcee50072406c76f714a (patch)
tree5079d7ad6d2a847e28dabf22a7f2f7e27dcb10b7 /frontends/php/include/users.inc.php
parent9950cb73ea6abb9150f265baa127efd52454f671 (diff)
downloadzabbix-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.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");