-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathheader.php
87 lines (77 loc) · 4.04 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
80
81
82
83
84
85
86
87
<?php
session_start();
include('inc/db.php');
include('inc/functions.php');
if(isset($_GET['logout']))
{
if($_GET['logout'] == 'true')
{
session_start();
session_destroy();
header('Location: index.php');
exit();
}
}
?>
<html>
<head>
<title>PrivateDB - Private Server HUB</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="World of Warcraft Private Server HUB for Addons, Databases and Developer tools for creating SQL Queries.">
<meta name="keywords" content="PrivateDB,Private Server,Addons,Database,wotlk,tbc,vanilla,cata,private addons, private server addons, server addons, wow, world of warcraft, server">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSS Stylesheets -->
<link rel="stylesheet" type="text/css" href="css/foundation.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/header.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/content.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/footer.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/fonts.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/colors.css" media="screen" />
</head>
<body>
<div class="top-line">
<div class="row">
<div class="header column small-12">
<div class="header-logo column small-12 medium-2 large-2">
<a href="<?php echo SITE_URL; ?>">
Private<span class="yellow bold">DB</span>
</a>
</div>
<div class="header-menu column show-for-large small-12 large-7">
<ul class="main-menu dropdown menu" data-dropdown-menu>
<li><a href="index.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "index.php" || "")?"class=\"current-nav\"":""; ?>>NEWS</a></li>
<li><a href="#" <?php echo (basename($_SERVER["PHP_SELF"]) == "addons.php")?"class=\"current-nav\"":""; ?>>ADDONS</a>
<ul class="menu">
<li><a href="addons.php?type=vanilla" <?php echo (isset($_GET['type']) && $_GET['type'] == "vanilla")?"class=\"current-sub-nav\"":""; ?>>Vanilla</a></li>
<li><a href="addons.php?type=tbc" <?php echo (isset($_GET['type']) && $_GET['type'] == "tbc")?"class=\"current-sub-nav\"":""; ?>>Burning Crusade</a></li>
<li><a href="addons.php?type=wotlk" <?php echo (isset($_GET['type']) && $_GET['type'] == "wotlk")?"class=\"current-sub-nav\"":""; ?>>Wrath of the Lich King</a></li>
</ul>
</li>
<!--
<li><a href="database.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "database.php")?"class=\"current-nav\"":""; ?>>DATABASE</a></li>
<li><a href="tools.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "tools.php")?"class=\"current-nav\"":""; ?>>TOOLS</a></li>
-->
</ul>
</div>
<div class="acc-menu column show-for-large small-12 large-3">
<?php if(!isset($_SESSION['username']) || !isset($_SESSION['password'])): ?>
<ul class="account-menu">
<li><a href="login.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "login.php")?"class=\"current-nav\"":""; ?>>LOGIN</a></li>
<li><a href="register.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "register.php")?"class=\"current-nav\"":""; ?>>REGISTER</a></li>
</ul>
<?php else: ?>
<ul class="account-menu2 dropdown menu" data-dropdown-menu>
<li><a href="usercp.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "usercp.php" || basename($_SERVER["PHP_SELF"]) == "change_password.php" || basename($_SERVER["PHP_SELF"]) == "upload.php")?"class=\"current-nav\"":""; ?>><?php echo ucfirst($_SESSION['username']); ?></a>
<ul class="menu">
<li><a href="usercp.php" <?php echo (basename($_SERVER["PHP_SELF"]) == "usercp.php")?"class=\"current-sub-nav\"":""; ?>>UserCP</a></li>
<li><a href="?logout=true"><span class="red">Logout</span></a></li>
</ul>
</li>
</ul>
<?php endif; ?>
</div>
</div>
</div>
</div>