-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
39 lines (37 loc) · 961 Bytes
/
header.php
File metadata and controls
39 lines (37 loc) · 961 Bytes
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 //header.php
session_start();
?>
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<LINK href="assets/css/styles.css" rel="stylesheet" type="text/css">
<script src="./assets/js/script.js" type="text/javascript"></script>
<html>
<head>
<title>Shopping Cart App</title>
</head>
<body>
<div id="page_wrap">
<div id="header">
<div id="login">
<nav>
<ul>
<?php
if(isset($_SESSION["userID"]))
{
echo "<li><a href='logout.php'>Logout</a></li>";
echo "<li><a href='modcart.php'>View Cart</a></li>";
}
else
{
?>
<li id="register">
<a href="register.php">Register</a>
</li>
<li id="login">
<a href="login.php">Login</a>
</li>
<?php } ?>
</ul>
</nav>
</div>
<a href="index.php"><h2>R & R's Online Store</h2></a>
</div>