This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
62 lines (51 loc) · 2.08 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<?php
require_once 'functions.php';
$userstr = '';
if (isset($_SESSION['user'])) {
$user = $_SESSION['user'];
$loggedin = TRUE;
$userstr = " ($user)";
}
if (!$loggedin)
die();
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Style sheets -->
<link rel="stylesheet" href="css/reset.css" type="text/css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/home.css" type="text/css"> <!-- main style -->
<!-- Additional Standarized Javascript Libraries for enhanced user experience -->
<script src="js/jquery-2.1.1.js" type="text/javascript"></script> <!-- JQuery -->
<!-- Sidebar Javascript Implementation-->
<script src="js/sidebar.js" type="text/javascript"></script>
<title>Sonder</title>
<link href="img/favicon.ico" rel="icon" type="image/x-icon">
</head>
<body>
<div class='wrapper'>
<div class='sidebar'>
<div class='title'>
<?php
echo $user;
if(file_exists('user_images/'.$user.'.jpg')){
echo "<img src = 'user_images/$user.jpg' alt='profile pic' class='userImage' />";
}
else {
echo "<img src = 'img/logo-small.png' alt='profile pic' class='userImage' />";
}
?>
</div>
<ul class='nav'>
<li><a href='members.php' >Members</a></li>
<li><a href='friends.php' >Friends</a></li>
<li><a href='messages.php'>Messages</a></li>
<li><a href='profile.php'>Edit Profile</a></li>
<li><a href='logout.php'>Logout</a></li>
</ul>
</div>
<div class='content isOpen'>
<a class='sidebar-button'></a>
<div class = "siteContent">