3 $onload = 'document.form.password.focus();';
5 require(AT_INCLUDE_PATH.'header.inc.php');
8 <script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
10 <script type="text/javascript">
11 function encrypt_password()
13 document.form.password_error.value = "";
15 err = verify_password(document.form.password.value, document.form.password2.value);
19 document.form.password_error.value = err;
23 document.form.form_password_hidden.value = hex_sha1(document.form.password.value);
24 document.form.password.value = "";
25 document.form.password2.value = "";
30 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
31 <input type="hidden" name="form_change" value="true" />
32 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
33 <input type="hidden" name="g" value="<?php echo $this->g; ?>" />
34 <input type="hidden" name="h" value="<?php echo $this->h; ?>" />
35 <input type="hidden" name="form_password_hidden" value="" />
36 <input type="hidden" name="password_error" value="" />
38 <div class="input-form" style="width: 400px;">
40 <?php echo _AT('password_new_blurb'); ?>
44 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
45 <input id="password" name="password" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['password'])); ?>" /><br />
46 <small>· <?php echo _AT('combination'); ?><br />
47 · <?php echo _AT('15_max_chars'); ?></small>
51 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('password_again'); ?></label><br />
52 <input id="password2" name="password2" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['password2'])); ?>" />
55 <div class="row buttons">
56 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onClick="encrypt_password()" />
57 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
62 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>