PageRenderTime 53ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/system/config/default.php

https://github.com/redpinata-dev/contao
PHP | 348 lines | 143 code | 25 blank | 180 comment | 0 complexity | 8f018228ae77c4e2466fdf774f51d8a3 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-3.0, LGPL-2.1, BSD-3-Clause
  1. <?php
  2. /**
  3. * Contao Open Source CMS
  4. *
  5. * Copyright (c) 2005-2014 Leo Feyer
  6. *
  7. * @package Core
  8. * @link https://contao.org
  9. * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
  10. */
  11. ##############################################################
  12. # #
  13. # DO NOT CHANGE ANYTHING HERE! USE THE LOCAL CONFIGURATION #
  14. # FILE localconfig.php TO MODIFY THE CONTAO CONFIGURATION! #
  15. # #
  16. ##############################################################
  17. /**
  18. * -------------------------------------------------------------------------
  19. * GENERAL SETTINGS
  20. * -------------------------------------------------------------------------
  21. *
  22. * The title of the website is used in the <title> tag of the generated pages.
  23. *
  24. * The recommended default character set is UTF-8. All files of the framwork
  25. * are UTF-8 encoded as well. If you change the character set, make sure to
  26. * also change the database character set and the language file encoding.
  27. *
  28. * The administrator e-mail address is used for sending system alerts and other
  29. * messages concerning the content management system.
  30. *
  31. * If 'displayErrors' is set to true, error messages will be printed to the
  32. * screen. It is recommended to disable it for live pages.
  33. *
  34. * With option rewriteURL you can make Contao generate static URLs without
  35. * "index.php" (e.g. "alias.html" instead of "index.php/alias.html"). Note that
  36. * this feature requires Apache's mod_rewrite!
  37. *
  38. * The relative path to the Contao directory is usually set automatically.
  39. * However, if you are experiencing any problems, you can change it in the
  40. * local configuration file.
  41. */
  42. $GLOBALS['TL_CONFIG']['websiteTitle'] = 'Contao Open Source CMS';
  43. $GLOBALS['TL_CONFIG']['characterSet'] = 'utf-8';
  44. $GLOBALS['TL_CONFIG']['adminEmail'] = '';
  45. $GLOBALS['TL_CONFIG']['enableSearch'] = true;
  46. $GLOBALS['TL_CONFIG']['indexProtected'] = false;
  47. $GLOBALS['TL_CONFIG']['displayErrors'] = false;
  48. $GLOBALS['TL_CONFIG']['logErrors'] = true;
  49. $GLOBALS['TL_CONFIG']['rewriteURL'] = false;
  50. $GLOBALS['TL_CONFIG']['folderUrl'] = false;
  51. $GLOBALS['TL_CONFIG']['disableAlias'] = false;
  52. $GLOBALS['TL_CONFIG']['minifyMarkup'] = false;
  53. $GLOBALS['TL_CONFIG']['gzipScripts'] = false;
  54. /**
  55. * -------------------------------------------------------------------------
  56. * DATE AND TIME SETTINGS
  57. * -------------------------------------------------------------------------
  58. *
  59. * datimFormat = show date and time
  60. * dateFormat = show date only
  61. * timeFormat = show time only
  62. * timeZone = the server's default time zone
  63. *
  64. * See PHP function date() for more information.
  65. */
  66. $GLOBALS['TL_CONFIG']['datimFormat'] = 'Y-m-d H:i';
  67. $GLOBALS['TL_CONFIG']['dateFormat'] = 'Y-m-d';
  68. $GLOBALS['TL_CONFIG']['timeFormat'] = 'H:i';
  69. $GLOBALS['TL_CONFIG']['timeZone'] = ini_get('date.timezone') ?: 'GMT';
  70. /**
  71. * -------------------------------------------------------------------------
  72. * INPUT AND SECURITY SETTINGS
  73. * -------------------------------------------------------------------------
  74. *
  75. * If you use the input library to handle input data, all HTML tags except
  76. * for these 'allowedTags' will be removed.
  77. *
  78. * In Contao 2.10, the referer check has been replaced with a request token
  79. * system, which you can disable here (not recommended).
  80. */
  81. $GLOBALS['TL_CONFIG']['allowedTags']
  82. = '<a><abbr><acronym><address><area><article><aside><audio>'
  83. . '<b><bdi><bdo><big><blockquote><br><base><button>'
  84. . '<canvas><caption><cite><code><col><colgroup>'
  85. . '<data><datalist><dataset><dd><del><dfn><div><dl><dt>'
  86. . '<em>'
  87. . '<fieldset><figcaption><figure><footer><form>'
  88. . '<h1><h2><h3><h4><h5><h6><header><hgroup><hr>'
  89. . '<i><img><input><ins>'
  90. . '<kbd><keygen>'
  91. . '<label><legend><li><link>'
  92. . '<map><mark><menu>'
  93. . '<nav>'
  94. . '<object><ol><optgroup><option><output>'
  95. . '<p><param><pre>'
  96. . '<q>'
  97. . '<s><samp><section><select><small><source><span><strong><style><sub><sup>'
  98. . '<table><tbody><td><textarea><tfoot><th><thead><time><tr><tt>'
  99. . '<u><ul>'
  100. . '<var><video>'
  101. . '<wbr>';
  102. $GLOBALS['TL_CONFIG']['disableRefererCheck'] = false;
  103. $GLOBALS['TL_CONFIG']['disableIpCheck'] = false;
  104. $GLOBALS['TL_CONFIG']['requestTokenWhitelist'] = array();
  105. /**
  106. * -------------------------------------------------------------------------
  107. * DATABASE SETTINGS
  108. * -------------------------------------------------------------------------
  109. * Database drivers start with an uppercase character. Currently supported
  110. * databases: MySQLi, MySQL (deprecated).
  111. *
  112. * dbUser = database user name
  113. * dbPass = database password
  114. * dbHost = database host (might be "localhost" or "127.0.0.1")
  115. * dbDatabase = name of the database
  116. * dbPort = database port number (e.g. 3306 for MySQL)
  117. * dbPconnect = set to true if you want to use persistent connections
  118. *
  119. * Make sure that the database character set 'dbCharset' matches the character
  120. * set used on your HTML pages. Note that you might have to use a different
  121. * spelling (e.g. UTF8 instead of UTF-8 for MySQL).
  122. */
  123. $GLOBALS['TL_CONFIG']['dbDriver'] = '';
  124. $GLOBALS['TL_CONFIG']['dbUser'] = '';
  125. $GLOBALS['TL_CONFIG']['dbPass'] = '';
  126. $GLOBALS['TL_CONFIG']['dbHost'] = 'localhost';
  127. $GLOBALS['TL_CONFIG']['dbDatabase'] = '';
  128. $GLOBALS['TL_CONFIG']['dbPort'] = 3306;
  129. $GLOBALS['TL_CONFIG']['dbSocket'] = '';
  130. $GLOBALS['TL_CONFIG']['dbPconnect'] = false;
  131. $GLOBALS['TL_CONFIG']['dbCharset'] = 'UTF8';
  132. $GLOBALS['TL_CONFIG']['dbCollation'] = 'utf8_general_ci';
  133. $GLOBALS['TL_CONFIG']['dbSqlMode'] = '';
  134. /**
  135. * -------------------------------------------------------------------------
  136. * FTP SETTINGS
  137. * -------------------------------------------------------------------------
  138. *
  139. * Here you can enable FTP for managing files and folders ("Safe Mode Hack").
  140. *
  141. * ftpHost = host name (e.g. example.com or example.com:21)
  142. * ftpPath = path to installation (e.g. html/)
  143. * ftpUser = FTP username
  144. * ftpPass = FTP password
  145. */
  146. $GLOBALS['TL_CONFIG']['useFTP'] = false;
  147. $GLOBALS['TL_CONFIG']['ftpHost'] = '';
  148. $GLOBALS['TL_CONFIG']['ftpPath'] = '';
  149. $GLOBALS['TL_CONFIG']['ftpUser'] = '';
  150. $GLOBALS['TL_CONFIG']['ftpPass'] = '';
  151. $GLOBALS['TL_CONFIG']['ftpSSL'] = false;
  152. $GLOBALS['TL_CONFIG']['ftpPort'] = 21;
  153. /**
  154. * -------------------------------------------------------------------------
  155. * ENCRYPTION SETTINGS
  156. * -------------------------------------------------------------------------
  157. *
  158. * Please provide an encryption key that is at least 8 characters long. Note
  159. * that encrypted data can only be decrypted with the same key! Therefore
  160. * note it down and do not change it if your data is encrypted already.
  161. *
  162. * encryptionMode = defaults to "cfb"
  163. * encryptionCipher = defaults to "rijndael 256"
  164. *
  165. * See PHP extension "mcrypt" for more information.
  166. */
  167. $GLOBALS['TL_CONFIG']['encryptionKey'] = '';
  168. $GLOBALS['TL_CONFIG']['encryptionMode'] = 'cfb';
  169. $GLOBALS['TL_CONFIG']['encryptionCipher'] = 'rijndael-256';
  170. /**
  171. * -------------------------------------------------------------------------
  172. * FILE UPLOAD SETTINGS
  173. * -------------------------------------------------------------------------
  174. *
  175. * The default files directory is "files".
  176. *
  177. * uploadTypes = allowed file types for uploads
  178. * maxFileSize = maximum file size
  179. * imageWidth = maximum image width
  180. * imageHeight = maximum image height
  181. * jpgQuality = thumbnail quality in percent
  182. *
  183. * Please enter how many upload fields you want to show in the back end.
  184. */
  185. $GLOBALS['TL_CONFIG']['uploadTypes']
  186. = 'jpg,jpeg,gif,png,ico,'
  187. . 'odt,ods,odp,odg,ott,ots,otp,otg,pdf,csv,'
  188. . 'doc,docx,dot,dotx,xls,xlsx,xlt,xltx,ppt,pptx,pot,potx,'
  189. . 'mp3,mp4,m4a,m4v,webm,ogg,ogv,wma,wmv,ram,rm,mov,fla,flv,swf,'
  190. . 'css,scss,less,js,html,htm,txt,zip,rar,7z,cto';
  191. $GLOBALS['TL_CONFIG']['uploadPath'] = 'files';
  192. $GLOBALS['TL_CONFIG']['maxFileSize'] = 2048000;
  193. $GLOBALS['TL_CONFIG']['imageWidth'] = 800;
  194. $GLOBALS['TL_CONFIG']['imageHeight'] = 600;
  195. $GLOBALS['TL_CONFIG']['jpgQuality'] = 80;
  196. $GLOBALS['TL_CONFIG']['uploadFields'] = 8;
  197. $GLOBALS['TL_CONFIG']['gdMaxImgWidth'] = 3000;
  198. $GLOBALS['TL_CONFIG']['gdMaxImgHeight'] = 3000;
  199. /**
  200. * -------------------------------------------------------------------------
  201. * SMTP SETTINGS
  202. * -------------------------------------------------------------------------
  203. *
  204. * Here you can enable SMTP for sending mails. By default, mails are sent using
  205. * PHP function mail(). Please enter your SMTP parameters below.
  206. *
  207. * smtpHost = host name (defaults to localhost)
  208. * smtpUser = SMTP username
  209. * smtpPass = SMTP password
  210. * smtpEnc = SMTP encryption ("ssl" or "tls")
  211. * smtpPort = defaults to 25 or 465 for SSL
  212. */
  213. $GLOBALS['TL_CONFIG']['useSMTP'] = false;
  214. $GLOBALS['TL_CONFIG']['smtpHost'] = 'localhost';
  215. $GLOBALS['TL_CONFIG']['smtpUser'] = '';
  216. $GLOBALS['TL_CONFIG']['smtpPass'] = '';
  217. $GLOBALS['TL_CONFIG']['smtpEnc'] = '';
  218. $GLOBALS['TL_CONFIG']['smtpPort'] = 25;
  219. /**
  220. * -------------------------------------------------------------------------
  221. * TIMEOUT SETTING
  222. * -------------------------------------------------------------------------
  223. *
  224. * undoPeriod = period of time undo steps are kept (default: 24 hours)
  225. * versionPeriod = period of time versions are kept (default: 90 days)
  226. * logPeriod = period of time log entries are kept (default: 14 days)
  227. * sessionTimeout = period of time sessions are kept (default: 1 hour)
  228. * lockPeriod = period of time an account is locked (default: 5 minutes)
  229. */
  230. $GLOBALS['TL_CONFIG']['undoPeriod'] = 86400;
  231. $GLOBALS['TL_CONFIG']['versionPeriod'] = 7776000;
  232. $GLOBALS['TL_CONFIG']['logPeriod'] = 1209600;
  233. $GLOBALS['TL_CONFIG']['sessionTimeout'] = 3600;
  234. $GLOBALS['TL_CONFIG']['lockPeriod'] = 300;
  235. /**
  236. * -------------------------------------------------------------------------
  237. * DEFAULT USER CONFIGURATION
  238. * -------------------------------------------------------------------------
  239. *
  240. * showHelp = show a help text after each input field
  241. * thumbnails = show image thumbnails in the file manager
  242. * useRTE = use the rich text editor (TinyMCE)
  243. * useCE = use the code editor (ACE)
  244. */
  245. $GLOBALS['TL_CONFIG']['showHelp'] = true;
  246. $GLOBALS['TL_CONFIG']['thumbnails'] = true;
  247. $GLOBALS['TL_CONFIG']['useRTE'] = true;
  248. $GLOBALS['TL_CONFIG']['useCE'] = true;
  249. /**
  250. * -------------------------------------------------------------------------
  251. * SYSTEM SETTINGS
  252. * -------------------------------------------------------------------------
  253. *
  254. * The number of resultsPerPage is used to limit query results in the back
  255. * end. It does not apply to the search engine.
  256. *
  257. * If you enter a maximum image width, images and media files cannot be wider
  258. * than this value and will not break your page layout.
  259. *
  260. * The default user owns all pages and items that are not assigned to a certain
  261. * user. Please enter the ID of the default user (database record).
  262. *
  263. * The default group owns all pages and items that are not assigned to a group.
  264. * Please enter the ID of the default group (database record).
  265. *
  266. * Default page permissions: allow everything for the owner (u1 - u6) of a page.
  267. * See back end module "Navigation" for more information.
  268. *
  269. * Please enter a comma separated list of allowed image types, editable files
  270. * and all all file types that are allowed to be downloaded.
  271. */
  272. $GLOBALS['TL_CONFIG']['loginCount'] = 3;
  273. $GLOBALS['TL_CONFIG']['resultsPerPage'] = 30;
  274. $GLOBALS['TL_CONFIG']['maxResultsPerPage'] = 500;
  275. $GLOBALS['TL_CONFIG']['maxImageWidth'] = '';
  276. $GLOBALS['TL_CONFIG']['defaultUser'] = 0;
  277. $GLOBALS['TL_CONFIG']['defaultGroup'] = 0;
  278. $GLOBALS['TL_CONFIG']['defaultChmod'] = array('u1', 'u2', 'u3', 'u4', 'u5', 'u6', 'g4', 'g5', 'g6');
  279. $GLOBALS['TL_CONFIG']['validImageTypes'] = 'jpg,jpeg,gif,png,tif,tiff,bmp';
  280. $GLOBALS['TL_CONFIG']['editableFiles'] = 'htm,html,css,scss,less,js,txt,log,xml';
  281. $GLOBALS['TL_CONFIG']['templateFiles'] = 'tpl,html5,xhtml';
  282. $GLOBALS['TL_CONFIG']['allowedDownload']
  283. = 'jpg,jpeg,gif,png,'
  284. . 'odt,ods,odp,odg,ott,ots,otp,otg,pdf,'
  285. . 'doc,docx,dot,dotx,xls,xlsx,xlt,xltx,ppt,pptx,pot,potx,'
  286. . 'mp3,mp4,m4a,m4v,webm,ogg,ogv,wma,wmv,ram,rm,mov,'
  287. . 'zip,rar,7z';
  288. $GLOBALS['TL_CONFIG']['installPassword'] = '';
  289. $GLOBALS['TL_CONFIG']['liveUpdateBase'] = 'http://www.inetrobots.com/liveupdate/';
  290. $GLOBALS['TL_CONFIG']['repository_wsdl'] = 'http://contao.org/services/repository.wsdl';
  291. $GLOBALS['TL_CONFIG']['repository_languages'] = 'en,de';
  292. $GLOBALS['TL_CONFIG']['repository_listsize'] = 10;
  293. $GLOBALS['TL_CONFIG']['backendTheme'] = 'flexible';
  294. $GLOBALS['TL_CONFIG']['inactiveModules'] = '';
  295. $GLOBALS['TL_CONFIG']['liveUpdateId'] = '';
  296. $GLOBALS['TL_CONFIG']['disableInsertTags'] = false;
  297. $GLOBALS['TL_CONFIG']['rootFiles'] = array();
  298. $GLOBALS['TL_CONFIG']['fileSyncExclude'] = '';
  299. $GLOBALS['TL_CONFIG']['doNotCollapse'] = false;
  300. $GLOBALS['TL_CONFIG']['urlSuffix'] = '.html';
  301. $GLOBALS['TL_CONFIG']['exampleWebsite'] = '';
  302. $GLOBALS['TL_CONFIG']['minPasswordLength'] = 8;
  303. $GLOBALS['TL_CONFIG']['cacheMode'] = 'both';
  304. $GLOBALS['TL_CONFIG']['autologin'] = 7776000;
  305. $GLOBALS['TL_CONFIG']['staticFiles'] = '';
  306. $GLOBALS['TL_CONFIG']['staticPlugins'] = '';
  307. $GLOBALS['TL_CONFIG']['disableCron'] = false;
  308. $GLOBALS['TL_CONFIG']['coreOnlyMode'] = false;
  309. $GLOBALS['TL_CONFIG']['addLanguageToUrl'] = false;
  310. $GLOBALS['TL_CONFIG']['doNotRedirectEmpty'] = false;
  311. $GLOBALS['TL_CONFIG']['useAutoItem'] = true;
  312. $GLOBALS['TL_CONFIG']['privacyAnonymizeIp'] = true;
  313. $GLOBALS['TL_CONFIG']['privacyAnonymizeGA'] = true;
  314. $GLOBALS['TL_CONFIG']['bypassCache'] = false;
  315. $GLOBALS['TL_CONFIG']['loadGoogleFonts'] = false;
  316. $GLOBALS['TL_CONFIG']['defaultFileChmod'] = 0644;
  317. $GLOBALS['TL_CONFIG']['defaultFolderChmod'] = 0755;
  318. $GLOBALS['TL_CONFIG']['maxPaginationLinks'] = 7;
  319. $GLOBALS['TL_CONFIG']['proxyServerIps'] = '';
  320. $GLOBALS['TL_CONFIG']['sslProxyDomain'] = '';
  321. $GLOBALS['TL_CONFIG']['debugMode'] = false;
  322. $GLOBALS['TL_CONFIG']['maintenanceMode'] = true;
  323. $GLOBALS['TL_CONFIG']['errorReporting'] = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED;