-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.php
More file actions
84 lines (68 loc) · 2.12 KB
/
Copy pathsettings.php
File metadata and controls
84 lines (68 loc) · 2.12 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
namespace Sleepy;
/*******************************************************************************
* Global settings
******************************************************************************/
// Comma separated URLs that define the environments
define('LIVE_URL', '');
define('STAGE_URL', '');
// Server dependant variables (Dev/Stage/Live)
if (SM::isENV(STAGE_URL)) {
define('ENV', 'STAGE');
// Base Directory/URL
define('URLBASE', '/');
define('DIRBASE', realpath(dirname(__FILE__)) . '/app/');
// DB Credentials
define ("DBHOST", $WHG_DB_HOST);
define ("DBUSER", $WHG_DB_USER);
define ("DBPASS", $WHG_DB_PASSWD);
define ("DBNAME", $WHG_DB_REPLDB);
// Email information
define('EMAIL_FROM', '');
define('EMAIL_TO', '');
define('EMAIL_CC', '');
define('EMAIL_BCC', '');
// Analytics
define('GA_ACCOUNT', '');
} elseif (SM::isENV(LIVE_URL)) {
define('ENV', 'LIVE');
// Base Directory/URL
define('URLBASE', '/');
define('DIRBASE', realpath(dirname(__FILE__)) . '/app/');
// DB Credentials
define ("DBHOST", $WHG_DB_HOST);
define ("DBUSER", $WHG_DB_USER);
define ("DBPASS", $WHG_DB_PASSWD);
define ("DBNAME", $WHG_DB_REPLDB);
// Email information
define('EMAIL_FROM', '');
define('EMAIL_TO', '');
define('EMAIL_CC', '');
define('EMAIL_BCC', '');
// Analytics
define('GA_ACCOUNT', '');
} else {
define('ENV', 'DEV');
// Base Directory/URL
define('URLBASE', '/');
define('DIRBASE', realpath(dirname(__FILE__)) . '/app/');
// DB Credentials
define ("DBHOST", $WHG_DB_HOST);
define ("DBUSER", $WHG_DB_USER);
define ("DBPASS", $WHG_DB_PASSWD);
define ("DBNAME", $WHG_DB_REPLDB);
// Email information
define('EMAIL_FROM', '');
define('EMAIL_TO', '');
define('EMAIL_CC', '');
define('EMAIL_BCC', '');
// Analytics
define('GA_ACCOUNT', '');
}
// Set Debugging
if (class_exists('Debug')) {
Debug::$enable_show = false; // Show debug info on screen
Debug::$enable_send = false; // Send debug info via email
Debug::$enable_log = false; // Log debug info to a db
Debug::$enable_console = true; // Show debug info in the console
}