2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
8 /* This program is free software. You can redistribute it and/or */
9 /* modify it under the terms of the GNU General Public License */
10 /* as published by the Free Software Foundation. */
11 /************************************************************************/
14 $onload = 'document.form.password.focus();';
16 require(TR_INCLUDE_PATH.'header.inc.php');
19 <script language="JavaScript" src="include/jscripts/sha-1factory.js" type="text/javascript"></script>
21 <script type="text/javascript">
22 function encrypt_password()
24 document.form.password_error.value = "";
26 err = verify_password(document.form.password.value, document.form.password2.value);
30 document.form.password_error.value = err;
34 document.form.form_password_hidden.value = hex_sha1(document.form.password.value);
35 document.form.password.value = "";
36 document.form.password2.value = "";
41 <div class="input-form">
42 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('password_reminder'); ?></legend>
44 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
45 <input type="hidden" name="form_change" value="true" />
46 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
47 <input type="hidden" name="g" value="<?php echo $this->g; ?>" />
48 <input type="hidden" name="h" value="<?php echo $this->h; ?>" />
49 <input type="hidden" name="form_password_hidden" value="" />
50 <input type="hidden" name="password_error" value="" />
52 <table class="form-data" align="center" width="60%">
54 <td colspan="2" align="left"><?php echo _AT('password_new_blurb'); ?></td>
57 <tr><td><br /></td></tr>
61 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
62 <label for="password"><?php echo _AT('new_password'); ?></label>:
65 <input id="password" name="password" type="password" size="25" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['password'])); ?>" />
71 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
72 <label for="password2"><?php echo _AT('password_again'); ?></label>:
75 <input id="password2" name="password2" type="password" size="25" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['password2'])); ?>" />
81 <p class="submit_button">
82 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onClick="encrypt_password()" />
83 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
93 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>