-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·79 lines (74 loc) · 2.76 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/*
Copyright © 2009,2015,2022 Siggi Bjarnason.
Licensed under GNU GPL v3 and later. Check out LICENSE.TXT for details
or see <https://www.gnu.org/licenses/gpl-3.0-standalone.html>
Header file that gets inserted everywhere and handled the menu and header for each page
*/
$PrivReq = 0;
$iAdminCat = 0;
require_once("DBCon.php");
header("Content-Type: text/html; charset=utf-8");
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">\n";
print "<html>\n";
print "<head>\n";
print "<title>ShareASecret</title>\n";
if ($strPageName == "/fetch.php")
{
print "<meta http-equiv=\"cache-control\" content=\"max-age=0\">\n";
print "<meta http-equiv=\"cache-control\" content=\"no-store\">\n";
print "<meta http-equiv=\"cache-control\" content=\"must-revalidate\">\n";
print "<meta http-equiv=\"cache-control\" content=\"no-cache\">\n";
print "<meta http-equiv=\"expires\" content=\"-1\">\n";
print "<meta http-equiv=\"expires\" content=\"Tue, 01 Jan 1980 11:00:00 GMT\">\n";
print "<meta http-equiv=\"pragma\" content=\"no-cache\">\n";
}
print "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"favicon.ico\">\n";
print "<link href=\"$CSSName\" rel=\"stylesheet\" type=\"text/css\">\n";
print "</head>\n";
print "<body>\n";
print "<!-- Form a border for the page -->\n";
print "<div id=\"left\"></div>\n";
print "<div id=\"right\"></div>\n";
print "<div id=\"top\"></div>\n";
print "<div id=\"bottom\"></div>\n";
print "<!-- End border start div for the header -->\n";
print "<div class=\"BlacktblHead\">\n";
print "<div class=\"Header\" align=\"center\">\n";
$imgname = $ROOTPATH . $HeadImg;
print "<table border=\"0\" cellPadding=\"4\" cellSpacing=\"0\">\n";
print "<tr>\n";
print "<td align=\"center\" vAlign=\"middle\">\n";
print "<img border=\"0\" src=\"$imgname\" align=\"center\" height=\"150\">\n";
print "</td>\n";
print "</tr>\n";
print "</table>\n";
print "<ul class=\"nav\">\n";
print "<li class=\"Norm\"><a href=\"$HomeURL\">Home</a></li>\n";
if ($strPageName == "/index.php")
{
print "<li class=\"HL\"><a href=\"index.php\">Enter Secret</a></li>\n";
}
else
{
print "<li class=\"Norm\"><a href=\"index.php\">Enter Secret</a></li>\n";
}
if ($strPageName == "/fetch.php")
{
print "<li class=\"HL\"><a href=\"fetch.php\">Fetch Secret</a></li>\n";
}
else
{
print "<li class=\"Norm\"><a href=\"fetch.php\">Fetch Secret</a></li>\n";
}
if ($strPageName == "/Docs.php")
{
print "<li class=\"HL\"><a href=\"docs.php\">Documentation</a></li>\n";
}
else
{
print "<li class=\"Norm\"><a href=\"docs.php\">Documentation</a></li>\n";
}
print "</ul>\n";
print "</div>\n</div>\n";
?>