-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-sample.php
More file actions
37 lines (29 loc) · 933 Bytes
/
config-sample.php
File metadata and controls
37 lines (29 loc) · 933 Bytes
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
<?php
/**
* Basic configuration.
*
* @copyright Copyright (c) 2014 Antecons
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
// Absolute path to base.
if (!defined('ABSPATH'))
define('ABSPATH', dirname(__FILE__) . '/');
// Include directory.
if (!defined('INCLUDE_PATH'))
define('INCLUDE_PATH', ABSPATH . 'inc/');
// Lib directory.
if (!defined('LIB_PATH'))
define('LIB_PATH', ABSPATH . 'lib/');
// Include directory.
if (!defined('DB_PATH'))
define('DB_PATH', ABSPATH . 'db/');
// Set Antecons vars.
define('ANTECONS_API_KEY', 'abc');
define('ANTECONS_API_SECRET', 'def');
define('ANTECONS_DATASOURCE', 'test');
// Import the Antecons library.
require_once(LIB_PATH . 'antecons/lib/antecons.php');
Antecons\Client::$apiKey = ANTECONS_API_KEY;
Antecons\Client::$apiSecret = ANTECONS_API_SECRET;
// Include all the functions.
require_once(INCLUDE_PATH . 'functions.php');