summaryrefslogtreecommitdiffstats
path: root/frontends/php/index.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-17 15:18:03 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-17 15:18:03 +0000
commit01e94d67317be183b74fa97bd3d15ee99ab27d69 (patch)
treeab0b8c8e4a6fa804f4171fcc42f5add9cf72eb13 /frontends/php/index.php
parent717eb6f9ed27471f3213d188d29bd267ff726a0f (diff)
downloadzabbix-01e94d67317be183b74fa97bd3d15ee99ab27d69.tar.gz
zabbix-01e94d67317be183b74fa97bd3d15ee99ab27d69.tar.xz
zabbix-01e94d67317be183b74fa97bd3d15ee99ab27d69.zip
- [DEV-175] improvements to showed users last login time (Artem)
- [DEV-178] more fixes to permission scheme (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5776 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/index.php')
-rw-r--r--frontends/php/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/index.php b/frontends/php/index.php
index 1dc8bdd1..cdb49450 100644
--- a/frontends/php/index.php
+++ b/frontends/php/index.php
@@ -47,7 +47,7 @@
add_audit(AUDIT_ACTION_LOGOUT,AUDIT_RESOURCE_USER,'Manual Logout');
zbx_unsetcookie('zbx_sessionid');
- DBexecute("delete from sessions where sessionid=".zbx_dbstr($sessionid));
+ DBexecute('UPDATE sessions SET status='.ZBX_SESSION_PASSIVE.' WHERE sessionid='.zbx_dbstr($sessionid));
unset($sessionid);
Redirect("index.php");
@@ -125,7 +125,7 @@
$sessionid = md5(time().$password.$name.rand(0,10000000));
zbx_setcookie('zbx_sessionid',$sessionid);
- DBexecute('INSERT INTO sessions (sessionid,userid,lastaccess) VALUES ('.zbx_dbstr($sessionid).','.$row['userid'].','.time().')');
+ DBexecute('INSERT INTO sessions (sessionid,userid,lastaccess,status) VALUES ('.zbx_dbstr($sessionid).','.$row['userid'].','.time().','.ZBX_SESSION_ACTIVE.')');
add_audit(AUDIT_ACTION_LOGIN,AUDIT_RESOURCE_USER,"Correct login [".$name."]");