-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
117 lines (103 loc) · 4.21 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
session_start();
if(!(isset($_SESSION['log'])) || $_SESSION['log'] != 1) {
$_SESSION['log'] = 0;
} else if($_SESSION['log'] == 1){
echo "<div class='hidden' id='redirect'>redirect</div>";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Raving Space | Space Game </title>
<meta name="description" content="Template">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
<link rel="stylesheet" href="css/main.css" />
<script src="JS/libs/jquery-1.11.2.min.js"></script>
<script src="JS/libs/jssha/src/sha512.js"></script>
<script src="JS/libs/chance.js"></script>
</head>
<body>
<!-- Lautausruutu ---->
<div id="loader"></div>
<header>
<div class="cont">
<div class="login">
<p class="log">Login</p>
</div>
<div class="signUp">
<p class="log">Sign Up</p>
</div>
</div>
</header>
<main>
<div id="phaserGame"></div>
<div class="fontLoader"></div>
<image src="assets/menuelements/RSlogo.png" alt="RSlogo" id="RSlogo"></image>
<div class="loginDialog">
<h class="dialogHeader">Login</h>
<div class="line"></div>
<p class="userLabel">Username</p>
<input class="username input username-login" type="text"/>
<span class="capsLockWarning" style="display:none">CAPS LOCK is active</span>
<p class="passLabel">Password</p>
<input class="password input password-login" type="password" value="" autocomplete="off"/>
<p class="forgot"><a id="requestResetPass" href="forgotyourpass.html">Forgot your password or username?</a></p>
<div class="loginCheck">
<p class="log">Login</p>
</div>
<div class="cancelLogin">
<p class="log">Cancel</p>
</div>
</div>
<!-- rekisteröitymisruutu --->
<div class="signupDialog">
<h class="dialogHeader">Register</h>
<div class="line"></div>
<p class="userLabel">Username *</p>
<input class="username username-register input" type="text"/>
<p class="passLabel">Password *</p>
<input class="password password-register input" type="password" value="" autocomplete="off" />
<p class="passLabelRetype">Retype Password *</p>
<input class="password-retype input" type="password" value="" autocomplete="off"/>
<span class="capsLockWarning" style="display:none">CAPS LOCK is active</span>
<p class="emailLabel">Email</p>
<input class="email input" type="text"/>
<div class="register">
<p class="log">Login</p>
</div>
<img class="info" src="assets/menuelements/info.png" alt="info" height="30" width="auto"/>
<div class="cancelLogin">
<p class="log">Cancel</p>
</div>
</div>
<!-- Salasanan nollausken pyyntö-->
<div class="requestResetDialog">
<h class="dialogHeader">Forgot your password?</h>
<div class="line"></div>
<p class="userLabel">Your email?</p>
<input class="username input username-login" id="resetEmail" type="text"/>
<span class="capsLockWarning" style="display:none">CAPS LOCK is active</span>
<div class="resetBtn">
<p id="checkResetBtn" class="log">Send reset link</p>
</div>
<div class="cancelLogin resetBtn">
<p class="log out">Cancel</p>
</div>
</div>
<div class="infoDialog">
<p class="infoText">You can only reset your password if you add your email. <br> Fields marked with * are mandatory</p>
</div>
</main>
</body>
<script>
if($("#redirect").length > 0){
$("#redirect").remove();
if(window.location.href == "http://student.labranet.jamk.fi/~H3492/RavingSpace/" || window.location.href == "http://student.labranet.jamk.fi/~H3492/RavingSpace/index.php")
{window.location.pathname = "~H3492/RavingSpace/game.php"}
else {window.location.pathname = "/RavingSpace/game.php"}
}
</script>
<script src="JS/login/handleLogin.js"></script>
</html>