This repository has been archived by the owner on Apr 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
174 lines (167 loc) · 10 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $pagetitle ?></title>
<!-- Force latest IE version. Must be before any other tags in head except title. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" type="image/x-icon" href="/assets/images/favicon.ico" />
<link rel="stylesheet" href="/styles/normalise.css" type="text/css" />
<link rel="stylesheet" href="/styles/soa.min.css?ver=14" type="text/css" />
<link rel="stylesheet" href="/assets/fonts/the_league_of_orbitron/Orbitron.css" type="text/css" />
<link href='https://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css' />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8">
<meta name="keywords"
content="seed of andromeda, SoA, Windows, PC, Mac, Linux, Voxel, Voxel-Based, Voxel Game, Voxel-Based Game, indie game, independent game, independently developed, video game, pc game, creation, survival, chunks, blocks, sci fi" />
<meta name="description"
content="The Earth is no longer sufficient for humanity, which has looked to the stars for new homes to expand to. You are amongst the first wave of colonists to leave Earth, your destination: the Trinity star system. On your arrival, you are greeted by a none too friendly, advanced race, who launch a vicious attack on your colonial fleet. In the carnage, you descend in an escape capsule to the surface of Aldrin, a moon of the gas giant Hyperion. With your limited supplies, you must make what you can of this new world. What you do is your choice... it is your story that is to unfold." />
<meta name="og:title"
content="Seed of Andromeda" />
<meta name="og:description"
content="The Earth is no longer sufficient for humanity, which has looked to the stars for new homes to expand to. You are amongst the first wave of colonists to leave Earth, your destination: the Trinity star system. On your arrival, you are greeted by a none too friendly, advanced race, who launch a vicious attack on your colonial fleet. In the carnage, you descend in an escape capsule to the surface of Aldrin, a moon of the gas giant Hyperion. With your limited supplies, you must make what you can of this new world. What you do is your choice... it is your story that is to unfold." />
<meta name="og:site_name"
content="seedofandromeda" />
<meta name="og:type"
content="game" />
<meta name="og:url"
content="https://www.seedofandromeda.com/" />
<meta name="og:image"
content="https://www.seedofandromeda.com/assets/images/soa_icon.png" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>
<script src="/scripts/spin.min.js" type="text/javascript"></script>
<script src="/scripts/lightbox-2.6.js"></script>
<link href="/styles/lightbox.css" rel="stylesheet" />
<script src="/scripts/soa.js?=7"></script>
<script src="/scripts/jquery.sticky.js"></script>
<script>
$(document).ready(function () {
$("#nav-bar").sticky({ topSpacing: 0 });
});
</script>
<?php
$pagestyle = "styles/pages/" . str_replace ( ".php", ".min.css", $pagename );
if (strcmp($pagename, "admin.php") == 0) {
if (isset($_REQUEST['blogs'])) {
$pagestyle = "styles/pages/admin/blogs.min.css";
} else if (isset($_REQUEST['downloads'])) {
$pagestyle = "styles/pages/admin/downloads.min.css";
} else if (isset($_REQUEST['images'])) {
$pagestyle = "styles/pages/admin/images.min.css";
} else if (isset($_REQUEST['videos'])) {
$pagestyle = "styles/pages/admin/videos.min.css";
}
}
if (file_exists ( $pagestyle )) {
echo '<link rel="stylesheet" href="/' . $pagestyle . '?ver=22" type="text/css" />';
}
$pagestyle = "scripts/pages/" . str_replace ( ".php", ".js", $pagename );
if (strcmp($pagename, "admin.php") == 0) {
if (isset($_REQUEST['blogs'])) {
$pagestyle = "scripts/pages/admin/blogs.js";
} else if (isset($_REQUEST['downloads'])) {
$pagestyle = "scripts/pages/admin/downloads.js";
} else if (isset($_REQUEST['images'])) {
$pagestyle = "scripts/pages/admin/images.js";
} else if (isset($_REQUEST['videos'])) {
$pagestyle = "scripts/pages/admin/videos.js";
}
}
if (file_exists ( $pagestyle )) {
echo '<script src="/' . $pagestyle . '?ver=14"></script>';
}
?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46451794-1', 'seedofandromeda.com');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="main">
<a href="/">
<div id="header"></div>
</a>
<div id="content-wrapper">
<div id="nav-bar">
<ul id="navigation">
<li class="home"><a href="/">Home</a></li>
<li class="about"><a href="#">About</a>
<div class="dropdown-wrapper">
<ul class="dropdown">
<li><a href="/the-game">The Game</a></li>
<li><a href="/the-team">The Team</a></li>
</ul>
</div>
</li>
<li class="media"><a href="#">Media</a>
<div class="dropdown-wrapper">
<ul class="dropdown">
<li><a href="/downloads">Downloads</a></li>
<li><a href="/images">Images</a></li>
<li><a href="/videos">Videos</a></li>
</ul>
</div>
</li>
<li class="community"><a href="#">Community</a>
<div class="dropdown-wrapper">
<ul class="dropdown">
<li><a href="/community/">Forums</a></li>
<li><a href="/community/modifications/">Mods</a></li>
<li><a href="/irc">IRC</a></li>
<li><a href="http://www.reddit.com/r/seedofandromeda/" target="_blank">Reddit</a></li>
</ul>
</div>
</li>
<li class="store"><a href="/under-construction">Store</a></li>
<li class="blogs"><a href="/blogs">Dev Blogs</a></li>
</ul>
<div id="account-bar">
<?php
if(!$loggedIn)
{
?>
<img class="account-image" src="/assets/images/DefaultUser_NoSignIn_ProfImg.png" />
<div class="account-overview">
<span class="account-name">Not Logged In</span>
</div>
<div id="account-control-wrapper" class="account-log-in-wrapper">
<ul class="account-log-in">
<li><a href="<?php echo XenForo_Link::buildPublicLink('canonical:login'); ?>">Log In</a></li>
<li><a href="<?php echo XenForo_Link::buildPublicLink("canonical:register");?>">register</a></li>
</ul>
</div>
<?php
}
else
{
?>
<img class="account-image" src="/community/avatar.php?userid=<?php echo $userinfo['user_id']; ?>&size=s" />
<div class="account-overview">
<span class="account-name"><?php echo $userinfo['username']; ?></span>
<span class="account-alerts"><?php echo $userinfo['alerts_unread']+$userinfo['conversations_unread']; ?></span>
</div>
<div id="account-control-wrapper" class="account-options-wrapper">
<ul class="account-options">
<li><a href="<?php echo XenForo_Link::buildPublicLink("canonical:account/alerts");?>">Alerts (<?php echo $userinfo['alerts_unread']; ?>)</a></li>
<li><a href="<?php echo XenForo_Link::buildPublicLink("canonical:conversations");?>">Inbox (<?php echo $userinfo['conversations_unread']; ?>)</a></li>
<li><a href="<?php echo XenForo_Link::buildPublicLink("canonical:account");?>">My Account</a></li>
<li><a class="logout" href="<?php echo XenForo_Link::buildPublicLink("canonical:logout", $userinfo, array('_xfToken' => $visitor['csrf_token_page'], 'redirect' => '/'.$pageurl));?>">Log Out</a></li>
</ul>
</div>
<?php
}
?>
</div>
</div>
<div id="content-outer">
<div class="content-border content-border-0" style="width: 1053px;">
<div class="content-border content-border-1" style="width: 1051px;">
<div class="content-border content-border-2" style="width: 1049px;">
<div class="content-border content-border-3" style="width: 1047px;">
<div class="content-border content-border-2" style="width: 1045px;">
<div class="content-border content-border-1" style="width: 1043px;">
<div class="content-border content-border-0" style="width: 1041px;">