forked from DeepSpaceDev/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (46 loc) · 1.67 KB
/
index.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
<?php
if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == ""){
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header("HTTP/1.1 301 Moved Permanently");
header("Location: $redirect");
}
require_once("scripts/tools/UserAgendParser.php");
//https://donatstudios.com/PHP-Parser-HTTP_USER_AGENT
$browser = parse_user_agent()['browser'];
$platform = parse_user_agent()['platform'];
if($browser == "MSIE" || $browser == "IEMobile"){
header("Location: errors/unsupported_browser.html");
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<base href="/">
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<meta name="description" content="Website for all sorts of content, particularly about coding">
<meta name="keywords" content="Coding,Web,Android,Java,Teampeak">
<meta name="author" content="Sese Schneider">
<meta name="google-site-verification" content="dACYoqNjWSx53HC7RQbbHQJ-rBcd0qCZQSr8d-iUXas" />
<title>Sese7.de</title>
<link rel="shortcut icon" href="img/favicon.png">
<link rel="import" href="elements/elements.html">
<link type="text/css" rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/main.js"></script>
<noscript>
<meta http-equiv="refresh" content="0;url=errors/javascript_disabled.html">
</noscript>
</head>
<body>
<content>
</content>
<?php
if(isset($_GET["p"])){
$p = $_GET["p"];
echo "<script>var isdialog = true;</script><paper-dialog with-backdrop id='dialog'><span id='dialogcontent'>$p</span></paper-dialog>";
}
?>
</body>
</html>