diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-30 10:00:56 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-30 10:00:56 +0000 |
commit | b45f01fc040bc1f3f028814f2aab42a995837f20 (patch) | |
tree | 785af96c0d1c99d47072de44f4b325e58ea35e4a /frontends/php/profile.php | |
parent | b9c0d1a9d017ae94759f0058466912fdfcac67b0 (diff) | |
download | zabbix-b45f01fc040bc1f3f028814f2aab42a995837f20.tar.gz zabbix-b45f01fc040bc1f3f028814f2aab42a995837f20.tar.xz zabbix-b45f01fc040bc1f3f028814f2aab42a995837f20.zip |
- [DEV-161] changed greeting message (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5675 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/profile.php')
-rw-r--r-- | frontends/php/profile.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/frontends/php/profile.php b/frontends/php/profile.php index b5725b38..e6e697b3 100644 --- a/frontends/php/profile.php +++ b/frontends/php/profile.php @@ -60,21 +60,18 @@ include_once "include/page_header.php"; check_fields($fields); ?> <?php - if(isset($_REQUEST["cancel"])) - { - Redirect('index.php'); + if(isset($_REQUEST["cancel"])){ + $url = get_profile('web.menu.view.last', 'index.php'); + Redirect($url); } - elseif(isset($_REQUEST["save"])) - { + else if(isset($_REQUEST["save"])){ $_REQUEST["password1"] = get_request("password1", null); $_REQUEST["password2"] = get_request("password2", null); - if(isset($_REQUEST["password1"]) && $_REQUEST["password1"] == "") - { + if(isset($_REQUEST["password1"]) && $_REQUEST["password1"] == ""){ show_error_message(S_ONLY_FOR_GUEST_ALLOWED_EMPTY_PASSWORD); } - elseif($_REQUEST["password1"]==$_REQUEST["password2"]) - { + else if($_REQUEST["password1"]==$_REQUEST["password2"]){ $result=update_user_profile($USER_DETAILS["userid"],$_REQUEST["password1"], $_REQUEST["url"],get_request("autologin",0),$_REQUEST["autologout"], $_REQUEST["lang"],$_REQUEST['theme'],$_REQUEST["refresh"] |