-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader.php
More file actions
40 lines (36 loc) · 1.41 KB
/
header.php
File metadata and controls
40 lines (36 loc) · 1.41 KB
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
<!--
Smart Chat
Authors:
Rishi Dua <https://github.com/rishirdua>
Harvineet Singh <https://github.com/harvineet>
File description: Header with links
This projected is licensed under the terms of the MIT license. See LICENCE.txt for details
-->
<header>
<div class="row-top">
<div class="main">
<div class="wrapper">
<h1><a class="logo" href="index.php">Smart Chat</a></h1>
<nav>
<ul class="menu">
<?php
include "config.php";
if (empty($_GET)) {
echo "<li><a href=\"index.php\">Login</a></li>";
}
else {
if (empty($_GET['alert'])) {
echo "<li><a href=\"logout.php?" . $_SERVER['QUERY_STRING'] . "\">Logout</a></li>";
}
else {
echo "<li><a href=\"index.php\">Login</a></li>";
}
}
?>
<li><a href="about.php">About</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>