Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

change_password.php 2.5KB

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