-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
59 lines (47 loc) · 1.4 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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="GolfHub, the virtual golf caddy to track your game.">
<link rel="stylesheet" type="text/css" href='style\main.css'>
<title>GolfHub</title>
</head>
<body>
<div class="bgimg3"></div>
<div class='topmessage'>
<?php
if (isset($_SESSION['userId'])) {
echo '<p>You are logged in, Welcome!</p>';
}
else {
echo '<p>You are not logged in.</p>';
}
?>
</div>
<div class="title">
<br>
<br>
<span class="border">GolfHub</span>
<br>
<br>
<br>
<span class="border2">Improve Your Game</span>
<br>
<br>
<br>
<?php
if (isset($_SESSION['userId'])) {
echo '<span class="border3"><a href="login.php" style="color:#fff;">Logout</a></span>';
}
else {
echo '<span class="border3"><a href="login.php" style="color:#fff;">Login</a></span>';
}
?>
<span class="border3"><a href="register.php" style="color:#fff;">Register</a></span>
</div>
</div>
</body>
</html>