-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
config.template.php
128 lines (103 loc) · 4.48 KB
/
config.template.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
/*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************/
include 'vtigerversion.php';
// memory limit default value = 64M
ini_set('memory_limit', '1024M');
error_reporting(E_ERROR);
/* database configuration
db_server
db_port
db_hostname
db_username
db_password
db_name
*/
$dbconfig['db_server'] = '_DBC_SERVER_';
$dbconfig['db_port'] = ':_DBC_PORT_';
$dbconfig['db_username'] = '_DBC_USER_';
$dbconfig['db_password'] = '_DBC_PASS_';
$dbconfig['db_name'] = '_DBC_NAME_';
$dbconfig['db_type'] = '_DBC_TYPE_';
$dbconfig['db_status'] = '_DB_STAT_';
$dbconfig['persistent'] = false;
$dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
$host_name = $dbconfig['db_hostname'];
// log_sql default value = false
$dbconfig['log_sql'] = false;
// Should the caller information be captured in SQL Logging?
// Adds a little overhead for performance but will be useful for debugging
$SQL_LOG_INCLUDE_CALLER = false;
$site_URL = '_SITE_URL_';
// root directory path
$root_directory = '_VT_ROOTDIR_';
// cache direcory path
$cache_dir = '_VT_CACHEDIR_';
// tmp_dir default value prepended by cache_dir = images/
$tmp_dir = '_VT_TMPDIR_';
// import_dir default value prepended by cache_dir = import/
$import_dir = 'cache/import/';
// upload_dir default value prepended by cache_dir = upload/
$upload_dir = '_VT_UPLOADDIR_';
// files with one of these extensions will have '.txt' appended to their filename on upload
// upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm
$upload_badext = array('php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 'asp', 'cfm', 'js', 'vbs', 'html', 'htm', 'exe', 'bin', 'bat', 'sh', 'dll', 'phps', 'phtml', 'xhtml', 'rb', 'msi', 'jsp', 'shtml', 'sth', 'shtm');
// full path to include directory including the trailing slash
// includeDirectory default value = $root_directory..'include/
$includeDirectory = $root_directory.'include/';
// set default theme
// default_theme default value = blue
$default_theme = 'softed';
// default text that is placed initially in the login form for user name
// no default_user_name default value
$default_user_name = '';
// default text that is placed initially in the login form for password
// no default_password default value
$default_password = '';
// create user with default username and password
// create_default_user default value = false
$create_default_user = false;
// default_user_is_admin default value = false
$default_user_is_admin = false;
//Master currency name
$currency_name = '_MASTER_CURRENCY_';
// default charset
// default charset default value = 'UTF-8' or 'ISO-8859-1'
$default_charset = '_VT_CHARSET_';
$default_charset = strtoupper($default_charset); // DO NOT MODIFY THIS LINE, IT IS IMPORTANT
// default language
// default_language default value = en_us
$default_language = 'en_us';
// Generating Unique Application Key
$application_unique_key = '_VT_APP_UNIQKEY_';
// Maximum time limit for PHP script execution (in seconds)
$php_max_execution_time = 0;
// Set the default timezone as per your preference
$default_timezone = 'UTC';
/** If timezone is configured, try to set it */
if (!empty($default_timezone) && function_exists('date_default_timezone_set')) {
@date_default_timezone_set($default_timezone);
}
// Enable log4php debugging only if requried
$LOG4PHP_DEBUG = false;
// Override database with enviroment variables
$dbconfig['db_username'] = getenv('COREBOS_DBUSER') ? getenv('COREBOS_DBUSER') : $dbconfig['db_username'];
$dbconfig['db_password'] = getenv('COREBOS_DBPASS') ? getenv('COREBOS_DBPASS') : $dbconfig['db_password'];
$dbconfig['db_name'] = getenv('COREBOS_DBNAME') ? getenv('COREBOS_DBNAME') : $dbconfig['db_name'];
$site_URL = getenv('COREBOS_SITEURL') ? getenv('COREBOS_SITEURL') : $site_URL;
if (getenv('COREBOS_DBSERVER')) {
$dbconfig['db_server'] = getenv('COREBOS_DBSERVER');
$dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
$host_name = $dbconfig['db_hostname'];
}
// Override with developer settings
if (file_exists('config-dev.inc.php')) {
include 'config-dev.inc.php';
}
?>