Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.11 KB | None | 0 0
  1. <?php
  2. /*********************************************************************************
  3.  * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
  4.  * ("License"); You may not use this file except in compliance with the
  5.  * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
  6.  * Software distributed under the License is distributed on an  "AS IS"  basis,
  7.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  8.  * the specific language governing rights and limitations under the License.
  9.  * The Original Code is:  SugarCRM Open Source
  10.  * The Initial Developer of the Original Code is SugarCRM, Inc.
  11.  * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
  12.  * All Rights Reserved.
  13.  * Contributor(s): ______________________________________.
  14. ********************************************************************************/
  15.  
  16. // Adjust error_reporting favourable to deployment.
  17. version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED) : error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT); // PRODUCTION
  18. //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
  19.  
  20.  
  21. include('vtigerversion.php');
  22.  
  23. // more than 8MB memory needed for graphics
  24. // memory limit default value = 64M
  25. ini_set('memory_limit','512M');
  26.  
  27. // show or hide calendar, world clock, calculator, chat and CKEditor
  28. // Do NOT remove the quotes if you set these to false!
  29. $CALENDAR_DISPLAY = 'true';
  30. $WORLD_CLOCK_DISPLAY = 'true';
  31. $CALCULATOR_DISPLAY = 'true';
  32. $CHAT_DISPLAY = 'true';
  33. $USE_RTE = 'true';
  34.  
  35. // url for customer portal (Example: http://vtiger.com/portal)
  36. $PORTAL_URL = 'http://vtiger.com/customerportal';
  37.  
  38. // helpdesk support email id and support name (Example: 'support@vtiger.com' and 'vtiger support')
  39. $HELPDESK_SUPPORT_EMAIL_ID = '?????';
  40. $HELPDESK_SUPPORT_NAME = 'Служба поддержки';
  41. $HELPDESK_SUPPORT_EMAIL_REPLY_ID = $HELPDESK_SUPPORT_EMAIL_ID;
  42.  
  43. /* database configuration
  44.       db_server
  45.       db_port
  46.       db_hostname
  47.       db_username
  48.       db_password
  49.       db_name
  50. */
  51.  
  52. $dbconfig['db_server'] = 'localhost';
  53. $dbconfig['db_port'] = ':3306';
  54. $dbconfig['db_username'] = 'vtiger';
  55. $dbconfig['db_password'] = '????';
  56. $dbconfig['db_name'] = 'vtiger';
  57. $dbconfig['db_type'] = 'mysqli';
  58. $dbconfig['db_status'] = 'true';
  59.  
  60. // TODO: test if port is empty
  61. // TODO: set db_hostname dependending on db_type
  62. $dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
  63.  
  64. // log_sql default value = false
  65. $dbconfig['log_sql'] = false;
  66.  
  67. // persistent default value = true
  68. $dbconfigoption['persistent'] = true;
  69.  
  70. // autofree default value = false
  71. $dbconfigoption['autofree'] = false;
  72.  
  73. // debug default value = 0
  74. $dbconfigoption['debug'] = 0;
  75.  
  76. // seqname_format default value = '%s_seq'
  77. $dbconfigoption['seqname_format'] = '%s_seq';
  78.  
  79. // portability default value = 0
  80. $dbconfigoption['portability'] = 0;
  81.  
  82. // ssl default value = false
  83. $dbconfigoption['ssl'] = false;
  84.  
  85. $host_name = $dbconfig['db_hostname'];
  86.  
  87. $site_URL = 'http://??????.ru/';
  88.  
  89. // root directory path
  90. $root_directory = '/var/www/??????.ru/public_html/';
  91.  
  92. // cache direcory path
  93. $cache_dir = 'cache/';
  94.  
  95. // tmp_dir default value prepended by cache_dir = images/
  96. $tmp_dir = 'cache/images/';
  97.  
  98. // import_dir default value prepended by cache_dir = import/
  99. $import_dir = 'cache/import/';
  100.  
  101. // upload_dir default value prepended by cache_dir = upload/
  102. $upload_dir = 'cache/upload/';
  103.  
  104. // maximum file size for uploaded files in bytes also used when uploading import files
  105. // upload_maxsize default value = 3000000
  106. $upload_maxsize = 5242880;
  107.  
  108. // flag to allow export functionality
  109. // 'all' to allow anyone to use exports
  110. // 'admin' to only allow admins to export
  111. // 'none' to block exports completely
  112. // allow_exports default value = all
  113. $allow_exports = 'all';
  114.  
  115. // files with one of these extensions will have '.txt' appended to their filename on upload
  116. // upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm
  117. $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');
  118.  
  119. // full path to include directory including the trailing slash
  120. // includeDirectory default value = $root_directory..'include/
  121. $includeDirectory = $root_directory.'include/';
  122.  
  123. // list_max_entries_per_page default value = 20
  124. $list_max_entries_per_page = '50';
  125.  
  126. // limitpage_navigation default value = 5
  127. $limitpage_navigation = '5';
  128.  
  129. // history_max_viewed default value = 5
  130. $history_max_viewed = '5';
  131.  
  132. // default_module default value = Home
  133. $default_module = 'Home';
  134.  
  135. // default_action default value = index
  136. $default_action = 'index';
  137.  
  138. // set default theme
  139. // default_theme default value = blue
  140. $default_theme = 'softed';
  141.  
  142. // show or hide time to compose each page
  143. // calculate_response_time default value = true
  144. $calculate_response_time = true;
  145.  
  146. // default text that is placed initially in the login form for user name
  147. // no default_user_name default value
  148. $default_user_name = '';
  149.  
  150. // default text that is placed initially in the login form for password
  151. // no default_password default value
  152. $default_password = '';
  153.  
  154. // create user with default username and password
  155. // create_default_user default value = false
  156. $create_default_user = false;
  157. // default_user_is_admin default value = false
  158. $default_user_is_admin = false;
  159.  
  160. // if your MySQL/PHP configuration does not support persistent connections set this to true to avoid a large performance slowdown
  161. // disable_persistent_connections default value = false
  162. $disable_persistent_connections = false;
  163.  
  164. //Master currency name
  165. $currency_name = 'Russia, Rubles';
  166.  
  167. // default charset
  168. // default charset default value = 'UTF-8' or 'ISO-8859-1'
  169. $default_charset = 'UTF-8';
  170.  
  171. // default language
  172. // default_language default value = en_us
  173. $default_language = 'ru_ru';
  174.  
  175. // add the language pack name to every translation string in the display.
  176. // translation_string_prefix default value = false
  177. $translation_string_prefix = false;
  178.  
  179. //Option to cache tabs permissions for speed.
  180. $cache_tab_perms = true;
  181.  
  182. //Option to hide empty home blocks if no entries.
  183. $display_empty_home_blocks = false;
  184.  
  185. //Disable Stat Tracking of vtiger CRM instance
  186. $disable_stats_tracking = false;
  187.  
  188. // Generating Unique Application Key
  189. $application_unique_key = '9db30303173d247862020c652f90939e';
  190.  
  191. // trim descriptions, titles in listviews to this value
  192. $listview_max_textlength = '50';
  193.  
  194. // Maximum time limit for PHP script execution (in seconds)
  195. $php_max_execution_time = 0;
  196.  
  197. // Set the default timezone as per your preference
  198. $default_timezone = 'Europe/Moscow';
  199.  
  200. /** If timezone is configured, try to set it */
  201. if(isset($default_timezone) && function_exists('date_default_timezone_set')) {
  202.     @date_default_timezone_set($default_timezone);
  203. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement