/
header.php
65 lines (61 loc) · 1.68 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
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$url = curPageURL();
if(!strpos(strtolower($url),"nchoosethree.com")) {
header("Location: http://www.nchoosethree.com");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" type="image/png" href="/nChooseThree/static/img/favico.png" />
<title>nChooseThree</title>
<style type="text/css">
@import '/nChooseThree/static/css/reset.css';
@import '/nChooseThree/static/css/grid.css';
@import '/nChooseThree/static/css/main.css';
@import '/nChooseThree/static/css/forms.css';
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21230749-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ?
'https://ssl' : 'http://www') +
'.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="full-wrapper">
<nav>
<?php
require_once("auth.php");
if($auth_name) {
echo $auth_name . ' | <a href="/logout.php">Log Out</a> | ';
}
?>
<a href="/about.php">About</a> | <a href="/about.php#feedback">Feedback</a> | <a
href="/index.php">Home</a>
</nav>
<header>
<div>
<a href="/index.php">nChooseThree</a>
</div>
</header>