2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2010 */
\r
6 /* Inclusive Design Institute */
\r
8 /* This program is free software. You can redistribute it and/or */
\r
9 /* modify it under the terms of the GNU General Public License */
\r
10 /* as published by the Free Software Foundation. */
\r
11 /************************************************************************/
\r
14 $onload = 'document.form.form_login.focus();';
\r
16 include(TR_INCLUDE_PATH.'header.inc.php');
\r
19 <script language="JavaScript" src="include/jscripts/sha-1factory.js" type="text/javascript"></script>
\r
21 <script type="text/javascript">
\r
23 * Encrypt login password with sha1
\r
25 function encrypt_password() {
\r
26 document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "<?php echo $_SESSION['token']; ?>");
\r
27 document.form.form_password.value = "";
\r
32 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
\r
33 <?php if (isset($_REQUEST['oauth_token'])) {?>
\r
34 <input type="hidden" name="oauth_token" value="<?php echo AT_print($_REQUEST['oauth_token'], 'input.hidden'); ?>" />
\r
36 <?php if (isset($_REQUEST['oauth_callback'])) {?>
\r
37 <input type="hidden" name="oauth_callback" value="<?php echo AT_print($_REQUEST['oauth_callback'], 'input.hidden'); ?>" />
\r
39 <input type="hidden" name="form_password_hidden" value="" />
\r
40 <div class="input-form">
\r
41 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('login') ;?></legend>
\r
42 <div style="width:60%; margin-left:auto; margin-right:auto;">
\r
43 <p><small><?php echo _AT('required_field_text'); ?></small></p>
\r
44 <dl class="form_layout">
\r
45 <dt><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name_or_email'); ?></label></dt>
\r
46 <dd><input type="text" name="form_login" size="50" id="login" class="formfield" /></dd>
\r
47 <dt><span class="required" align="right" title="<?php echo _AT('required_field'); ?>">*</span><label for="pass"><?php echo _AT('password'); ?></label></dt>
\r
48 <dd><input type="password" name="form_password" size="50" id="pass" class="formfield" /></dd>
\r
50 <p class="submit_button">
\r
51 <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="submit" onclick="return encrypt_password();" />
\r
54 <p style="font-size:small; width:60%; margin-left:auto; margin-right:auto;"><span style="font-size:x-small"><?php echo _AT('login_text');?></span></p>
\r
59 <?php include(TR_INCLUDE_PATH.'footer.inc.php'); ?>