This repository has been archived by the owner on Nov 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
46 lines (46 loc) · 1.54 KB
/
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
40
41
42
43
44
45
46
<?php
include_once('includes/common.php');
if (strcmp($_SERVER['SCRIPT_FILENAME'], __FILE__) == 0) {
redirect_to('index', TRUE);
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="F. Baumann, H. Winter, J. Dittberner" />
<meta name="description" content="coffeestats.org | All about coffee" />
<title>coffeestats.org</title>
<link rel="stylesheet" type="text/css" href="../css/caffeine.css" />
<link rel="shortcut icon" href="../images/favicon.png" type="image/x-icon">
</head>
<body>
<?php render_flash('system'); ?>
<div id="wrapper">
<div id="header">
<?php
if (isset($login_session)) {
?>
<div id="account" class="rightfloated"><a href="/settings">Settings</a> / <a href="/auth/logout">Logout</a></div>
<?php
}
?>
<h1><a href="/">coffeestats.org</a></h1>
<p>...about what keeps you awake at night.</p>
</div>
<div id="content">
<?php
if (isset($login_session)) {
?>
<div id="navigation">
<ul>
<li><a href="/index" class="navindex">Home</a></li>
<li><a href="/profile" class="navprofile">Profile</a></li>
<li><a href="/explore" class="navexplore">Explore</a></li>
<li><a href="/overall" class="navoverall">Overall Stats</a></li>
<li><a href="/about" class="navabout">About</a></li>
</ul>
</div>
<?php
}
?>