-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
39 lines (33 loc) · 912 Bytes
/
header.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title> PHP Project 01</title>
<link href="">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/stylesheet.css">
</head>
<body>
<nav>
<div class ="wrapper">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="discover.php">About Us</a></li>
<?php
if(isset($_SESSION["useruid"])){
echo "<li><a href='bmrcalculate.php'>Calculate BMR</a></li>";
echo "<li><a href='profile.php'>profile page</a></li>";
echo "<li><a href='includes/logout.inc.php'>Log out</a></li>";
}
else{
echo "<li><a href='signup.php'>Sign Up</a></li>";
echo "<li><a href='login.php'>Log In</a></li>";
}
?>
</ul>
</div>
</nav>
<div class="wrapper">