forked from KomodoPlatform/WooCommerce-KMD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspace-include-all.php
More file actions
executable file
·59 lines (47 loc) · 2.43 KB
/
space-include-all.php
File metadata and controls
executable file
·59 lines (47 loc) · 2.43 KB
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
<?php
/**
Spacecoin for WooCommerce
https://github.com/SpaceWorksCo/WooCommerce-SPACE
*/
//---------------------------------------------------------------------------
// Global definitions
if (!defined('SPACE_PLUGIN_NAME'))
{
define('SPACE_VERSION', '1.0.0');
//-----------------------------------------------
define('SPACE_EDITION', 'Standard');
//-----------------------------------------------
define('SPACE_SETTINGS_NAME', 'SPACE-Settings');
define('SPACE_PLUGIN_NAME', 'Spacecoin for WooCommerce');
// i18n plugin domain for language files
define('SPACE_I18N_DOMAIN', 'space');
if (extension_loaded('gmp') && !defined('USE_EXT'))
define ('USE_EXT', 'GMP');
else if (extension_loaded('bcmath') && !defined('USE_EXT'))
define ('USE_EXT', 'BCMATH');
}
//---------------------------------------------------------------------------
//------------------------------------------
// Load wordpress for POSTback, WebHook and API pages that are called by external services directly.
if (defined('SPACE_MUST_LOAD_WP') && !defined('WP_USE_THEMES') && !defined('ABSPATH'))
{
$g_blog_dir = preg_replace ('|(/+[^/]+){4}$|', '', str_replace ('\\', '/', __FILE__)); // For love of the art of regex-ing
define('WP_USE_THEMES', false);
// Force-elimination of header 404 for non-wordpress pages.
header ("HTTP/1.1 200 OK");
header ("Status: 200 OK");
}
//------------------------------------------
// This loads necessary modules and selects best math library
if (!class_exists('bcmath_Utils')) require_once (dirname(__FILE__) . '/libs/util/bcmath_Utils.php');
if (!class_exists('gmp_Utils')) require_once (dirname(__FILE__) . '/libs/util/gmp_Utils.php');
if (!class_exists('CurveFp')) require_once (dirname(__FILE__) . '/libs/CurveFp.php');
if (!class_exists('Point')) require_once (dirname(__FILE__) . '/libs/Point.php');
if (!class_exists('NumberTheory')) require_once (dirname(__FILE__) . '/libs/NumberTheory.php');
require_once (dirname(__FILE__) . '/libs/SPACEElectroHelper.php');
require_once (dirname(__FILE__) . '/space-cron.php');
require_once (dirname(__FILE__) . '/space-mpkgen.php');
require_once (dirname(__FILE__) . '/space-utils.php');
require_once (dirname(__FILE__) . '/space-admin.php');
require_once (dirname(__FILE__) . '/space-render-settings.php');
require_once (dirname(__FILE__) . '/space-spacecoin-gateway.php');