-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheader.php
More file actions
21 lines (20 loc) · 780 Bytes
/
header.php
File metadata and controls
21 lines (20 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div id=header>
<div class=left>
<img src="images/ui/logo_120px.png" alt="LivFit Logo">
</div>
<div class=right>
<?php
session_start();
if(isset($_SESSION["current_user"]))
{
echo "<input class=\"button\" onclick=\"location.href='signout.php';\" type=\"button\" value=\"Sign Out\">";
echo "<input class=\"button\" onclick=\"location.href='profilepage.php';\" type=\"button\" value=\"Profile\">";
echo "<div class=\"welcome\">Welcome to LivFit, ".$_SESSION["current_user"].".</div>";
}
else {
echo "<input class=\"button\" onclick=\"location.href='loginreg.php#register';\" type=\"button\" value=\"Sign Up\">";
echo "<input class=\"button\" onclick=\"location.href='loginreg.php#login';\" type=\"button\" value=\"Sign In\">";
}
?>
</div>
</div>