2022-08-02 13:13:35 +00:00
|
|
|
<?php
|
2022-08-14 16:43:54 +00:00
|
|
|
/*
|
2022-09-08 13:29:45 +00:00
|
|
|
User defined settings
|
2022-08-14 16:43:54 +00:00
|
|
|
*/
|
2022-09-08 13:29:45 +00:00
|
|
|
include "app/settings/settings.php";
|
2022-08-14 16:43:54 +00:00
|
|
|
|
2022-09-12 14:15:16 +00:00
|
|
|
/*if ($debug["testing"]) {
|
|
|
|
// Used for testing, do not use this in production
|
2022-09-08 13:29:45 +00:00
|
|
|
ini_set('display_errors', 1);
|
|
|
|
ini_set('display_startup_errors', 1);
|
|
|
|
error_reporting(E_ERROR | E_PARSE | E_NOTICE);
|
|
|
|
?>
|
|
|
|
<script>
|
|
|
|
sniffleAdd('Notice', 'This website is currently in a testing state, bugs may occur', 'var(--red)', 'assets/icons/cross.svg');
|
|
|
|
</script>
|
|
|
|
<?php
|
2022-09-12 14:15:16 +00:00
|
|
|
}*/
|
2022-08-14 16:43:54 +00:00
|
|
|
|
2022-09-10 08:37:01 +00:00
|
|
|
ini_set('post_max_size', '20M');
|
|
|
|
ini_set('upload_max_filesize', '20M');
|
2022-09-12 14:15:16 +00:00
|
|
|
ini_set('display_errors', 1);
|
|
|
|
ini_set('display_startup_errors', 1);
|
|
|
|
error_reporting(E_ERROR | E_PARSE | E_NOTICE);
|
|
|
|
?>
|
|
|
|
<script>
|
|
|
|
sniffleAdd('Notice', 'This website is currently in a testing state, bugs may occur', 'var(--red)', 'assets/icons/cross.svg');
|
|
|
|
</script>
|
|
|
|
<?php
|
2022-09-10 08:37:01 +00:00
|
|
|
|
2022-08-03 16:46:50 +00:00
|
|
|
if (is_file("index.php")) {
|
|
|
|
$root_dir = "";
|
2022-08-02 13:13:35 +00:00
|
|
|
} else {
|
2022-08-03 16:46:50 +00:00
|
|
|
$root_dir = "../";
|
2022-08-02 13:13:35 +00:00
|
|
|
}
|
|
|
|
|
2022-08-07 08:07:18 +00:00
|
|
|
/*
|
|
|
|
Connect to the server
|
|
|
|
*/
|
2022-09-08 13:29:45 +00:00
|
|
|
include "app/server/conn.php";
|
|
|
|
include "app/server/secrete.php";
|
2022-08-03 16:46:50 +00:00
|
|
|
|
2022-09-12 14:15:16 +00:00
|
|
|
/*
|
|
|
|
Classes
|
|
|
|
*/
|
2022-09-13 13:24:48 +00:00
|
|
|
require_once 'app/app.php';
|
2022-08-07 11:57:13 +00:00
|
|
|
|
2022-08-02 13:13:35 +00:00
|
|
|
?>
|
2022-08-03 16:46:50 +00:00
|
|
|
<script>
|
2022-08-06 09:52:40 +00:00
|
|
|
/*
|
|
|
|
Gets Querys from the URL the user is at
|
|
|
|
Used by Sniffle to display notificaions
|
|
|
|
*/
|
|
|
|
const params = new Proxy(new URLSearchParams(window.location.search), {
|
|
|
|
get: (searchParams, prop) => searchParams.get(prop),
|
|
|
|
});
|
2022-08-02 13:13:35 +00:00
|
|
|
</script>
|
2022-08-06 09:52:40 +00:00
|
|
|
|
2022-08-07 08:07:18 +00:00
|
|
|
<!--
|
|
|
|
Used by Sniffle to add Notifications
|
|
|
|
Div can be displayed all time as it has no width or height initself
|
|
|
|
-->
|
2022-08-06 09:52:40 +00:00
|
|
|
<div id='sniffle' class='sniffle'></div>
|
|
|
|
|
2022-08-07 08:07:18 +00:00
|
|
|
<!--
|
|
|
|
Div for information flyouts
|
|
|
|
Controlled by Flyout.js
|
|
|
|
-->
|
2022-08-06 09:52:40 +00:00
|
|
|
<div id='flyoutDim' class='flyout-dim'></div>
|
2022-08-14 16:43:54 +00:00
|
|
|
<div id='flyoutRoot' class='flyout'>
|
|
|
|
<p id='flyoutHeader' class='flyout-header'>Header</p>
|
|
|
|
<br>
|
|
|
|
<p id='flyoutDescription' class='flyout-description'>Description</p>
|
|
|
|
<br>
|
|
|
|
<div id='flyoutActionbox' class='flyout-actionbox'></div>
|
|
|
|
<button onclick='flyoutClose()' class='btn btn-neutral'>Close</button>
|
2022-08-06 09:52:40 +00:00
|
|
|
</div>
|
2022-08-07 08:07:18 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Back to top button
|
|
|
|
Used to quickly get back up to the top of the page,
|
|
|
|
At some point will be removed as the UI metures and
|
|
|
|
everything can always be accessed
|
|
|
|
-->
|
|
|
|
<a id="back-to-top" href="#">
|
2022-08-09 10:14:30 +00:00
|
|
|
<img src="<?php echo $root_dir; ?>assets/icons/caret-up.svg">
|
2022-08-07 08:07:18 +00:00
|
|
|
</a>
|
|
|
|
<script>
|
|
|
|
button = document.getElementById("back-to-top");
|
|
|
|
|
|
|
|
window.onscroll = function() {scrollFunction()};
|
|
|
|
|
|
|
|
function scrollFunction() {
|
|
|
|
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 20) {
|
|
|
|
button.style.right = "1rem";
|
|
|
|
} else {
|
|
|
|
button.style.right = "-2.5rem";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2022-09-06 18:15:59 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Required so main objects are centered when NAV
|
|
|
|
is in mobile view
|
|
|
|
-->
|
|
|
|
<div class="nav-mobile"></div>
|