-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·90 lines (83 loc) · 5.49 KB
/
header.php
File metadata and controls
executable file
·90 lines (83 loc) · 5.49 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
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
80
81
82
83
84
85
86
87
88
89
90
<?php
include_once "includes/functions.php";
include_once "includes/strings.php";
if(!SECURE) {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
}
?>
<head>
<title><?php $sitename = htmlspecialchars(NAME); echo $sitename; ?></title>
<meta http-equiv="content-language" content="en" />
<meta name="description" content="<?php echo $sitename; ?>" />
<meta name="keywords" content="<?php echo $sitename; ?>" />
<meta http-equiv="content-type" content="text/html"; charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#ec644b" />
<meta name="msapplication-navbutton-color" content="#ec644b" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel=icon href=/favicon.png>
<nav>
<div id="custom-bootstrap-menu" class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header"><a class="navbar-brand" href="/" style="font-family: monospace !important"><?php echo $sitename; if(!SECURE) echo ' / <b style="color:red;">development mode</b>';?></a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-menubuilder"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-menubuilder">
<ul class="nav navbar-nav navbar-left">
<?php
if(isSignedIn()) {
echo '
<li><a href="/profile/' . htmlspecialchars($_SESSION['username']) . '/">' . SHORT_USER_PROFILE . '</a></li>
<li><a href="/settings/">' . SHORT_USER_SETTINGS . '</a></li>
';
if($_SESSION['rank'] != 0) {
echo '<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">' . SHORT_USER_MODERATE . ' <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/admin/attempts/">Login Attempts</a></li>
<li><a href="/admin/users/">Users</a></li>
</ul></li>';
}
echo '<li><a href="/logout/?csrf=' . getCSRFToken() . '">' . SHORT_USER_LOGOUT . '</a></li>';
} else {
if(CAN_LOGIN)
echo "<li><a href=\"/login/\">" . SHORT_USER_LOGIN . "</a></li>";
if(CAN_REGISTER)
echo "<li><a href=\"/register/\">" . SHORT_USER_REGISTER . "</a></li>";
}
?>
</ul>
</div>
</div>
</div>
</nav>
<!--
> ████████╗███████╗███████╗███╗ ██╗██████╗ ███████╗██╗ ██╗ ██████╗ ██████╗ ███████╗
> ╚══██╔══╝██╔════╝██╔════╝████╗ ██║██╔══██╗██╔════╝██║ ██║██╔═══██╗██╔══██╗██╔════╝
> ██║ █████╗ █████╗ ██╔██╗ ██║██║ ██║█████╗ ██║ ██║██║ ██║██████╔╝███████╗
> ██║ ██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║██╔══╝ ╚██╗ ██╔╝██║ ██║██╔═══╝ ╚════██║
> ██║ ███████╗███████╗██║ ╚████║██████╔╝███████╗ ╚████╔╝ ╚██████╔╝██║ ███████║
> ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═══╝╚═════╝ ╚══════╝ ╚═══╝ ╚═════╝ ╚═╝ ╚══════╝
> teendev0ps/sp1@sh
-->
<br><br>
<script src="/js/jquery.js" crossorigin="anonymous"></script>
<script src="/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src="/js/main.js" crossorigin="anonymous"></script>
<?php
if(isset($_COOKIE['dark'])){
$cookie = $_COOKIE['dark'];
if($cookie == 'true')
echo '<link rel="stylesheet" href="/css/dark.css">';
}
?>
</head>