Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../vtiger
File: config.inc.php
<?php
[0] Fix | Delete
/*********************************************************************************
[1] Fix | Delete
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
[2] Fix | Delete
* ("License"); You may not use this file except in compliance with the
[3] Fix | Delete
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
[4] Fix | Delete
* Software distributed under the License is distributed on an "AS IS" basis,
[5] Fix | Delete
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
[6] Fix | Delete
* the specific language governing rights and limitations under the License.
[7] Fix | Delete
* The Original Code is: SugarCRM Open Source
[8] Fix | Delete
* The Initial Developer of the Original Code is SugarCRM, Inc.
[9] Fix | Delete
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
[10] Fix | Delete
* All Rights Reserved.
[11] Fix | Delete
* Contributor(s): ______________________________________.
[12] Fix | Delete
********************************************************************************/
[13] Fix | Delete
[14] Fix | Delete
// Adjust error_reporting favourable to deployment.
[15] Fix | Delete
version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED & E_ERROR) : error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED & E_ERROR & ~E_STRICT); // PRODUCTION
[16] Fix | Delete
//ini_set('display_errors','on'); version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED) : error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT); // DEBUGGING
[17] Fix | Delete
//ini_set('display_errors','on'); error_reporting(E_ALL); // STRICT DEVELOPMENT
[18] Fix | Delete
[19] Fix | Delete
[20] Fix | Delete
include('vtigerversion.php');
[21] Fix | Delete
[22] Fix | Delete
// more than 8MB memory needed for graphics
[23] Fix | Delete
// memory limit default value = 64M
[24] Fix | Delete
ini_set('memory_limit','512M');
[25] Fix | Delete
[26] Fix | Delete
// show or hide calendar, world clock, calculator, chat and CKEditor
[27] Fix | Delete
// Do NOT remove the quotes if you set these to false!
[28] Fix | Delete
$CALENDAR_DISPLAY = 'true';
[29] Fix | Delete
$USE_RTE = 'true';
[30] Fix | Delete
[31] Fix | Delete
// helpdesk support email id and support name (Example: 'support@vtiger.com' and 'vtiger support')
[32] Fix | Delete
$HELPDESK_SUPPORT_EMAIL_ID = '[[admin_email]]';
[33] Fix | Delete
$HELPDESK_SUPPORT_NAME = 'your-support name';
[34] Fix | Delete
$HELPDESK_SUPPORT_EMAIL_REPLY_ID = $HELPDESK_SUPPORT_EMAIL_ID;
[35] Fix | Delete
[36] Fix | Delete
/* database configuration
[37] Fix | Delete
db_server
[38] Fix | Delete
db_port
[39] Fix | Delete
db_hostname
[40] Fix | Delete
db_username
[41] Fix | Delete
db_password
[42] Fix | Delete
db_name
[43] Fix | Delete
*/
[44] Fix | Delete
[45] Fix | Delete
$dbconfig['db_server'] = '[[softdbhost]]';
[46] Fix | Delete
$dbconfig['db_port'] = ':3306';
[47] Fix | Delete
$dbconfig['db_username'] = '[[softdbuser]]';
[48] Fix | Delete
$dbconfig['db_password'] = '[[softdbpass]]';
[49] Fix | Delete
$dbconfig['db_name'] = '[[softdb]]';
[50] Fix | Delete
$dbconfig['db_type'] = 'mysqli';
[51] Fix | Delete
$dbconfig['db_status'] = 'true';
[52] Fix | Delete
[53] Fix | Delete
// TODO: test if port is empty
[54] Fix | Delete
// TODO: set db_hostname dependending on db_type
[55] Fix | Delete
$dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
[56] Fix | Delete
[57] Fix | Delete
// log_sql default value = false
[58] Fix | Delete
$dbconfig['log_sql'] = false;
[59] Fix | Delete
[60] Fix | Delete
// persistent default value = true
[61] Fix | Delete
$dbconfigoption['persistent'] = true;
[62] Fix | Delete
[63] Fix | Delete
// autofree default value = false
[64] Fix | Delete
$dbconfigoption['autofree'] = false;
[65] Fix | Delete
[66] Fix | Delete
// debug default value = 0
[67] Fix | Delete
$dbconfigoption['debug'] = 0;
[68] Fix | Delete
[69] Fix | Delete
// seqname_format default value = '%s_seq'
[70] Fix | Delete
$dbconfigoption['seqname_format'] = '%s_seq';
[71] Fix | Delete
[72] Fix | Delete
// portability default value = 0
[73] Fix | Delete
$dbconfigoption['portability'] = 0;
[74] Fix | Delete
[75] Fix | Delete
// ssl default value = false
[76] Fix | Delete
$dbconfigoption['ssl'] = false;
[77] Fix | Delete
[78] Fix | Delete
$host_name = $dbconfig['db_hostname'];
[79] Fix | Delete
[80] Fix | Delete
$site_URL = '[[softurl]]/';
[81] Fix | Delete
[82] Fix | Delete
// url for customer portal (Example: http://vtiger.com/portal)
[83] Fix | Delete
$PORTAL_URL = $site_URL.'/customerportal';
[84] Fix | Delete
// root directory path
[85] Fix | Delete
$root_directory = '[[softpath]]/';
[86] Fix | Delete
[87] Fix | Delete
// cache direcory path
[88] Fix | Delete
$cache_dir = 'cache/';
[89] Fix | Delete
[90] Fix | Delete
// tmp_dir default value prepended by cache_dir = images/
[91] Fix | Delete
$tmp_dir = 'cache/images/';
[92] Fix | Delete
[93] Fix | Delete
// import_dir default value prepended by cache_dir = import/
[94] Fix | Delete
$import_dir = 'cache/import/';
[95] Fix | Delete
[96] Fix | Delete
// upload_dir default value prepended by cache_dir = upload/
[97] Fix | Delete
$upload_dir = 'cache/upload/';
[98] Fix | Delete
[99] Fix | Delete
// maximum file size for uploaded files in bytes also used when uploading import files
[100] Fix | Delete
// upload_maxsize default value = 3000000
[101] Fix | Delete
$upload_maxsize = 3145728;//3MB
[102] Fix | Delete
[103] Fix | Delete
// flag to allow export functionality
[104] Fix | Delete
// 'all' to allow anyone to use exports
[105] Fix | Delete
// 'admin' to only allow admins to export
[106] Fix | Delete
// 'none' to block exports completely
[107] Fix | Delete
// allow_exports default value = all
[108] Fix | Delete
$allow_exports = 'all';
[109] Fix | Delete
[110] Fix | Delete
// files with one of these extensions will have '.txt' appended to their filename on upload
[111] Fix | Delete
// upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm
[112] Fix | Delete
$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', 'htaccess');
[113] Fix | Delete
[114] Fix | Delete
// list_max_entries_per_page default value = 20
[115] Fix | Delete
$list_max_entries_per_page = '20';
[116] Fix | Delete
[117] Fix | Delete
// history_max_viewed default value = 5
[118] Fix | Delete
$history_max_viewed = '5';
[119] Fix | Delete
[120] Fix | Delete
// default_action default value = index
[121] Fix | Delete
$default_action = 'index';
[122] Fix | Delete
[123] Fix | Delete
// set default theme
[124] Fix | Delete
// default_theme default value = blue
[125] Fix | Delete
$default_theme = 'softed';
[126] Fix | Delete
[127] Fix | Delete
// default text that is placed initially in the login form for user name
[128] Fix | Delete
// no default_user_name default value
[129] Fix | Delete
$default_user_name = '';
[130] Fix | Delete
[131] Fix | Delete
// default text that is placed initially in the login form for password
[132] Fix | Delete
// no default_password default value
[133] Fix | Delete
$default_password = '';
[134] Fix | Delete
[135] Fix | Delete
// create user with default username and password
[136] Fix | Delete
// create_default_user default value = false
[137] Fix | Delete
$create_default_user = false;
[138] Fix | Delete
[139] Fix | Delete
//Master currency name
[140] Fix | Delete
$currency_name = 'USA, Dollars';
[141] Fix | Delete
[142] Fix | Delete
// default charset
[143] Fix | Delete
// default charset default value = 'UTF-8' or 'ISO-8859-1'
[144] Fix | Delete
$default_charset = 'UTF-8';
[145] Fix | Delete
[146] Fix | Delete
// default language
[147] Fix | Delete
// default_language default value = en_us
[148] Fix | Delete
$default_language = 'en_us';
[149] Fix | Delete
[150] Fix | Delete
//Option to hide empty home blocks if no entries.
[151] Fix | Delete
$display_empty_home_blocks = false;
[152] Fix | Delete
[153] Fix | Delete
//Disable Stat Tracking of vtiger CRM instance
[154] Fix | Delete
$disable_stats_tracking = false;
[155] Fix | Delete
[156] Fix | Delete
// Generating Unique Application Key
[157] Fix | Delete
$application_unique_key = '[[unique_key]]';
[158] Fix | Delete
[159] Fix | Delete
// trim descriptions, titles in listviews to this value
[160] Fix | Delete
$listview_max_textlength = 40;
[161] Fix | Delete
[162] Fix | Delete
// Maximum time limit for PHP script execution (in seconds)
[163] Fix | Delete
$php_max_execution_time = 0;
[164] Fix | Delete
[165] Fix | Delete
// Set the default timezone as per your preference
[166] Fix | Delete
$default_timezone = 'UTC';
[167] Fix | Delete
[168] Fix | Delete
/** If timezone is configured, try to set it */
[169] Fix | Delete
if(isset($default_timezone) && function_exists('date_default_timezone_set')) {
[170] Fix | Delete
@date_default_timezone_set($default_timezone);
[171] Fix | Delete
}
[172] Fix | Delete
[173] Fix | Delete
//Set the default layout
[174] Fix | Delete
$default_layout = 'v7';
[175] Fix | Delete
[176] Fix | Delete
//Maximum Listview Fields Selection Size
[177] Fix | Delete
$maxListFieldsSelectionSize = 15;
[178] Fix | Delete
[179] Fix | Delete
include_once 'config.security.php';
[180] Fix | Delete
?>
[181] Fix | Delete
[182] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function