forked from arizon-dev/quickblaze-encrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
43 lines (42 loc) · 1.28 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
<?php
/* Initialise the Application */
$url = $_SERVER['REQUEST_URI'];
$url = substr($url, strrpos($url, '/') + 1);
if (strpos($url, '?') !== false) $url = substr($url, 0, strpos($url, "?"));
/* Initialise Displays */
if ($url == "dataProcessing") {
/* Form Submission Handler */
require("./Modules/functions.php");
require("./Public/dataProcessing.php");
return;
}
if ($url == "view") {
/* View Message Page */
require("./Modules/functions.php");
require("./Public/view.php");
return;
}
if ($url == "") {
/* Primary Display Page */
require("./Modules/functions.php");
initialiseSystem(); // Call system functions to initialise
require("./Public/index.php");
} elseif ($url == "404") {
/* Not Found Page */
require("./Modules/functions.php");
return require("./Public/error_docs/404.php");
} elseif ($url == "403") {
/* Not Found Page */
require("./Modules/functions.php");
return require("./Public/error_docs/403.php");
} else {
if ($url == "500") {
/* Server Error Page */
require("./Modules/functions.php");
return require("./Public/error_docs/500.php");
} else {
/* Not Found Page */
require("./Modules/functions.php");
return require("./Public/error_docs/404.php");
}
}