3 define('SM_PATH','../../');
5 include_once (SM_PATH
. 'include/validate.php');
6 include_once (SM_PATH
. 'functions/page_header.php');
7 include_once (SM_PATH
. 'plugins/change_password/functions.php');
8 include_once (SM_PATH
. 'plugins/change_password/config.php');
10 /* the form was submitted, go for it */
11 if(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();
20 displayPageHeader($color, 'None');
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
>
30 if (isset($Messages) && count($Messages) > 0) {
32 foreach ($Messages as $line) {
33 echo htmlspecialchars($line) . "<br />\n";
39 <form method
="post" action
="<?php echo $_SERVER['PHP_SELF'] ?>">
42 <th align
="right"><?php
echo _("Current Password:")?
></th
>
43 <td
><input type
="password" name
="cpw_curpass" value
="" size
="20" /></td
>
46 <th align
="right"><?php
echo _("New Password:")?
></th
>
47 <td
><input type
="password" name
="cpw_newpass" value
="" size
="20" /></td
>
50 <th align
=right
><?php
echo _("Verify New Password:")?
></th
>
51 <td
><input type
="password" name
="cpw_verify" value
="" size
="20" /></td
>
54 <td align
="center" colspan
="2">
55 <input type
="submit" name
="cpw_go" value
="<?php echo _("Change Password
") ?>" /></td
>