delete_move_next uses GET and POST requests
[squirrelmail.git] / plugins / change_password / options.php
CommitLineData
27663afe 1<?php
2
3define('SM_PATH','../../');
4
5include_once (SM_PATH . 'include/validate.php');
6include_once (SM_PATH . 'functions/page_header.php');
7include_once (SM_PATH . 'plugins/change_password/functions.php');
8include_once (SM_PATH . 'plugins/change_password/config.php');
9
10/* the form was submitted, go for it */
11if(sqgetGlobalVar('cpw_go', $cpw_go, SQ_POST)) {
12 /* perform basic checks */
13 $Messages = cpw_check_input();
14 /* if no errors, go ahead with the actual change */
15 if(count($Messages) == 0) {
16 $Messages = cpw_do_change();
17 }
18}
19
20displayPageHeader($color, 'None');
21
22?>
23
24<br />
25<table align="center" cellpadding="2" cellspacing="2" border="0">
26<tr><td bgcolor="<?php echo $color[0] ?>">
27 <center><b><?php echo _("Change Password") ?></b></center>
28</td><?php
29
30if (isset($Messages) && count($Messages) > 0) {
31 echo "<tr><td>\n";
32 foreach ($Messages as $line) {
33 echo htmlspecialchars($line) . "<br />\n";
34 }
35 echo "</td></tr>\n";
36}
37
38?><tr><td>
39 <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
40 <table>
41 <tr>
42 <th align="right"><?php echo _("Current Password:")?></th>
43 <td><input type="password" name="cpw_curpass" value="" size="20" /></td>
44 </tr>
45 <tr>
46 <th align="right"><?php echo _("New Password:")?></th>
47 <td><input type="password" name="cpw_newpass" value="" size="20" /></td>
48 </tr>
49 <tr>
50 <th align=right><?php echo _("Verify New Password:")?></th>
51 <td><input type="password" name="cpw_verify" value="" size="20" /></td>
52 </tr>
53 <tr>
54 <td align="center" colspan="2">
55 <input type="submit" name="cpw_go" value="<?php echo _("Change Password") ?>" /></td>
56 </tr>
57 </table>
58 </form>
59</td></tr>
60</tr></table>
61</body></html>