-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
43 lines (39 loc) · 1.71 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
<?php
include 'databaseManager.php';
include 'fileManager.php';
include 'interfaceBuilder.php';
$dbManager = new databaseManager();
$dbManager->startSession();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>ROSEN</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<img src="/rosen/logo.png" height="50" width="50">
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="/">Home</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php
if (!isset($_SESSION['token'])) {
echo '<li><a href="/register.php"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>';
} else {
echo '<li><a href="/rosen/logoff.php"><big><b>' . $_SESSION['username'] . '</b></big>: Logout</a></li>';
}
?>
</ul>
</div>
</nav>
<div class="container">