@@ 27-41 (lines=15) @@ | ||
24 | //Error handling |
|
25 | define('ENVIRONMENT', 'production'); |
|
26 | ||
27 | if (defined('ENVIRONMENT')) { |
|
28 | switch (ENVIRONMENT) { |
|
29 | case 'development': |
|
30 | error_reporting(E_ALL); |
|
31 | break; |
|
32 | ||
33 | case 'testing': |
|
34 | case 'production': |
|
35 | error_reporting(0); |
|
36 | break; |
|
37 | ||
38 | default: |
|
39 | error_reporting(E_ALL); |
|
40 | } |
|
41 | } |
|
42 | ||
43 | //Include file |
|
44 | include ("lib/astpp.xml.php"); |
@@ 32-48 (lines=17) @@ | ||
29 | * By default development will show errors but testing and live will hide them. |
|
30 | */ |
|
31 | ||
32 | if (defined('ENVIRONMENT')) |
|
33 | { |
|
34 | switch (ENVIRONMENT) |
|
35 | { |
|
36 | case 'development': |
|
37 | error_reporting(E_ALL); |
|
38 | break; |
|
39 | ||
40 | case 'testing': |
|
41 | case 'production': |
|
42 | error_reporting(0); |
|
43 | break; |
|
44 | ||
45 | default: |
|
46 | exit('The application environment is not set correctly.'); |
|
47 | } |
|
48 | } |
|
49 | ||
50 | /* |
|
51 | *--------------------------------------------------------------- |