-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
66 lines (49 loc) · 2.55 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/***********************************************************************************/
/* (C) 2020 - Skyfallen */
/* Skyfallen Secure Forms Developed by */
/* The Skyfallen Company */
/* */
/* File Since: SFR-301009 */
/* This file is where all requests are redirected to. All file inclusions are here.*/
/***********************************************************************************/
error_reporting(E_ALL);
ini_set("display_errors",1);
ini_set("display_startup_errors",1);
// Define the application's ABSOLUTE FS Path
define("SSF_ABSPATH", dirname(__FILE__));
// Include All Configuration Files
include_once SSF_ABSPATH."/Configuration/UpdaterConfiguration.php";
include_once SSF_ABSPATH."/thisversion.php";
// Unless the installation was complete, the Database Config should exist, if not, run the install.
if((@include_once SSF_ABSPATH . "/Configuration/SecureFormDatabaseConfiguration.php") === false){
// Include the install file
include_once SSF_ABSPATH."/Configuration/install.php";
// Stop further execution
die();
}
// Include Helpers
include_once SSF_ABSPATH."/SSF_Includes/UserSession_Helper.php";
include_once SSF_ABSPATH."/SSF_Includes/CSRF_Session_Helper.php";
// Include Utility Functions
include_once SSF_ABSPATH."/SSF_Includes/utility_functions.php";
include_once SSF_ABSPATH."/SSF_Includes/BinaryProcessor.php";
// Include all the classes
include_once SSF_ABSPATH."/FunctionSets/DBSettings.php";
include_once SSF_ABSPATH."/FunctionSets/SSF_Router.php";
include_once SSF_ABSPATH."/FunctionSets/SSF_CSRF.php";
include_once SSF_ABSPATH."/FunctionSets/SSFUser.php";
include_once SSF_ABSPATH."/FunctionSets/SSF_Form.php";
include_once SSF_ABSPATH."/FunctionSets/SSF_FormField.php";
// Include all RSA Libraries
include_once SSF_ABSPATH."/DataSecurity/RSA_Libraries/vendor/autoload.php";
// Include all AES Libraries
include_once SSF_ABSPATH."/DataSecurity/AES_Libraries/AES.php";
// Include all SCL Libraries
include_once SSF_ABSPATH."/SkyfallenCodeLib/UpdatesConsoleConnector.php";
// Include POST-Load Helpers
include_once SSF_ABSPATH."/SSF_Includes/RSA_Helper.php";
// Include the URL Handler to verify the URL and the request.
include_once SSF_ABSPATH."/URLHandler.php";
// Include the router file to route the URLs
include_once SSF_ABSPATH."/router.php";