-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
103 lines (74 loc) · 3.54 KB
/
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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
define("DEFAULT_TIMEZONE", "America/Sao_Paulo"); // set php date functions timezone
define("DEVELOPMENT_MODE" , false);// set to false when in production
// return the full path application directory
define('ROOT', str_replace('\\', '/', dirname(__FILE__)) . '/');
// return the application directory name.
define('ROOT_DIR_NAME' , basename(ROOT));
define('SITE_NAME' , "covid");
// Get Site Address Dynamically
$site_addr = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']);
//Must end with /
$site_addr =rtrim($site_addr,"/\\") . "/";
// Can Be Set Manually Like "http://localhost/mysite/".
define('SITE_ADDR' , $site_addr);
define('APP_ID',"befca296ded78c19e9719ca2618b659d");
// Application Default Color (Mostly Used By Mobile)
define('META_THEME_COLOR',"#000000");
// Application Files and Directories
define('IMG_DIR', "assets/images/");
define('SITE_FAVICON',IMG_DIR . "favicon.png");
define('SITE_LOGO',IMG_DIR . "logo.png");
define('CSS_DIR',SITE_ADDR . "assets/css/");
define('JS_DIR',SITE_ADDR . "assets/js/");
define('APP_DIR',"app/");
define('SYSTEM_DIR','system/');
define('HELPERS_DIR','helpers/');
define('LIBS_DIR','libs/');
define('LANGS_DIR','languages/');
define('MODELS_DIR',APP_DIR . "models/");
define('CONTROLLERS_DIR',APP_DIR . 'controllers/');
define('VIEWS_DIR',APP_DIR . 'views/');
define('LAYOUTS_DIR',VIEWS_DIR . 'layouts/');
define('PAGES_DIR',VIEWS_DIR . 'partials/');
// File Upload Directories
define('UPLOAD_DIR', 'uploads/');
define('UPLOAD_FILE_DIR',UPLOAD_DIR . 'files/');
define('UPLOAD_IMG_DIR', UPLOAD_DIR . 'photos/');
define('MAX_UPLOAD_FILESIZE',trim(ini_get('upload_max_filesize')));
// Application Page Settings
define("DEFAULT_PAGE","index"); //Default Controller Class
define("DEFAULT_PAGE_ACTION","index"); //Default Controller Action
define('DEFAULT_LAYOUT',LAYOUTS_DIR . 'main_layout.php');
define('HOME_PAGE','home');
define("DEFAULT_LANGUAGE","portuguese"); //Default Language
// Page Meta Information
define('META_AUTHOR','Steffan Vernillo');
define('META_DESCRIPTION','Sistema desenvolvido para acompanhamento de casos de COVID-19');
define('META_KEYWORDS','');
define('META_VIEWPORT','width=device-width, initial-scale=1.0');
define('PAGE_CHARSET','UTF-8');
// Email Configuration Default Settings
define('USE_SMTP',false);
define('SMTP_USERNAME','');
define('SMTP_PASSWORD','');
define('SMTP_HOST','');
define('SMTP_PORT','');
//Default Email Sender Details. Please set this even if you are not using SMTP
define('DEFAULT_EMAIL','');
define('DEFAULT_EMAIL_ACCOUNT_NAME','');
// Database Configuration Settings
define('DB_HOST','localhost');
define('DB_USERNAME','root');
define('DB_PASSWORD','');
define('DB_NAME','covid');
define('DB_TYPE','mysql');
define('DB_PORT',''); //You can leave empty if using default.
define('DB_CHARSET','utf8');
define('MAX_RECORD_COUNT', 20); //Default Max Records to Retrieve per Page
define('ORDER_TYPE','DESC'); //Default Order Type
// Active User Profile Details
define('USER_ID',(isset($_SESSION[APP_ID.'user_data']) ? $_SESSION[APP_ID.'user_data']['id'] : null ));
define('USER_NAME',(isset($_SESSION[APP_ID.'user_data']) ? $_SESSION[APP_ID.'user_data']['login'] : null ));
define('USER_EMAIL',(isset($_SESSION[APP_ID.'user_data']) ? $_SESSION[APP_ID.'user_data']['email'] : null ));
define('USER_PHOTO',(isset($_SESSION[APP_ID.'user_data']) ? $_SESSION[APP_ID.'user_data']['foto'] : null ));