forked from Talishar/Talishar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuBar.php
More file actions
147 lines (124 loc) · 3.51 KB
/
MenuBar.php
File metadata and controls
147 lines (124 loc) · 3.51 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
include_once 'Assets/patreon-php-master/src/OAuth.php';
include_once 'Assets/patreon-php-master/src/API.php';
include_once 'Assets/patreon-php-master/src/PatreonLibraries.php';
include_once 'Assets/patreon-php-master/src/PatreonDictionary.php';
include_once 'includes/functions.inc.php';
include_once 'includes/dbh.inc.php';
include_once 'Libraries/HTTPLibraries.php';
include_once 'HostFiles/Redirector.php';
session_start();
if (!isset($_SESSION["userid"])) {
if (isset($_COOKIE["rememberMeToken"])) {
loginFromCookie();
}
}
$isPatron = isset($_SESSION["isPatron"]);
$isMobile = IsMobile();
?>
<style>
li {
display: inline;
padding: 8px;
}
ul {
display: inline;
padding: 0px;
margin: 0px;
}
a {
color: white;
background-color: transparent;
text-decoration: none;
font-family: helvetica;
}
.ContentWindow {
padding: 0 1em;
background-color: rgba(40, 40, 40, .7);
font-family: helvetica;
color: white;
position: absolute;
border-radius: 8px;
border: 2px solid gray;
}
.NavBarDiv {
font-size: 1.5rem;
position: fixed;
left: 0px;
top: 0px;
height: 45px;
width: 100%;
z-index: 100;
background-color: rgba(30, 30, 30, .8);
}
.rightnav {
position: absolute;
right: 0px;
}
h1,
h2,
h3,
h4,
h5 {
text-align: center;
margin-top: 12px;
margin-bottom: 12px;
}
td {
color: white;
padding-top: 2px;
padding-bottom: 2px;
}
span {
color: white;
}
table {
margin-bottom: 0px;
}
form {
margin-bottom: 4px;
}
div::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: #F5F5F5;
}
div::-webkit-scrollbar {
width: 12px;
background-color: #F5F5F5;
}
div::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
background-color: #555;
}
</style>
<body style="background-image: url('./Images/outsiders-background.jpg');">
<div style='width: 100%'>
<nav class='NavBarDiv'>
<ul>
<?php if (!$isMobile) echo '<li><a target="_blank" href="https://discord.gg/JykuRkdd5S">Discord</a></li>'; ?>
<?php
if (!$isMobile) echo '<li><a target="_blank" href="https://twitter.com/talishar_online">Twitter</a></li>';
?>
<!--<li><a target="_blank" href="https://www.patreon.com/talishar_online">Support Us</a></li>-->
</ul>
<ul class='rightnav'>
<li></li>
<li><a href="MainMenu.php">Home Page</a></li>
<?php if (!$isMobile) echo '<li><a href="https://fabtcg.com/events" target="_blank">Find Local Events</a></li>'; ?>
<?php if (!$isMobile) echo '<li><a href="https://github.com/Talishar/Talishar/labels/bug" target="_blank">Known Bugs</a></li>'; ?>
<?php if($isPatron || (isset($_SESSION["useruid"]) && $_SESSION["useruid"] == "OotTheMonk")) echo "<li><a href='Replays.php'>Replays[BETA]</a></li>";
?>
<?php
if (isset($_SESSION["useruid"])) {
echo "<li><a href='ProfilePage.php'>Profile</a></li>";
echo "<li><a href='./AccountFiles/LogoutUser.php'>Logout</a></li>";
} else {
echo "<li><a href='Signup.php'>Sign up</a></li>";
echo "<li><a href='./LoginPage.php'>Log in</a></li>";
}
?>
</ul>
</nav>
</div>