4 * http://opencaps.atrc.utoronto.ca
\r
6 * Copyright 2009 Heidi Hazelton
\r
7 * Adaptive Technology Resource Centre, University of Toronto
\r
9 * Licensed under the Educational Community License (ECL), Version 2.0.
\r
10 * You may not use this file except in compliance with this License.
\r
11 * http://www.opensource.org/licenses/ecl2.php
\r
15 require('include/vitals.inc.php');
\r
17 if (isset($_POST['submit'])) {
\r
19 $this_user->login($_POST['login'], $_POST['password']);
\r
23 include('include/basic_header.inc.php');
\r
26 body { background-color:white; }
\r
28 <script language="JavaScript" src="../jscripts/sha-1factory.js" type="text/javascript"></script>
\r
30 <script language="JavaScript" type="text/javascript">
\r
32 function crypt_sha1() {
\r
33 document.form.password_hidden.value = hex_sha1(document.form.password.value + "<?php echo $_SESSION['token']; ?>");
\r
34 document.form.password.value = "";
\r
41 <p>To start a new captioning project or to return to an ongoing project, please login below. If you are new here, quickly <a href="register.php">register</a> with us!</p>
\r
44 <form action="login.php" method="post" id="form">
\r
46 <h1 style="float:left; margin-left:10px;"><img src="images/logo_sm.png" alt="Capscribe logo" /></h1>
\r
48 <dl class="col-list" style="width:33%; margin-left:auto; margin-right:auto;">
\r
49 <dt><label for="login">Login:</label></dt>
\r
50 <dd><input name="login" type="text" id="login" value="" /></dd>
\r
51 <dt><label for="pswd">Password:</label></dt>
\r
52 <dd><input name="password" type="password" id="pswd" value="" /></dd>
\r
54 <div style="text-align:right">
\r
55 <input type="submit" name="submit" value="Submit" class="button" style="width:5em; margin-right:10px;" />
\r