-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathheader.php
52 lines (52 loc) · 1.29 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
<?php
header("X-Frame-Options: DENY"); // Clickjacking protection; included in all files
//redirect to HTTPS
if(!isset($_SERVER["HTTPS"]) || !$_SERVER["HTTPS"]){
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>The Easier, Secure Cloud<?php
if($title){
echo ' - ' . $title;
}?></title>
<meta http-equiv="X-FRAME-OPTIONS" content="DENY">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="wrap">
<div id="main">
<div class="header">
<div style="text-align:center"><p class="head"> The Easier, Secure Cloud | <a href="readme">README</a> | <a href=".">Home</a>
<?php
//Show menu options to those who can use them
if(isset($certid) && getUser($certid) != NULL && !isTemporary($certid)){
echo ' | <a href="profile">Manage profile</a>';
if(isset($curusr) and isAdmin($curusr)){
echo ' | <a href="admin">Admin Panel</a>';
}
}
else
{
if(isset($certid)){
echo('<strong><p>CERTIFICATE ID</p></strong>');
echo($certid);
}
else
{
echo('<strong><p>NO CERTIFICATE ID</p></strong>');
}
}
?>
</p></div>
</div>
<div class="content">
<div class="caption"><?php
if($title){
echo '<h2>' . $title . '</h2>';
}?>
</div>
<div class="innercontent">