From b6f0565a4e0809d29950d26e95050ff4a3deaa8f Mon Sep 17 00:00:00 2001 From: artem Date: Mon, 21 Jan 2008 15:44:31 +0000 Subject: - [DEV-97] added screen for easier creation of locales (Artem); - [ZBX-253] fixes problem in frontend with long int values (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5268 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/index.php') diff --git a/frontends/php/index.php b/frontends/php/index.php index 6ec3c17d..e71e19f4 100644 --- a/frontends/php/index.php +++ b/frontends/php/index.php @@ -62,11 +62,11 @@ $password = md5(get_request("password","")); $row = DBfetch(DBselect('SELECT u.userid,u.alias,u.name,u.surname,u.url,u.refresh '. - ' FROM users u '. + ' FROM users u, users_groups ug, usrgrp g '. ' WHERE u.alias='.zbx_dbstr($name). ' AND u.passwd='.zbx_dbstr($password). ' AND '.DBin_node('u.userid', $ZBX_LOCALNODEID). - ' AND status='.USER_STATUS_ENABLED)); + ' AND u.status='.USER_STATUS_ENABLED)); if($row){ $sessionid = md5(time().$password.$name.rand(0,10000000)); -- cgit