blob: 7a85a55a8b3516fd036ac60b279c72fbb3227d45 (
plain)
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
|
<?php
if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/data/general.json")) {
file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json", json_encode([
"name" => "Cloudburst System",
"description" => "Lorem ipsum dolor sit amet"
]));
}
if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/data/files.json")) {
file_put_contents($_SERVER["DOCUMENT_ROOT"] . "/data/files.json", json_encode([]));
}
if ($_SERVER['HTTP_HOST'] !== "conep.one" && $_SERVER['HTTP_HOST'] !== "www.conep.one" && $_SERVER['HTTP_HOST'] !== "localhost" && $_SERVER['HTTP_HOST'] !== "0.0.0.0") {
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
die();
}
global $general;
$general = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/general.json"), true);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
<?php if (isset($title)): ?>
<?= $title ?> |
<?php endif; ?>
<?= $general["name"] ?>
</title>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/bootstrap.css">
<script src="/assets/js/bootstrap.js"></script>
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">
<link rel="mask-icon" href="/assets/favicon/safari-pinned-tab.svg" color="#6010a7">
<meta name="msapplication-TileColor" content="#6010a7">
<meta name="theme-color" content="#6010a7">
</head>
<body class="bg-dark">
<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/navigation.php"; ?>
|