bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/0.1
9.5.1
by galaxyAbstractor
Moved shared js, css and php, updated all paths in DuggaSys. |
1 |
<?php
|
2 |
if(session_id() != '') { //If there is a session started destroy it to make sure nothing is stored in the session |
|
3 |
session_destroy(); |
|
4 |
}
|
|
5 |
?>
|
|
6 |
<!DOCTYPE html>
|
|
7 |
<html> |
|
8 |
<head> |
|
9 |
<meta charset="utf-8" /> |
|
10 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
11 |
<script type="text/javascript" src="js/md5.js"></script> |
|
12 |
<link href="css/base.css" rel="stylesheet" type="text/css" /> |
|
13 |
<link href="css/login.css" rel="stylesheet" type="text/css" /> |
|
14 |
<title><?php $pagetitle ?></title> |
|
15 |
<script lang="Javascript"> |
|
16 |
function hashPassword(){ |
|
17 |
// alert("pre " + document.forms["loginForm"]["password"].value + "!"); |
|
18 |
document.forms["loginForm"]["password"].value=hex_md5(document.forms["loginForm"]["password"].value); |
|
19 |
// alert("post " + document.forms["loginForm"]["password"].value + "!"); |
|
20 |
} |
|
21 |
</script> |
|
22 |
</head> |
|
23 |
<body> |
|
24 |
<form name="loginForm" action="<?php echo $duggaPageName; ?>" method="post" onsubmit="hashPassword();"> |
|
25 |
<h3>Dugga login</h3> |
|
26 |
<label for="loginName" >Login name:</label> |
|
27 |
<input type="text" name="loginName" placeholder="Your login name (eg. a02leifo)" /><br /> |
|
28 |
<label for="password">Password:</label> |
|
29 |
<input type="password" name="password" placeholder="Your password"/> |
|
30 |
<input type="submit" name="loginSubmit" value="Logga in" /> |
|
31 |
</form> |
|
32 |
<?php
|
|
33 |
if (isset($errorMsg) && $errorMsg!="") { |
|
34 |
echo "<h3>" . $errorMsg . "</h3>"; |
|
35 |
}
|
|
36 |
?>
|
|
37 |
</body> |
|
38 |
</html> |