4 * options.php - Change Password HTML page
6 * Copyright (c) 2004 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
11 * @subpackage change_password
14 define('SM_PATH','../../');
16 include_once (SM_PATH
. 'include/validate.php');
17 include_once (SM_PATH
. 'functions/page_header.php');
18 include_once (SM_PATH
. 'plugins/change_password/functions.php');
19 include_once (SM_PATH
. 'plugins/change_password/config.php');
21 /* the form was submitted, go for it */
22 if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST
)) {
24 /* perform basic checks */
25 $Messages = cpw_check_input();
27 /* if no errors, go ahead with the actual change */
28 if(count($Messages) == 0) {
29 $Messages = cpw_do_change();
33 displayPageHeader($color, 'None');
35 do_hook('change_password_init');
39 <table align
="center" cellpadding
="2" cellspacing
="2" border
="0">
40 <tr
><td bgcolor
="<?php echo $color[0] ?>">
41 <center
><b
><?php
echo _("Change Password") ?
></b
></center
>
44 if (isset($Messages) && count($Messages) > 0) {
46 foreach ($Messages as $line) {
47 echo htmlspecialchars($line) . "<br />\n";
53 <form method
="post" action
="<?php echo $_SERVER['PHP_SELF'] ?>">
56 <th align
="right"><?php
echo _("Current Password:")?
></th
>
57 <td
><input type
="password" name
="cpw_curpass" value
="" size
="20" /></td
>
60 <th align
="right"><?php
echo _("New Password:")?
></th
>
61 <td
><input type
="password" name
="cpw_newpass" value
="" size
="20" /></td
>
64 <th align
=right
><?php
echo _("Verify New Password:")?
></th
>
65 <td
><input type
="password" name
="cpw_verify" value
="" size
="20" /></td
>
68 <td align
="center" colspan
="2">
69 <input type
="submit" name
="cpw_go" value
="<?php echo _("Change Password
") ?>" /></td
>