-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.php
57 lines (43 loc) · 1.64 KB
/
load.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
<?php
# Define ABSPATH as this file's directory
if(!defined('ABSPATH'))
define('ABSPATH', dirname(__FILE__).'/');
# Define folder name for SQL
if(!defined('SQLPATH'))
define('SQLPATH', 'SQL');
# Define folder name for Exceptions
if(!defined('EXCPATH'))
define('EXCPATH', 'Exceptions');
# Define folder name for hashing
if(!defined('HASHPATH'))
define('HASHPATH', 'Hashing');
# Define include folder
if(!defined('INCLPATH'))
define('INCLPATH', 'includes/');
# Import and composer packages needed
require_once ABSPATH.'/vendor/autoload.php';
# Require config file
require_once ABSPATH.'config.php';
# Require logging
require_once ABSPATH.INCLPATH.'logging.php';
# Require SQL files
require_once ABSPATH.INCLPATH.SQLPATH.'/SQLHash.php';
require_once ABSPATH.INCLPATH.SQLPATH.'/SQL.php';
# Require exceptions
require_once ABSPATH.INCLPATH.EXCPATH.'/PostException.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/GetException.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/DeleteException.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/TermExists.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/CommerceConnectException.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/SQLException.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/ItemFileException.php';
require_once ABSPATH.INCLPATH.EXCPATH.'/SQLHashException.php';
# Require Hashing
require_once ABSPATH.INCLPATH.HASHPATH.'/Hashing.php';
require_once ABSPATH.INCLPATH.HASHPATH.'/CheckHashes.php';
# Require imageClass
require_once ABSPATH.INCLPATH.'imageClass.php';
# Require ItemFile
require_once ABSPATH.INCLPATH.'ItemFile.php';
# Require CommerceConnect
require_once ABSPATH.INCLPATH.'CommerceConnect.php';