-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.php
49 lines (36 loc) · 1.13 KB
/
page.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
<?php
if (!isset($_GET["page"])) {
header("Location: ?page=home");
}
if ($_GET["page"] == "x") {
header("Location: https://x.minet.co");
}
?>
<!doctype html>
<html lang="en">
<head>
<title>MINET X</title>
<meta charset="utf-8">
<meta name="author" content="The MINET Team">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/app.css">
<link rel="icon" type="image/png" href="img/icon.png">
<link rel="apple-touch-icon-precomposed" href="img/icon.png">
<meta name="theme-color" content="#2979ff">
</head>
<body id="<?php echo $_GET["page"] ?>">
<?php include "php/header.php" ?>
<?php
if (file_exists("php/" . $_GET["page"] . ".php")) {
include "php/" . $_GET["page"] . ".php";
} else {
include "php/404.php";
}
?>
<?php include "php/footer.php" ?>
<script src="https://use.typekit.net/ucv3orh.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/minet.js"></script>
</body>
</html>