summaryrefslogtreecommitdiffstats
path: root/frontends/php/profile.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-26 12:33:26 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-26 12:33:26 +0000
commitc228c7b2c9ea0b4d0e65295e47992b1e559447fc (patch)
tree7ec77efdc12a83d823f7116d9708769caaa5018d /frontends/php/profile.php
parent401c0e953a8ad1bb7c7cedb5221cc29af76edd20 (diff)
downloadzabbix-c228c7b2c9ea0b4d0e65295e47992b1e559447fc.tar.gz
zabbix-c228c7b2c9ea0b4d0e65295e47992b1e559447fc.tar.xz
zabbix-c228c7b2c9ea0b4d0e65295e47992b1e559447fc.zip
- [DEV-116] added option to remember user login (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5406 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/profile.php')
-rw-r--r--frontends/php/profile.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/php/profile.php b/frontends/php/profile.php
index 8f3a8c75..b5725b38 100644
--- a/frontends/php/profile.php
+++ b/frontends/php/profile.php
@@ -43,6 +43,7 @@ include_once "include/page_header.php";
"password2"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})&&isset({form})&&({form}!="update")&&isset({change_password})'),
"lang"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({save})'),
"theme"=> array(T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({save})'),
+ 'autologin'=> array(T_ZBX_INT, O_OPT, null, IN('0,1'), null),
"autologout"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(0,3600),'isset({save})'),
"url"=> array(T_ZBX_STR, O_OPT, null, null, 'isset({save})'),
"refresh"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(0,3600),'isset({save})'),
@@ -74,7 +75,11 @@ include_once "include/page_header.php";
}
elseif($_REQUEST["password1"]==$_REQUEST["password2"])
{
- $result=update_user_profile($USER_DETAILS["userid"],$_REQUEST["password1"],$_REQUEST["url"],$_REQUEST["autologout"],$_REQUEST["lang"],$_REQUEST['theme'],$_REQUEST["refresh"]);
+ $result=update_user_profile($USER_DETAILS["userid"],$_REQUEST["password1"],
+ $_REQUEST["url"],get_request("autologin",0),$_REQUEST["autologout"],
+ $_REQUEST["lang"],$_REQUEST['theme'],$_REQUEST["refresh"]
+ );
+
show_messages($result, S_USER_UPDATED, S_CANNOT_UPDATE_USER);
if($result)
add_audit(AUDIT_ACTION_UPDATE,AUDIT_RESOURCE_USER,