Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (39 sloc) 1.045 kb
9b62010 Erik Reagan Prepped files for sharing on GitHub
erikreagan authored
1 <?php
2
3 /**
4 * Environment Declaration
5 *
6 * This switch statement sets our environment. The environment is used primarily
7 * in our custom config file setup. It is also used, however, in the front-end
8 * index.php file and the back-end admin.php file to set the debug mode
9 *
10 * @package Focus Lab Master Config
bc6a959 Erik Reagan Updated to 1.1.1
erikreagan authored
11 * @version 1.1.1
9b62010 Erik Reagan Prepped files for sharing on GitHub
erikreagan authored
12 * @author Focus Lab, LLC <dev@focuslabllc.com>
13 */
14
15 if ( ! defined('ENV'))
16 {
2b172b5 HTTP_HOST should be made lowercase as one cannot guarantee that it alway...
Bjørn Børresen authored
17 switch (strtolower($_SERVER['HTTP_HOST'])) {
9b62010 Erik Reagan Prepped files for sharing on GitHub
erikreagan authored
18 case 'domain.com' :
19 define('ENV', 'prod');
20 define('ENV_FULL', 'Production');
21 define('ENV_DEBUG', FALSE);
22 break;
23
24 case 'staging.domain.com' :
25 define('ENV', 'stage');
26 define('ENV_FULL', 'Staging');
27 define('ENV_DEBUG', FALSE);
28 break;
29
30 case 'dev.domain.com' :
31 define('ENV', 'dev');
32 define('ENV_FULL', 'Development');
33 define('ENV_DEBUG', TRUE);
34 break;
35
36 default :
37 define('ENV', 'local');
38 define('ENV_FULL', 'Local');
39 define('ENV_DEBUG', TRUE);
40 break;
41 }
42 }
43
44 /* End of file config.env.php */
45 /* Location: ./config/config.env.php */
Something went wrong with that request. Please try again.