-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsessionJoin.php
More file actions
39 lines (35 loc) · 1.08 KB
/
sessionJoin.php
File metadata and controls
39 lines (35 loc) · 1.08 KB
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
<?php
include_once 'includes/db_connect.php';
include_once 'includes/functions.php';
sec_session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script>
// Remove storage whenever user joins new session
sessionStorage.removeItem('attempts');
sessionStorage.removeItem('answered');
</script>
</head>
<body>
<?php if ((login_check($mysqli) == true)) : ?>
<p>You have joined the session.</p>
<table>
<tr>
Teams within session:
</tr>
<tr class="sessionTeamUpdate">
</tr>
</table>
<p>Return to <a href="index.php">login page</a></p>
<?php else : ?>
<p>
<span class="error">You are not authorized to access this page.</span> Please <a href="index.php">login</a>.
</p>
<?php endif; ?>
</body>
</html>