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.form_password.focus();';
15 require(TR_INCLUDE_PATH.'header.inc.php');
19 <script language="JavaScript" type="text/javascript" src="include/jscripts/sha-1factory.js"></script>
21 <script type="text/javascript">
22 function encrypt_password()
24 document.form.form_password_hidden.value = hex_sha1(document.form.form_password.value);
25 document.form.form_password.value = "";
29 <div class="input-form">
30 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('change_email'); ?></legend>
32 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
33 <input type="hidden" name="form_password_hidden" value="" />
35 <table class="form-data" align="center">
38 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
39 <label for="form_password"><?php echo _AT('password'); ?></label>
42 <input id="form_password" name="form_password" type="password" size="15" maxlength="15" value="" />
48 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
49 <label for="email"><?php echo _AT('email_address'); ?></label>
52 <input id="email" name="email" type="text" size="50" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
58 <p class="submit_button">
59 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onclick="encrypt_password()" />
60 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
70 <?php require(TR_INCLUDE_PATH.'footer.inc.php'); ?>