-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
28 lines (26 loc) · 1012 Bytes
/
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
<?php
error_reporting(E_ERROR | E_PARSE);
require_once "assets/php/config.php";
require_once "assets/php/SessionHandle.php";
require_once "assets/php/PlatformHandle.php";
$SESSION = new SessionHandle();
$PLATFORM = new PlatformHandle();
session_start();
//$SESSION->startUser(1);
//echo "KEY: " . $_SESSION['site_key'];
if (isset($_GET['page']) && !empty($_GET['page'])) {
if (file_exists("assets/include/" . $_GET['page'] . ".php")) {
if (!in_array($_GET['page'], $MAINTENANCE)) {
include "assets/include/" . $_GET['page'] . ".php";
} else {
if (!isset($_SESSION['site_key'])) {
if (!$_SESSION['site_key'] == $SITE_KEY) {
include "assets/include/maintenance.php";
} else include "assets/include/" . $_GET['page'] . ".php";
} else include "assets/include/" . $_GET['page'] . ".php";
}
}
} else {
include "assets/include/index.php";
}
// https://materializecss.com/feature-discovery.html