-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprofile.php
More file actions
42 lines (42 loc) · 1.12 KB
/
Copy pathprofile.php
File metadata and controls
42 lines (42 loc) · 1.12 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
40
41
42
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<style>
body {
font: 1em sans-serif;
font-size: larger;
text-align: center;
}
</style>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<nav>
<a href="/">Home</a>
<a href="faq.php">FAQ</a>
<a href="about.php">About Me</a>
<a href="contactme.php">Contact Me</a>
<a href="support.php">Support</a>
<a href="profile.php">Profile</a>
</nav>
<p>
<?php
if (isset($_SESSION["username"])) {
echo "<p>Hello ". $_SESSION["username"] ."</p>";
echo "<a href='logout.php'>logout</a> ";
}
else {
echo "<a href='signup.php'>signup</a> ";
echo "<a href='login.php'>login</a> ";
}
?>
</p>
</body>
</html>