-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
40 lines (33 loc) · 933 Bytes
/
config.php
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
<?php
//timezone
date_default_timezone_set("Atlantic/Cape_Verde");
//html text
header('Content-Type: text/html; charset=utf-8');
//diretoris do sistema
define("BASEPATH", dirname(__FILE__) . "/");
define("BASEURL", "http://link-to-your-project/");
define("CLASSESPATH", "classes/");
define("MODULESPATH", "modules/");
define("CSSPATH", "assets/css/");
define("JSPATH", "assets/js/");
//app enviroment
define('ENVIRONMENT', "development");
//data base
define("DBHOST", "localhost");
define("DBUSER", "root");
define("DBPASS", "pass");
define("DBNAME", "dbname");
//enviroment options
if (defined('ENVIRONMENT')) {
switch (ENVIRONMENT) {
case 'development':
ini_set("error_reporting", E_ALL ^ E_DEPRECATED | E_NOTICE);
break;
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly. Contact the administrator.');
}
}
?>