-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
46 lines (44 loc) · 1.16 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
<?php
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: login.php");
exit;
}
?>
<head>
<center>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../css/jordan.css">
</head>
<body>
<h1>Welcome <?php echo htmlspecialchars($_SESSION["username"]); ?></h1>
<h1>All teams</h1>
<a href="logout.php">Logout</a>
<br>
<br>
<a href = "dashboard.php">Dashboard </a>
<br>
<br>
<a href = "addmatches.php"> Add Match Data</a>
<br>
<br>
<a href = "matches.html"> View Matches</a>
<br>
<br>
<a href = "editteams.php"> Add Team Data</a>
<br>
<br>
<a href = "addteams.php"> Add Teams</a>
<br>
<br>
<a href = "https://github.com/Lmello1/bullbots"> GitHub </a>
<br>
<br>
<a href = "teams.php">View teams</a>
<br>
<br>
</center>
</body>