diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-07-04 06:34:33 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-07-04 06:34:33 +0000 |
commit | 2ea040cd24640d5cdb43b781025f7e7f96c87be4 (patch) | |
tree | 9c81128d2a502c4dc727ef7865747847a6b0ab4a /frontends/php/profile.php | |
parent | cdf4f61a5d660da907e18aff9a481eca8dd9e2a1 (diff) | |
download | zabbix-2ea040cd24640d5cdb43b781025f7e7f96c87be4.tar.gz zabbix-2ea040cd24640d5cdb43b781025f7e7f96c87be4.tar.xz zabbix-2ea040cd24640d5cdb43b781025f7e7f96c87be4.zip |
- new utility zabbix_get (Alexei)
- added src/zabbix_get/* (Alexei)
- user timeout time is configurable (Alexei)
- added support of locales on user level (Alexei)
- added support of user profiles (Alexei)
- removed include/local_en.inc.php
- added include/locales/.htaccess (Alexei)
- added include/locales/en_en.inc.php (Alexei)
- added include/locales/de_de.inc.php (Alexei)
- added include/locales/en_en.inc.php (Alexei)
- added column users.lang (Alexei)
- added column users.autologout (Alexei)
- added frontends/php/profile.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1900 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/profile.php')
-rw-r--r-- | frontends/php/profile.php | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/frontends/php/profile.php b/frontends/php/profile.php new file mode 100644 index 00000000..735f06e9 --- /dev/null +++ b/frontends/php/profile.php @@ -0,0 +1,63 @@ +<?php +/* +** ZABBIX +** Copyright (C) 2000-2005 SIA Zabbix +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 2 of the License, or +** (at your option) any later version. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +**/ +?> +<?php + include "include/config.inc.php"; + include "include/forms.inc.php"; + + $page["title"] = S_USER_PROFILE; + $page["file"] = "profile.php"; + + show_header($page["title"],0,0); +// insert_confirm_javascript(); +?> + +<?php + if(isset($_GET["register"])) + { + if($_GET["register"]=="update profile") + { + if($_GET["password1"]==$_GET["password2"]) + { + $result=update_user_profile($_GET["userid"],$_GET["password1"],$_GET["url"],$_GET["autologout"],$_GET["lang"]); + show_messages($result, S_USER_UPDATED, S_CANNOT_UPDATE_USER); + if($result) + add_audit(AUDIT_ACTION_UPDATE,AUDIT_RESOURCE_USER,"User ID [".$_GET["userid"]."]"); + } + else + { + show_error_message(S_CANNOT_UPDATE_USER_BOTH_PASSWORDS); + } + } + } +?> + +<?php + show_table_header(S_USER_PROFILE_BIG." : ".$USER_DETAILS["name"]." ".$USER_DETAILS["surname"]); + echo "<br>"; +?> + +<?php + @insert_user_form($USER_DETAILS["userid"],1); +?> + +<?php + show_footer(); +?> |