13
|
1 |
<?php |
47
|
2 |
|
119
|
3 |
/* Poweradmin, a friendly web-based admin tool for PowerDNS. |
47
|
4 |
* See <https://rejo.zenger.nl/poweradmin> for more details. |
|
5 |
* |
|
6 |
* Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl> |
|
7 |
* |
|
8 |
* This program is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* This program is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
21 |
|
13
|
22 |
require_once("inc/toolkit.inc.php"); |
82
|
23 |
include_once("inc/header.inc.php"); |
13
|
24 |
|
82
|
25 |
if($_POST["submit"]) { |
|
26 |
change_user_pass($_POST); |
13
|
27 |
} |
|
28 |
|
82
|
29 |
echo " <h2>" . _('Change password') . "</h2>\n"; |
|
30 |
echo " <form method=\"post\" action=\"change_password.php\">\n"; |
|
31 |
echo " <table border=\"0\" CELLSPACING=\"4\">\n"; |
|
32 |
echo " <tr>\n"; |
|
33 |
echo " <td class=\"n\">" . _('Current password') . ":</td>\n"; |
|
34 |
echo " <td class=\"n\"><input type=\"password\" class=\"input\" NAME=\"currentpass\" value=\"\"></td>\n"; |
|
35 |
echo " </tr>\n"; |
|
36 |
echo " <tr>\n"; |
|
37 |
echo " <td class=\"n\">" . _('New password') . ":</td>\n"; |
|
38 |
echo " <td class=\"n\"><input type=\"password\" class=\"input\" NAME=\"newpass\" value=\"\"></td>\n"; |
|
39 |
echo " </tr>\n"; |
|
40 |
echo " <tr>\n"; |
|
41 |
echo " <td class=\"n\">" . _('New password') . ":</td>\n"; |
|
42 |
echo " <td class=\"n\"><input type=\"password\" class=\"input\" NAME=\"newpass2\" value=\"\"></td>\n"; |
|
43 |
echo " </tr>\n"; |
|
44 |
echo " <tr>\n"; |
|
45 |
echo " <td class=\"n\"> </td>\n"; |
|
46 |
echo " <td class=\"n\">\n"; |
|
47 |
echo " <input type=\"submit\" class=\"button\" NAME=\"submit\" value=\"" . _('Change password') . "\">\n"; |
|
48 |
echo " </td>\n"; |
|
49 |
echo " </tr>\n"; |
|
50 |
echo " </table>\n"; |
|
51 |
echo " </form>\n"; |
13
|
52 |
|
|
53 |
include_once("inc/footer.inc.php"); |
|
54 |
?> |