1 <?php require(AT_INCLUDE_PATH.'header.inc.php');
6 <script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
8 <script type="text/javascript">
10 * Encrypt login password with sha1
12 function encrypt_password() {
13 document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "<?php echo $_SESSION['token']; ?>");
14 document.form.form_password.value = "";
19 <div class="input-form">
20 <div class="column" style="margin-top:0;">
21 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
22 <input type="hidden" name="form_login_action" value="true" />
23 <input type="hidden" name="form_course_id" value="<?php echo $this->form_course_id; ?>" />
24 <input type="hidden" name="form_password_hidden" value="" />
25 <input type="hidden" name="p" value="<?php echo urlencode($_GET['p']);?>" />
27 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('returning_user') ;?></legend>
28 <p><?php echo _AT('login_text') ;?></p>
29 <?php if ($_GET['course']): ?>
31 <h3><?php echo _AT('login'). ' ' . $this->title; ?></h3>
35 <label for="login"><?php echo _AT('login_name_or_email'); ?></label><br />
36 <input type="text" name="form_login" size="50" style="max-width: 80%; width: 80%;" id="login" /><br />
38 <label for="pass"><?php echo _AT('password'); ?></label><br />
39 <input type="password" class="formfield" name="form_password" style="max-width: 80%; width: 80%;" id="pass" />
41 <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="button" onclick="return encrypt_password();" />
47 if($_config['allow_registration'] ==1){
49 <div class="column" style="margin-top:0;">
50 <form action="registration.php" method="get">
52 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('new_user') ;?></legend>
53 <p><?php echo _AT('registration_text'); ?></p>
55 <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
56 <p><?php echo _AT('confirm_account_text'); ?></p>
58 <div style="width: 20%;margin-left:auto; margin-right:auto;margin-bottom:.6em;padding:.5em;">
60 <input type="submit" name="register" value="<?php echo _AT('register'); ?>" class="button" />
68 <br style="clear:both;" />
70 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>