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.old_password.focus();';
16 require(TR_INCLUDE_PATH.'header.inc.php');
20 language="JavaScript" src="include/jscripts/sha-1factory.js" type="text/javascript"></script>
22 <script type="text/javascript">
23 function encrypt_password()
25 document.form.password_error.value = "";
27 document.form.form_old_password_hidden.value = hex_sha1(document.form.old_password.value);
28 document.form.old_password.value = "";
30 // verify new password
31 err = verify_password(document.form.password.value, document.form.password2.value);
35 document.form.password_error.value = err;
39 document.form.form_password_hidden.value = hex_sha1(document.form.password.value);
40 document.form.password.value = "";
41 document.form.password2.value = "";
46 <div class="input-form">
47 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('change_password'); ?></legend>
49 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
50 <input type="hidden" name="form_change" value="true" />
51 <input name="password_error" type="hidden" />
52 <input type="hidden" name="form_old_password_hidden" value="" />
53 <input type="hidden" name="form_password_hidden" value="" />
55 <table class="form-data" align="center">
58 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
59 <label for="old_password"><?php echo _AT('password_old'); ?></label>:
62 <input id="old_password" name="old_password" type="password" size="25" maxlength="15" />
68 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
69 <label for="password"><?php echo _AT('new_password'); ?></label>:
72 <input id="password" name="password" type="password" size="25" maxlength="15" />
78 <small>· <?php echo _AT('combination'); ?><br />
79 · <?php echo _AT('15_max_chars'); ?></small>
85 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
86 <label for="password2"><?php echo _AT('password_again'); ?></label>:
89 <input id="password2" name="password2" type="password" size="25" maxlength="15" />
95 <p class="submit_button">
96 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onclick="encrypt_password()" />
97 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
107 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>