[TASK] Make extbase and fluid required extensions
[Packages/TYPO3.CMS.git] / t3lib / config_default.php
1 <?php
2 /**
3 * TYPO3 default configuration
4 *
5 * TYPO3_CONF_VARS is a global array with configuration for the TYPO3 libraries
6 * THESE VARIABLES MAY BE OVERRIDDEN FROM WITHIN localconf.php
7 *
8 * 'IM' is short for 'ImageMagick', which is an external image manipulation package available from www.imagemagick.org. Version is ABSOLUTELY preferred to be 4.2.9, but may be 5+. See the install notes for TYPO3!!
9 * 'GD' is short for 'GDLib/FreeType', which are libraries that should be compiled into PHP4. GDLib <=1.3 supports GIF, while the latest version 1.8.x and 2.x supports only PNG. GDLib is available from www.boutell.com/gd/. Freetype has a link from there.
10 * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
11 *
12 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
13 */
14
15 if (!defined ('PATH_typo3conf')) die ('The configuration path was not properly defined!');
16
17 //Security related constant: Default value of fileDenyPattern
18 define('FILE_DENY_PATTERN_DEFAULT', '\.(php[3-6]?|phpsh|phtml)(\..*)?$|^\.htaccess$');
19
20 //Security related constant: Comma separated list of file extensions that should be registered as php script file extensions
21 define('PHP_EXTENSIONS_DEFAULT', 'php,php3,php4,php5,php6,phpsh,inc,phtml');
22
23 // Defines a list that are basically required by a TYPO3 system.
24 define('REQUIRED_EXTENSIONS', 'cms,lang,sv,em,recordlist,extbase,fluid');
25
26 $TYPO3_CONF_VARS = array(
27 'GFX' => array( // Configuration of the image processing features in TYPO3. 'IM' and 'GD' are short for ImageMagick and GD library respectively.
28 'image_processing' => TRUE, // Boolean: Enables image processing features. Disabling this means NO image processing with either GD or IM!
29 'thumbnails' => TRUE, // Boolean: Enables the use of thumbnails in the backend interface. Thumbnails are generated by IM/partly GD in the file typo3/thumbs.php
30 'thumbnails_png' => 0, // Bits. Bit0: If set, thumbnails from non-jpegs will be 'png', otherwise 'gif' (0=gif/1=png). Bit1: Even JPG's will be converted to png or gif (2=gif/3=png)
31 'gif_compress' => TRUE, // Boolean: Enables the use of the t3lib_div::gif_compress() workaround function for compressing giffiles made with GD or IM, which probably use only RLE or no compression at all.
32 'imagefile_ext' => 'gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai', // Commalist of file extensions perceived as images by TYPO3. List should be set to 'gif,png,jpeg,jpg' if IM is not available. Lowercase and no spaces between!
33
34 'gdlib' => TRUE, // Boolean: Enables the use of GD.
35 'gdlib_png' => FALSE, // Boolean: Enables the use of GD, with PNG only. This means that all items normally generated as gif-files will be png-files instead!
36
37 'im' => TRUE, // Boolean: Enables the use of IM.
38 'im_path' => '/usr/bin/', // Path to the IM tools 'convert', 'combine', 'identify'.
39 'im_path_lzw' => '/usr/bin/', // Path to the IM tool 'convert' with LZW enabled! See 'gif_compress'. If your version 4.2.9 of ImageMagick is compiled with LZW you may leave this field blank AND disable the flag 'gif_compress'! Tip: You can call LZW 'convert' with a prefix like 'myver_convert' by setting this path with it, eg. '/usr/bin/myver_' instead of just '/usr/bin/'.
40
41 'im_version_5' => 'im6', // String: Set this either to "im6" or "gm" (uses GraphicsMagick instead of ImageMagick). Setting this value will automatically configure some settings for use with the specified program version.
42 'im_negate_mask' => FALSE, // Boolean: Indicates if the mask images should be inverted first. This depends of the ImageMagick version. Below ver. 5.1 this should be FALSE. Above ImageMagick version 5.2+ it should be TRUE. Just set the flag if the masks works opposite the intension!
43 'im_imvMaskState' => FALSE, // Boolean: If set, the 'im_negate_mask' state is inverted. This is very useful with newer versions of IM5 (at least 5.4.3+) where the 'im_version_5' setting will set 'im_negate_mask' which will eventually be wrong... Halleluja for ImageMagick - have I ever regreted using that package...
44 'im_no_effects' => FALSE, // Boolean: This is necessary if using ImageMagick 5+. Effects in Imagemagick 5+ tends to render very slowly! Therefore this must be disabled in order not to perform sharpen, blurring and such. (However lately IM5 is allowed for effects again, but syntax has changed!)
45 'im_v5effects' => 0, // <p>Integer (-1, 0, 1)</p><dl><dt>0</dt><dd>disabled</dd><dt>-1</dt><dd>Do not sharpen images by default</dd><dt>1</dt><dd>All; blur and sharpening is allowed in ImageMagick again and the 'im_no_effects' flag is cancelled.</dd></dl><p>Blurring and sharpening has new syntaxes though. See class.t3lib_stdgraphic.php for details.</p>
46 'im_mask_temp_ext_gif' => FALSE, // Boolean: This should be set if ImageMagick is version 5+. This is used in class.tslib_content.php for masking images and the extension png is normally used because it's faster than gif for temporary files. But png seems not to work with some IM 5+ versions, so...
47 'im_mask_temp_ext_noloss' => 'miff', // String: Loss-less ImageMagick extension to use for mask processing in temporary filenames. Normally 'miff' (ImageMagick's OWN format) will do fine. However at least IM 5.4.9 has proved not to be able to write to its own file format which forced me to add this option. You can try and set this to tif/png/jpg if some masking doesn't work the way it should.
48 'im_noScaleUp' => FALSE, // Boolean: If set, images are not being scaled up if told so (in t3lib/stdgraphics.php)
49 'im_combine_filename' => 'combine', // String: Latest ImageMagick versions has changed the name of combine to composite. Configure here if needed.
50 'im_noFramePrepended' => FALSE, // Boolean: If set, the [x] frame indicator is NOT prepended to filenames in stdgraphic. Some IM5+ version didn't work at all with the typical [0]-prefix, which allow multipage pdf's and animated gif's to be scaled only for the first frame/page and that seriously cuts down rendering time. Set this flag only if your ImageMagick version cannot find the files. Notice that changing this flag causes temporary filenames to change, thus the server will begin scaling images again which were previously cached.
51 'im_stripProfileCommand' => '+profile \'*\'', // String: Specify the command to strip the profile information, which can reduce thumbnail size up to 60KB. Command can differ in IM/GM, IM also know the -strip command. See <a href="http://www.imagemagick.org/Usage/thumbnails/#profiles" target="_blank">imagemagick.org</a> for details
52 'im_useStripProfileByDefault' => TRUE, // Boolean: If set, the im_stripProfileCommand is used with all IM Image operations by default. See tsRef for setting this parameter explocit for IMAGE generation.
53 'jpg_quality' => 70, // Integer: Default JPEG generation quality
54 'enable_typo3temp_db_tracking' => FALSE, // Boolean: If set, then all files in typo3temp will be logged in a database table. In addition to being a log of the files with original filenames, it also serves to secure that the same image is not rendered simultaneously by two different processes.
55 'TTFdpi' => 96, // Integer: Enter how many dpi the FreeType module uses. Freetype1 should be set to 72. Freetype2 should be set to 96 (otherwise fonts are rendered way bigger than FreeType1). This works as a global scaling factor for Freetype.
56 'png_truecolor' => TRUE, // Boolean: If set PNGs will get created as truecolor PNGs. If you use GDlib2 you can create truecolor images if they look not well currently. Note that this results in an increased image size. JPEGs get always created in truecolor now (GDlib2 required)
57 ),
58 'SYS' => array( // System related concerning both frontend and backend.
59 'lang' => array(
60 'cache' => array(
61 'lifetime' => 86400,
62 'clear_menu' => FALSE,
63 ),
64 'format' => array(
65 'priority' => 'xlf,xml,php'
66 ),
67 'parser' => array(
68 'php' => 't3lib_l10n_parser_Llphp',
69 'xml' => 't3lib_l10n_parser_Llxml',
70 'xlf' => 't3lib_l10n_parser_Xliff',
71 ),
72 ),
73 'sitename' => 'TYPO3', // Name of the base-site. This title shows up in the root of the tree structure if you're an 'admin' backend user.
74 'compat_version' => '3.8', // Compatibility version. TYPO3 behavior will try to be compatible with the output from the TYPO3 version set here. It is recommended to change this setting with the Upgrade Wizard.
75 'encryptionKey' => '', // This is a "salt" used for various kinds of encryption, CRC checksums and validations. You can enter any rubbish string here but try to keep it secret. You should notice that a change to this value might invalidate temporary information, URLs etc. At least, clear all cache if you change this so any such information can be rebuild with the new key.
76 'cookieDomain' => '', // Restricts the domain name for FE and BE session cookies. When setting the value to ".domain.com" (replace domain.com with your domain!), login sessions will be shared across subdomains. Alternatively, if you have more than one domain with sub-domains, you can set the value to a regular expression to match against the domain of the HTTP request. The result of the match is used as the domain for the cookie. eg. /\.(example1|example2)\.com$/ or /\.(example1\.com)|(example2\.net)$/. Separate domains for FE and BE can be set using <a href="#FE-cookieDomain">$TYPO3_CONF_VARS['FE']['cookieDomain']</a> and <a href="#BE-cookieDomain">$TYPO3_CONF_VARS['BE']['cookieDomain']</a> respectively.
77 'cookieSecure' => 0, // <p>Integer (0, 1, 2): Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client.</p><dl><dt>0</dt><dd>always send cookie</dd><dt>1 (force HTTPS)</dt><dd>the cookie will only be set if a secure (HTTPS) connection exists - use this in combination with lockSSL since otherwise the application will fail and throw an exception</dd><dt>2</dt><dd>the cookie will be set in each case, but uses the secure flag if a secure (HTTPS) connection exists.</dd></dl>
78 'cookieHttpOnly' => FALSE, // Boolean: When enabled the cookie will be made accessible only through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such as JavaScript. This setting can effectively help to reduce identity theft through XSS attacks (although it is not supported by all browsers).
79 'doNotCheckReferer' => FALSE, // Boolean: If set, it's NOT checked numerous places that the refering host is the same as the current. This is an option you should set if you have problems with proxies not passing the HTTP_REFERER variable.
80 'recursiveDomainSearch' => FALSE, // Boolean: If set, the search for domain records will be done recursively by stripping parts of the host name off until a matching domain record is found.
81 'devIPmask' => '127.0.0.1,::1', // Defines a list of IP addresses which will allow development-output to display. The debug() function will use this as a filter. See the function t3lib_div::cmpIP() for details on syntax. Setting this to blank value will deny all. Setting to "*" will allow all.
82 'sqlDebug' => 0, // <p>Integer (0, 1, 2). Allows displaying executed SQL queries in the browser (for debugging purposes and development)</p><dl><dt>0</dt><dd>no SQL shown (default)</dd><dt>1</dt><dd>show only failed queries</dd><dt>2</dt><dd>show all queries</dd></dl>
83 'enable_DLOG' => FALSE, // Boolean: Whether the developer log is enabled. See constant "TYPO3_DLOG"
84 'ddmmyy' => 'd-m-y', // Format of Date-Month-Year - see PHP-function <a href="http://php.net/date" target="_blank">date()</a>
85 'hhmm' => 'H:i', // Format of Hours-Minutes - see PHP-function <a href="http://php.net/date" target="_blank">date()</a>
86 'USdateFormat' => FALSE, // Boolean: If TRUE, dates entered in the TCEforms of the backend will be formatted mm-dd-yyyy
87 'loginCopyrightWarrantyProvider' => '', // String: If you provide warranty for TYPO3 to your customers insert you (company) name here. It will appear in the login-dialog as the warranty provider. (You must also set URL below).
88 'loginCopyrightWarrantyURL' => '', // String: Add the URL where you explain the extend of the warranty you provide. This URL is displayed in the login dialog as the place where people can learn more about the conditions of your warranty. Must be set (more than 10 chars) in addition with the 'loginCopyrightWarrantyProvider' message.
89 'loginCopyrightShowVersion' => FALSE, // Boolean: If set, the current TYPO3 version is shown.
90 'curlUse' => FALSE, // Boolean: If set, try to use cURL to fetch external URLs
91 /** @deprecated Deprecated since 4.6 - will be removed in 4.8. */
92 'curlProxyServer' => '', // String: Proxyserver as http://proxy:port/. Deprecated since 4.6 - will be removed in 4.8. See below for http options.
93 /** @deprecated Deprecated since 4.6 - will be removed in 4.8. */
94 'curlProxyTunnel' => FALSE, // Boolean: If set, use a tunneled connection through the proxy (usefull for websense etc.). Deprecated since 4.6 - will be removed in 4.8. See below for http options.
95 /** @deprecated Deprecated since 4.6 - will be removed in 4.8. */
96 'curlProxyUserPass' => '', // String: Proxyserver authentication user:pass. Deprecated since 4.6 - will be removed in 4.8. See below for http options.
97 /** @deprecated Deprecated since 4.6 - will be removed in 4.8. */
98 'curlTimeout' => 0, // Integer: Timeout value for cURL requests in seconds. 0 means to wait indefinitely. Deprecated since 4.6 - will be removed in 4.8. See below for http options.
99 'form_enctype' => 'multipart/form-data', // String: This is the default form encoding type for most forms in TYPO3. It allows for file uploads to be in the form. However if file-upload is disabled for your PHP version even ordinary data sent with this encryption will not get to the server. So if you have file_upload disabled, you will have to change this to eg. 'application/x-www-form-urlencoded'
100 'textfile_ext' => 'txt,html,htm,css,tmpl,js,sql,xml,csv,' . PHP_EXTENSIONS_DEFAULT, // Text file extensions. Those that can be edited. Executable PHP files may not be editable in webspace if disallowed!
101 'contentTable' => '', // This is the page-content table (Normally 'tt_content')
102 'T3instID' => 'N/A', // A unique installation ID - not used yet. The idea is that a TYPO3 installation can identify itself by this ID string to the Extension Repository on TYPO3.org so that we can keep a realistic count of serious TYPO3 installations.
103 'binPath' => '', // String: List of absolute paths where external programs should be searched for. Eg. <code>/usr/local/webbin/,/home/xyz/bin/</code>. (ImageMagick path have to be configured separately)
104 'binSetup' => '', // String (textarea): List of programs (separated by newline or comma). By default programs will be searched in default paths and the special paths defined by 'binPath'. When PHP has openbasedir enabled the programs can not be found and have to be configured here. Example: <code>perl=/usr/bin/perl,unzip=/usr/local/bin/unzip</code>
105 't3lib_cs_convMethod' => '', // String (values: "iconv", "recode", "mbstring", default is homemade PHP-code). Defines which of these PHP-features to use for various charset conversion functions in t3lib_cs. Will speed up charset conversion radically.
106 't3lib_cs_utils' => '', // String (values: "iconv", "mbstring", default is homemade PHP-code). Defines which of these PHP-features to use for various charset processing functions in t3lib_cs. Will speed up charset functions radically.
107 'no_pconnect' => TRUE, // Boolean: If TRUE, "connect" is used to connect to the database. If FALSE, a persistent connection using "pconnect" will be established!
108 'multiplyDBfieldSize' => 1, // Double: 1-5: Amount used to multiply the DB field size when the install tool is evaluating the database size (eg. "2.5"). This is only useful e.g. if your database is ISO-8859-1 encoded but you want to use UTF-8 for your site. For Western European sites using UTF-8 the need should not be for more than twice the normal single-byte size (2) and for Chinese / Asian languages 3 should suffice. NOTICE: It is recommended to change the native database charset instead! (see <a href="http://wiki.typo3.org/index.php/UTF-8_support" target="_blank">TYPO3 wiki: UTF-8 support</a> for more information). NOTICE: This option is deprecated since TYPO3 4.5, and will not be used anymore in 4.7+. Please use proper tools to set your installation to native UTF-8.
109 'dbClientCompress' => FALSE, // Boolean: if TRUE, data exchange between TYPO3 and database server will be compressed. This may improve performance if (1) database serever is on the different server and (2) network connection speed to database server is 100mbps or less. CPU usage will be higher if this option is used but database operations will be executed faster due to much less (up to 3 times) database network traffic. This option has no effect if MySQL server is localhost.
110 'setMemoryLimit' => 0, // Integer: memory_limit in MB: If more than 16, TYPO3 will try to use ini_set() to set the memory limit of PHP to the value. This works only if the function ini_set() is not disabled by your sysadmin.
111 'serverTimeZone' => 1, // Integer: GMT offset of servers time (from time()). Default is "1" which is "GMT+1" (central european time). This value can be used in extensions that are GMT aware and wants to convert times to/from other timezones.
112 'phpTimeZone' => '', // String: timezone to force for all date() and mktime() functions. A list of supported values can be found at <a href="http://php.net/manual/en/timezones.php" target="_blank">php.net</a>. If this is not set, a valid fallback will be searched for by PHP (php.ini's <a href="http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" target="_blank">date.timezone</a> setting, server defaults, etc); and if no fallback is found, the value of "UTC" is used instead.
113 'systemLog' => '', // <p>String: semi-colon separated list. Defines one or more logging methods. Possible methods:</p><dl><dt>file,&lt;abs-path-to-file&gt;[,&lt;level&gt;]</dt><dd>logs to a file</dd><dt>mail,&lt;to&gt;[/&lt;from&gt;][,&lt;level&gt;]</dt><dd>sends the log entries via mail</dd><dt>syslog,&lt;facility&gt;,[,&lt;level&gt;]</dt><dd>uses the operating system's log. Facility may be one of LOCAL0..LOCAL7, USER (on Windows USER is the only valid type).</dd><dt>error_log[,,&lt;level&gt;]</dt><dd>uses the PHP error log</dd></dl><p>The &lt;level&gt; is the individual logging level (see <a href="#SYS-systemLogLevel">[SYS][systemLogLevel]</a>).</p>
114 'systemLogLevel' => 0, // <p>Integer (0, 1, 2, 3, 4): Only messages with same or higher severity are logged.</p><ul><li>0: info</li><li>1: notice</li><li>2: warning</li><li>3: error</li><li>4: fatal error</li></ul>
115 'enableDeprecationLog' => 'file', // Commalist: Enables the logging of deprecated methods and functions. Default is 'file'. The following options are allowed: <dl><dt>file</dt><dd>The log file will be written to typo3conf/deprecation_[hash-value].log</dd><dt>devlog</dt><dd>The log will be written to the development log</dd><dt>console<dt><dd>The log will be displayed in the Backend's Debug Console. The logging options can be combined by comma-separating them.</dd></dl>
116 'maxFileNameLength' => 60, // Integer: This is the maximum file name length. The value will be taken into account by basic file operations like renaming or creation of files and folders.
117 'UTF8filesystem' => FALSE, // Boolean: If TRUE then TYPO3 uses utf-8 to store file names. This allows for accented Latin letters as well as any other non-latin characters like Cyrillic and Chinese.
118 'systemLocale' => '', // String: locale used for certain system related functions, e.g. escaping shell commands. If problems with filenames containing special characters occur, the value of this option is probably wrong. See <a href="http://php.net/manual/en/function.setlocale.php" target="_blank">setlocale()</a>.
119 'lockingMode' => 'simple', // String: Define which locking mode is used to control requests to pages being generated. Can be one of either "disable" (no locking), "simple" (checks for file existance), "flock" (using PHPs <a href="http://php.net/flock" target="_blank">flock()</a> function), "semaphore" (using PHPs <a href="http://php.net/sem-acquire" target="_blank">sem_acquire()</a> function). Default is "disable".
120 'reverseProxyIP' => '', // String: list of IP addresses. If TYPO3 is behind one or more (intransparent) reverese proxies the IP addresses must be added here.
121 'reverseProxyHeaderMultiValue' => 'none', // String: "none","first","last": defines which values of a proxy header (eg HTTP_X_FORWARDED_FOR) to use, if more than one is found. "none" discards the value, "first" and "last" use the first/last of the values in the list.
122 'reverseProxyPrefix' => '', // String: optional prefix to be added to the internal URL (SCRIPT_NAME and REQUEST_URI).
123 'reverseProxySSL' => '', // String: '*' or list of IP addresses of proxies that use SSL (https) for the connection to the client, but an unencrypted connection (http) to the server. If '*' all proxies defined in <a href="#SYS-reverseProxyIP">[SYS][reverseProxyIP]</a> use SSL.
124 'reverseProxyPrefixSSL' => '', // String: prefix to be added to the internal URL (SCRIPT_NAME and REQUEST_URI) when accessing the server via an SSL proxy. This setting overrides <a href="#SYS-reverseProxyPrefix">[SYS][reverseProxyPrefix]</a>.
125 'caching' => array(
126 'cacheConfigurations' => array(
127 'cache_hash' => array(
128 'frontend' => 't3lib_cache_frontend_VariableFrontend',
129 'backend' => 't3lib_cache_backend_DbBackend',
130 'options' => array(),
131 ),
132 'cache_pages' => array(
133 'frontend' => 't3lib_cache_frontend_VariableFrontend',
134 'backend' => 't3lib_cache_backend_DbBackend',
135 'options' => array(
136 'compression' => TRUE
137 ),
138 ),
139 'cache_pagesection' => array(
140 'frontend' => 't3lib_cache_frontend_VariableFrontend',
141 'backend' => 't3lib_cache_backend_DbBackend',
142 'options' => array(
143 'compression' => TRUE
144 ),
145 ),
146 'cache_phpcode' => array(
147 'frontend' => 't3lib_cache_frontend_PhpFrontend',
148 'backend' => 't3lib_cache_backend_FileBackend',
149 'options' => array(),
150 ),
151 'cache_runtime' => array(
152 'frontend' => 't3lib_cache_frontend_VariableFrontend',
153 'backend' => 't3lib_cache_backend_TransientMemoryBackend',
154 'options' => array(),
155 ),
156 ),
157 ),
158 'useCachingFramework' => -1, // <i>Obsolete setting</i>. Please remove manually from <tt>localconf.php</tt>, if it is defined there. Caching Framework is now always enabled.
159 'additionalAllowedClassPrefixes' => NULL, // Class names in TYPO3 must usually start with tx_, Tx, user_ or User_. This setting allows to register additional prefixes in a comma separated list.
160 'displayErrors' => -1, // <p>Integer (-1, 0, 1, 2). Configures whether PHP errors should be displayed.</p><dl><dt>0</dt><dd>Do not display any PHP error messages. Overrides the value of "exceptionalErrors" and sets it to 0 (= no errors are turned into exceptions), the configured "productionExceptionHandler" is used as exception handler</dd><dt>1</dt><dd>Display error messages with the registered errorhandler. The configured "debugExceptionHandler" is used as exception handler</dd><dt>2</dt><dd>Display errors only if client matches <a href="#SYS-devIPmask">[SYS][devIPmask]</a>. If devIPmask matches the users IP address the configured "debugExceptionHandler" is used for exceptions, if not "productionExceptionHandler" will be used</dd><dt>-1</dt><dd>Default setting. With this option, you can override the PHP setting "display_errors". If devIPmask matches the users IP address the configured "debugExceptionHandler" is used for exceptions, if not "productionExceptionHandler" will be used.</dd></dl>
161 'productionExceptionHandler' => 't3lib_error_ProductionExceptionHandler', // String: Classname to handle exceptions that might happen in the TYPO3-code. Leave empty to disable exception handling. Default: "t3lib_error_ProductionExceptionHandler". This exception handler displays a nice error message when something went wrong. The error message is logged to the configured logs. Note: The configured "productionExceptionHandler" is used if displayErrors is set to "0" or to "-1" and devIPmask doesn't match the users IP.
162 'debugExceptionHandler' => 't3lib_error_DebugExceptionHandler', // String: Classname to handle exceptions that might happen in the TYPO3-code. Leave empty to disable exception handling. Default: "t3lib_error_DebugExceptionHandler". This exception handler displays the complete stack trace of any encountered exception. The error message and the stack trace is logged to the configured logs. Note: The configured "debugExceptionHandler" is used if displayErrors is set to "1" and if displayErrors is "-1" or "2" and the devIPmask matches the users IP.
163 'errorHandler' => 't3lib_error_ErrorHandler', // String: Classname to handle PHP errors. E.g.: t3lib_error_ErrorHandler. This class displays and logs all errors that are registered as "errorHandlerErrors" (<a href="#SYS-errorHandlerErrors">[SYS][errorHandlerErrors]</a>). Leave empty to disable error handling. Errors can be logged to syslog (see: <a href="#SYS-systemLog">[SYS][systemLog]</a>) to the installed developer log and to the "syslog" table. If an error is registered in "exceptionalErrors" ([SYS][exceptionalErrors]) it will be turned into an exception to be handled by the configured exceptionHandler.
164 'errorHandlerErrors'=> E_ALL ^ E_NOTICE, // Integer: The E_* constant that will be handled by the errorhandler. Default is "E_ALL ^ E_NOTICE".
165 'exceptionalErrors' => E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_USER_ERROR ^ E_USER_NOTICE ^ E_USER_WARNING, // Integer: The E_* constant that will be handled as an exception by t3lib_error_ErrorHandler. Default is <tt>E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING ^ E_USER_ERROR ^ E_USER_NOTICE ^ E_USER_WARNING</tt> (20725) and "0" if <tt>displayErrors=0</tt> (see <a href="http://php.net/manual/en/errorfunc.constants.php" target="_blank">PHP documentation</a>).
166 'enable_errorDLOG' => 0, // Boolean: If set, errors are written to the developer log (requires an installed *devlog* extension).
167 'enable_exceptionDLOG' => 0, // Boolean: If set, exceptions are written to the developer log (requires an installed *devlog* extension).
168 'syslogErrorReporting' => E_ALL ^ E_NOTICE, // Integer: Configures which PHP errors should be logged to the configured syslogs (see: [SYS][systemLog]). If set to "0" no PHP errors are logged to the syslog. Default is "E_ALL ^ E_NOTICE" (6135).
169 'belogErrorReporting' => E_ALL ^ E_NOTICE, // Integer: Configures which PHP errors should be logged to the "syslog" table (extension: belog). If set to "0" no PHP errors are logged to the sys_log table. Default is "E_ALL ^ E_NOTICE" (6135).
170 'locallangXMLOverride' => array(), // For extension/overriding of the arrays in 'locallang' files in frontend and backend. See 'Inside TYPO3' for more information.
171 'generateApacheHtaccess' => 1, // Boolean: TYPO3 can create <em>.htaccess</em> files which are used by Apache Webserver. They are useful for access protection or performance improvements. Currently <em>.htaccess</em> files in the following directories are created, if they do not exist: <ul><li>typo3temp/compressor/</li></ul>You want to disable this feature, if you are not running Apache or want to use own rulesets.
172 'fal' => array(
173 'registeredDrivers' => array(
174 'Local' => array(
175 'class' => 't3lib_file_Driver_LocalDriver',
176 'shortName' => 'Local',
177 'flexFormDS' => 'FILE:t3lib/file/Driver/Configuration/LocalDriverFlexForm.xml',
178 'label' => 'Local filesystem'
179 )
180 )
181 )
182 ),
183 'EXT' => array ( // Options related to the Extension Management
184 'noEdit' => TRUE, // Boolean: If set, the Extension Manager does NOT allow extension files to be edited! (Otherwise both local and global extensions can be edited.)
185 'allowGlobalInstall' => FALSE, // Boolean: If set, global extensions in typo3/ext/ are allowed to be installed, updated and deleted etc.
186 'allowLocalInstall' => TRUE, // Boolean: If set, local extensions in typo3conf/ext/ are allowed to be installed, updated and deleted etc.
187 'allowSystemInstall' => FALSE, // Boolean: If set, you can install extensions in the sysext/ dir. Use this to upgrade the 'cms' and 'lang' extensions.
188 'em_wsdlURL' => 'http://typo3.org/wsdl/tx_ter_wsdl.php', // The SOAP URL for uploading extensions to the TER2. Usually doesn't need to be changed.
189 'em_mirrorListURL' => 'http://repositories.typo3.org/mirrors.xml.gz', // Allows to preset the URL for fetching the extension repository mirror list from. Used in the Extension Manager.
190
191 'requiredExt' => '', // String. List of additional extensions which are REQUIRED and cannot be unloaded by the Extension Manager!
192 'ignoredExt' => '', // String. List of extensions to be ignored (not loaded), e.g. "em" can be disabled this way.
193 'excludeForPackaging' => '(CVS|\..*|.*~|.*\.bak)', // String: List of directories and files which will not be packaged into extensions nor taken into account otherwise by the Extension Manager. Perl regular expression syntax!
194 'extCache' => 1, // <p>Integer (0, 1)</p><dl><dt>0</dt><dd>ext-scripts (ext_localconf.php and ext_tables.php) are NOT cached, but included every time</dd><dt>1</dt><dd>scripts cached to typo3conf/temp_CACHED_[sitePathHash]* (saves some milliseconds even with PHP accelerators)</dd></dl>
195 'extList' => 'filelist,version,tsconfig_help,context_help,extra_page_cm_options,impexp,belog,about,cshmanual,aboutmodules,setup,opendocs,install,t3editor,felogin,feedit,recycler', // String (exclude) List of extensions which are enabled for this install. Use the Extension Manager (EM) to manage this!
196 'extList_FE' => '', // String (exclude). Same as extList, but only this extensions are loaded in FE
197 'extConf' => array( // Config-options for extensions, stored as serialized arrays by extension-keys. Handled automatically by the EM.
198 // '--key--' => array()
199 ),
200 ),
201 'BE' => array( // Backend Configuration.
202 'lang' => array(
203 'debug' => FALSE, // Debug LL in the backend
204 ),
205 'unzip_path' => '', // Path to "unzip".
206 'diff_path' => 'diff', // Path to "diff". For Windows this program can be downloaded here: <a href="http://unxutils.sourceforge.net/" target="_blank">unxutils.sourceforge.net</a>
207 'fileadminDir' => 'fileadmin/', // Path to the fileadmin dir. This is relative to PATH_site. (Automatically mounted for admin-users if set)
208 'RTEenabled' => TRUE, // Boolean: If set, the Rich Text editor will be an option in the backend. Notice that the editor must be enabled per-user and options are configurable. See admin guide.
209 'RTE_imageStorageDir' => 'uploads/', // Default storage directory for Rich Text Editor files
210 'RTE_reg' => array(), // Contains arrays of possible RTEs available (keys=extKey, values=cfg-array). Each array contains a key, "objRef", which contains a user function call with prefixed script path and instanciating a persistent global object. This can report back if browser requirements are OK, draw the RTE and do the transformations needed.
211 'staticFileEditPath' => 'fileadmin/static/', // Path to directory with static files for editing (see table sys_staticfiles_edit). Relative to PATH_site.
212 'lockRootPath' => '', // This path is used to evaluate if paths outside of PATH_site should be allowed. Ending slash required! This path is also used to restrict userHomePath/groupHomePath. Observe that the first part of 'userHomePath' and 'groupHomePath' must be the value of 'lockRootPath'. Eg. '/home/typo3/'.
213 'userHomePath' => '', // Path to the directory where TYPO3 backend-users have their home-dirs. Eg. '/home/typo3/users/'. A home for backend user 2 would be: '/home/typo3/users/2/'. Ending slash required!
214 'groupHomePath' => '', // Path to the directory where TYPO3 backend-groups have their home-dirs. Remember that the first part of this path must be 'lockRootPath'. Eg. '/home/typo3/groups/'. A home for backend group 1 would be: '/home/typo3/groups/1/'. Ending slash required!
215 'userUploadDir' => '', // Suffix to the user home dir which is what gets mounted in TYPO3. Eg. if the user dir is "../123_user/" and this value is "/upload" then "../123_user/upload" gets mounted.
216 'fileCreateMask' => '0644', // File mode mask for Unix file systems (when files are uploaded/created).
217 'folderCreateMask' => '0755', // As above, but for folders.
218 'createGroup' => '', // Group for newly created files and folders (Unix only). Group ownership can be changed on Unix file systems (see above). Set this if you want to change the group ownership of created files/folders to a specific group. This makes sense in all cases where the webserver is running with a different user/group as you do. Create a new group on your system and add you and the webserver user to the group. Now you can safely set the last bit in fileCreateMask/folderCreateMask to 0 (e.g. 770). Important: The user who is running your webserver needs to be a member of the group you specify here! Otherwise you might get some error messages.
219 'warning_email_addr' => '', // Email address that will receive notification whenever an attempt to login to the Install Tool is made and that will also receive warnings whenever more than 3 failed backend login attempts (regardless of user) are detected within an hour.
220 'warning_mode' => '', // Bit 1: If set, warning_email_addr will be notified every time a backend user logs in. Bit 2: If set, warning_email_addr will be notified every time an ADMIN backend user logs in. Other bits are reserved for future options.
221 'lockIP' => 4, // Integer (0-4). Session IP locking for backend users. See <a href="#FE-lockIP">[FE][lockIP]</a> for details. Default is 4 (which is locking the FULL IP address to session).
222 'sessionTimeout' => 3600, // Integer: seconds. Session time out for backend users. Default is 3600 seconds = 1 hour.
223 'IPmaskList' => '', // String: Lets you define a list of IP-numbers (with *-wildcards) that are the ONLY ones allowed access to ANY backend activity. On error an error header is sent and the script exits. Works like IP masking for users configurable through TSconfig. See syntax for that (or look up syntax for the function t3lib_div::cmpIP())
224 'lockBeUserToDBmounts' => TRUE, // Boolean: If set, the backend user is allowed to work only within his page-mount. It's advisable to leave this on because it makes security easy to manage.
225 'lockSSL' => 0, // <p>Integer (0, 1, 2, 3). If &gt;0, If set (1,2,3), the backend can only be operated from an SSL-encrypted connection (https)</p><dl><dt>0</dt><dd>no locking (default)</dd><dt>1</dt><dd>only allow access via SSL</dd><dt>2</dt><dd>redirect user trying to access non-https admin-urls to SSL URLs instead</dd><dt>3</dt><dd>only the login is forced to SSL, then the user switches back to non-SSL-mode</dd></dl>
226 'lockSSLPort' => 0, // Integer: Use a non-standard HTTPS port for lockSSL. Set this value if you use lockSSL and the HTTPS port of your webserver is not 443.
227 'enabledBeUserIPLock' => TRUE, // Boolean: If set, the User/Group TSconfig option 'option.lockToIP' is enabled.
228 'lockHashKeyWords' => 'useragent', // Keyword list (Strings comma separated). Currently only "useragent"; If set, then the BE user session is locked to the value of HTTP_USER_AGENT. This lowers the risk of session hi-jacking. However in some cases (like during development) you might need to switch the user agent while keeping the session. In this case you can disable that feature (e.g. with a blank string).
229 'cookieDomain' => '', // Same as <a href="#SYS-cookieDomain">$TYPO3_CONF_VARS['SYS']['cookieDomain']</a> but only for BE cookies. If empty, $TYPO3_CONF_VARS['SYS']['cookieDomain'] value will be used.
230 'cookieName' => 'be_typo_user', // String: Set the name for the cookie used for the back-end user session
231 'loginSecurityLevel' => '', // String: Keywords that determines the security level of login to the backend. "normal" means the password from the login form is sent in clear-text, "challenged" means the password is not sent but hashed with some other values, "superchallenged" (default) means the password is first hashed before being hashed with the challenge values again (means the password is stored as a hashed string in the database also), "rsa" uses RSA password encryption (only if the rsaauth extension is installed). DO NOT CHANGE this value manually; without an alternative authentication service it will only prevent logins in TYPO3 since the "superchallenged" method is hardcoded in the default authentication system.
232 'showRefreshLoginPopup' => FALSE, // Boolean: If set, the Ajax relogin will show a real popup window for relogin after the count down. Some auth services need this as they add custom validation to the login form. If it's not set, the Ajax relogin will show an inline relogin window.
233 'adminOnly' => 0, // <p>Integer (-1, 0, 1, 2)</p><dl><dt>-1</dt><dd>total shutdown for maintenance purposes</dd><dt>0</dt><dd>normal operation, everyone can login (default)</dd><dt>1</dt><dd>only admins can login</dd><dt>2</dt><dd>only admins and regular CLI users can login</dd></dl>
234 'disable_exec_function' => FALSE, // Boolean: Don't use exec() function (except for ImageMagick which is disabled by <a href="#GFX-im">[GFX][im]</a>=0). If set, all fileoperations are done by the default PHP-functions. This is nescessary under Windows! On Unix the system commands by exec() can be used, unless this is disabled.
235 'usePHPFileFunctions' => TRUE, // Boolean: If set, all fileoperations are done by the default PHP-functions. Default on Unix is using the system commands by exec().
236 'compressionLevel' => 0, // Determines output compression of BE output. Makes output smaller but slows down the page generation depending on the compression level. Requires a) zlib in your PHP installation and b) special rewrite rules for .css.gzip and .js.gzip (please see _.htacces for an example). Range 1-9, where 1 is least compression and 9 is greatest compression. 'true' as value will set the compression based on the PHP default settings (usually 5). Suggested and most optimal value is 5.
237 'maxFileSize' => '10240', // Integer: If set this is the max filesize in KB's for file operations in the backend. Can be overridden through $TCA per table field separately.
238 'installToolPassword' => '', // String: This is the md5-hashed password for the Install Tool. Set this to '' and access will be totally denied. PLEASE consider to externally password protect the typo3/install/ folder, eg. with a .htaccess file.
239 'pageTree' => array(
240 'preloadLimit' => 50, // Integer: Count of pages that will be preloaded in pagetree. Big amount makes collapsing new branches faster but requires more SQL queries.
241 ),
242 'defaultUserTSconfig' => 'options.enableBookmarks=1
243 options.enableShowPalettes=1
244 options.file_list.enableDisplayBigControlPanel=selectable
245 options.file_list.enableDisplayThumbnails=selectable
246 options.file_list.enableClipBoard=selectable
247 options.pageTree {
248 doktypesToShowInNewPageDragArea = 1,6,4,7,3,254,255,199
249 }
250
251 options.contextMenu.options.leftIcons = 1
252 options.contextMenu {
253 table {
254 virtual_root {
255 disableItems =
256
257 items {
258 100 = ITEM
259 100 {
260 name = history
261 label = LLL:EXT:lang/locallang_misc.xml:CM_history
262 spriteIcon = actions-document-history-open
263 displayCondition = canShowHistory != 0
264 callbackAction = openHistoryPopUp
265 }
266 }
267 }
268
269 pages_root {
270 disableItems =
271
272 items {
273 100 = ITEM
274 100 {
275 name = view
276 label = LLL:EXT:lang/locallang_core.xml:cm.view
277 spriteIcon = actions-document-view
278 displayCondition = canBeViewed != 0
279 callbackAction = viewPage
280 }
281
282 200 = ITEM
283 200 {
284 name = new
285 label = LLL:EXT:lang/locallang_core.xml:cm.new
286 spriteIcon = actions-page-new
287 displayCondition = canCreateNewPages != 0
288 callbackAction = newPageWizard
289 }
290
291 300 = DIVIDER
292
293 400 = ITEM
294 400 {
295 name = history
296 label = LLL:EXT:lang/locallang_misc.xml:CM_history
297 spriteIcon = actions-document-history-open
298 displayCondition = canShowHistory != 0
299 callbackAction = openHistoryPopUp
300 }
301 }
302 }
303
304 pages {
305 disableItems =
306
307 items {
308 100 = ITEM
309 100 {
310 name = view
311 label = LLL:EXT:lang/locallang_core.xml:cm.view
312 spriteIcon = actions-document-view
313 displayCondition = canBeViewed != 0
314 callbackAction = viewPage
315 }
316
317 200 = DIVIDER
318
319 300 = ITEM
320 300 {
321 name = disable
322 label = LLL:EXT:lang/locallang_common.xml:disable
323 spriteIcon = actions-edit-hide
324 displayCondition = getRecord|hidden = 0 && canBeDisabledAndEnabled != 0
325 callbackAction = disablePage
326 }
327
328 400 = ITEM
329 400 {
330 name = enable
331 label = LLL:EXT:lang/locallang_common.xml:enable
332 spriteIcon = actions-edit-unhide
333 displayCondition = getRecord|hidden = 1 && canBeDisabledAndEnabled != 0
334 callbackAction = enablePage
335 }
336
337 500 = ITEM
338 500 {
339 name = edit
340 label = LLL:EXT:lang/locallang_core.xml:cm.edit
341 spriteIcon = actions-page-open
342 displayCondition = canBeEdited != 0
343 callbackAction = editPageProperties
344 }
345
346 600 = ITEM
347 600 {
348 name = info
349 label = LLL:EXT:lang/locallang_core.xml:cm.info
350 spriteIcon = actions-document-info
351 displayCondition = canShowInfo != 0
352 callbackAction = openInfoPopUp
353 }
354
355 700 = ITEM
356 700 {
357 name = history
358 label = LLL:EXT:lang/locallang_misc.xml:CM_history
359 spriteIcon = actions-document-history-open
360 displayCondition = canShowHistory != 0
361 callbackAction = openHistoryPopUp
362 }
363
364 800 = DIVIDER
365
366 900 = SUBMENU
367 900 {
368 label = LLL:EXT:lang/locallang_core.xml:cm.copyPasteActions
369
370 100 = ITEM
371 100 {
372 name = new
373 label = LLL:EXT:lang/locallang_core.xml:cm.new
374 spriteIcon = actions-page-new
375 displayCondition = canCreateNewPages != 0
376 callbackAction = newPageWizard
377 }
378
379 200 = DIVIDER
380
381 300 = ITEM
382 300 {
383 name = cut
384 label = LLL:EXT:lang/locallang_core.xml:cm.cut
385 spriteIcon = actions-edit-cut
386 displayCondition = isInCutMode = 0 && canBeCut != 0 && isMountPoint != 1
387 callbackAction = enableCutMode
388 }
389
390 400 = ITEM
391 400 {
392 name = cut
393 label = LLL:EXT:lang/locallang_core.xml:cm.cut
394 spriteIcon = actions-edit-cut-release
395 displayCondition = isInCutMode = 1 && canBeCut != 0
396 callbackAction = disableCutMode
397 }
398
399 500 = ITEM
400 500 {
401 name = copy
402 label = LLL:EXT:lang/locallang_core.xml:cm.copy
403 spriteIcon = actions-edit-copy
404 displayCondition = isInCopyMode = 0 && canBeCopied != 0
405 callbackAction = enableCopyMode
406 }
407
408 600 = ITEM
409 600 {
410 name = copy
411 label = LLL:EXT:lang/locallang_core.xml:cm.copy
412 spriteIcon = actions-edit-copy-release
413 displayCondition = isInCopyMode = 1 && canBeCopied != 0
414 callbackAction = disableCopyMode
415 }
416
417 700 = ITEM
418 700 {
419 name = pasteInto
420 label = LLL:EXT:lang/locallang_core.xml:cm.pasteinto
421 spriteIcon = actions-document-paste-into
422 displayCondition = getContextInfo|inCopyMode = 1 || getContextInfo|inCutMode = 1 && canBePastedInto != 0
423 callbackAction = pasteIntoNode
424 }
425
426 800 = ITEM
427 800 {
428 name = pasteAfter
429 label = LLL:EXT:lang/locallang_core.xml:cm.pasteafter
430 spriteIcon = actions-document-paste-after
431 displayCondition = getContextInfo|inCopyMode = 1 || getContextInfo|inCutMode = 1 && canBePastedAfter != 0
432 callbackAction = pasteAfterNode
433 }
434
435 900 = DIVIDER
436
437 1000 = ITEM
438 1000 {
439 name = delete
440 label = LLL:EXT:lang/locallang_core.xml:cm.delete
441 spriteIcon = actions-edit-delete
442 displayCondition = canBeRemoved != 0 && isMountPoint != 1
443 callbackAction = removeNode
444 }
445 }
446
447 1000 = SUBMENU
448 1000 {
449 label = LLL:EXT:lang/locallang_core.xml:cm.branchActions
450
451 100 = ITEM
452 100 {
453 name = mountAsTreeroot
454 label = LLL:EXT:lang/locallang_core.xml:cm.tempMountPoint
455 spriteIcon = actions-system-extension-documentation
456 displayCondition = canBeTemporaryMountPoint != 0 && isMountPoint = 0
457 callbackAction = mountAsTreeRoot
458 }
459
460 200 = DIVIDER
461
462 300 = ITEM
463 300 {
464 name = expandBranch
465 label = LLL:EXT:lang/locallang_core.xml:cm.expandBranch
466 spriteIcon = actions-pagetree-expand
467 displayCondition =
468 callbackAction = expandBranch
469 }
470
471 400 = ITEM
472 400 {
473 name = collapseBranch
474 label = LLL:EXT:lang/locallang_core.xml:cm.collapseBranch
475 spriteIcon = actions-pagetree-collapse
476 displayCondition =
477 callbackAction = collapseBranch
478 }
479 }
480 }
481 }
482 }
483 }
484 ', // String (exclude). Enter lines of default backend user/group TSconfig.
485 'defaultPageTSconfig' => 'mod.web_list.enableDisplayBigControlPanel=selectable
486 mod.web_list.enableClipBoard=selectable
487 mod.web_list.enableLocalizationView=selectable
488 mod.wizards.newRecord.pages.show.pageInside=1
489 mod.wizards.newRecord.pages.show.pageAfter=1
490 mod.wizards.newRecord.pages.show.pageSelectPosition=1
491 ', // String (exclude).Enter lines of default Page TSconfig.
492 'defaultPermissions' => array ( // Default permissions set for new pages in t3lib/tce_main.php. Keys are 'show,edit,delete,new,editcontent'. Enter as comma-list
493 // 'user' => '', // default in tce_main is 'show,edit,delete,new,editcontent'. If this is set (uncomment), this value is used instead.
494 // 'group' => '', // default in tce_main is 'show,edit,new,editcontent'. If this is set (uncomment), this value is used instead.
495 // 'everybody' => '' // default in tce_main is ''. If this is set (uncomment), this value is used instead.
496 ),
497 'defaultUC' => array ( // Override default settings for BE-users. See class.t3lib_beuserauth.php, array $uc_default
498 ),
499 // The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else.
500 // The control is done like this: If an extension matches 'allow' then the check returns TRUE. If not and an extension matches 'deny' then the check return FALSE. If no match at all, returns TRUE.
501 // You list extensions comma-separated. If the value is a '*' every extension is matched
502 // If no fileextension, TRUE is returned if 'allow' is '*', FALSE if 'deny' is '*' and TRUE if none of these matches
503 // This configuration below accepts everything in ftpspace and everything in webspace except php3,php4,php5 or php files
504 'fileExtensions' => array (
505 'webspace' => array('allow'=>'', 'deny'=> PHP_EXTENSIONS_DEFAULT),
506 'ftpspace' => array('allow'=>'*', 'deny'=>'') // @todo: remove this option in the future
507 ),
508 'customPermOptions' => array(), // Array with sets of custom permission options. Syntax is; 'key' => array('header' => 'header string, language splitted', 'items' => array('key' => array('label, language splitted', 'icon reference', 'Description text, language splitted'))). Keys cannot contain ":|," characters.
509 'fileDenyPattern' => FILE_DENY_PATTERN_DEFAULT , // A perl-compatible regular expression (without delimiters!) that - if it matches a filename - will deny the file upload/rename or whatever in the webspace. For security reasons, files with multiple extensions have to be denied on an Apache environment with mod_alias, if the filename contains a valid php handler in an arbitary position. Also, ".htaccess" files have to be denied. Matching is done case-insensitive. Default value is stored in constant FILE_DENY_PATTERN_DEFAULT
510 'interfaces' => 'backend', // This determines which interface options is available in the login prompt and in which order (All options: ",backend,frontend")
511 'loginNews' => array(), // In this array you can define news-items for the login screen. To this array, add arrays with assoc keys 'date', 'header', 'content' (HTML content) and for those appropriate value pairs
512 'loginNewsTitle' => '', // Define alternative header message for the LoginNews. If this var is empty, the default header "Important messages:" is displayed.
513 'notificationPrefix' => '[TYPO3 Note]', // String: Used to prefix the subject of mails sent in the taskcenter
514 'accessListRenderMode' => 'checkbox', // Can be "singlebox", "checkbox" or blank. Refers to the "renderMode" for the selector boxes in be-groups configuration.
515 'explicitADmode' => 'explicitDeny', // Sets the general allow/deny mode for selector box values. Value can be either "explicitAllow" or "explicitDeny", nothing else!
516 'TSconfigConditions' => TRUE, // Boolean: When set it is possible to have TypoScript like conditions in BE Page/User/Group TS-Config
517 'niceFlexFormXMLtags' => TRUE, // If set, the flexform XML will be stored with meaningful tags which can be validated with DTD schema. If you rely on custom reading of the XML from pre-4.0 versions you should set this to FALSE if you don't like to change your reader code (internally it is insignificant since t3lib_div::xml2array() doesn't care for the tags if the index-attribute value is set)
518 'flexFormXMLincludeDiffBase' => TRUE, // If set, an additional tag with index "vXX.vDEFbase" is created for translations in flexforms holding the value of the default language when translation was changed. Used to show diff of value. This setting will change whether the system thinks flexform XML looks clean. For example when FALSE XX.vDEFbase fields will be removed in cleaning while accepted if TRUE (of course)
519 'compactFlexFormXML' => 0, // If set, the flexform XML will not contain indentation spaces making XML more compact
520 'flexformForceCDATA' => 0, // Boolean: If set, will add CDATA to Flexform XML. Some versions of libxml have a bug that causes HTML entities to be stripped from any XML content and this setting will avoid the bug by adding CDATA.
521 'explicitConfirmationOfTranslation' => FALSE, // If set, then the diff-data of localized records is not saved automatically when updated but requires that a translator clicks the special finish_translation/save/close button that becomes available.
522 'versionNumberInFilename' => FALSE, // <p>Boolean: If TRUE, included CSS and JS files will have the timestamp embedded in the filename, ie. filename.1269312081.js. This will make browsers and proxies reload the files if they change (thus avoiding caching issues). IMPORTANT: this feature requires extra .htaccess rules to work (please refer to _.htaccess or the _.htaccess file from the dummy package)</p><p>If FALSE the filemtime will be appended as a query-string.</p>
523 'spriteIconGenerator_handler' => '', // String: Used to register own/other spriteGenerating Handler, they have to implement the interface t3lib_spritemanager_SpriteIconGenerator. If set to "t3lib_spritemanager_SpriteBuildingHandler" icons from extensions will automatically merged into sprites.
524 'debug' => FALSE, // Boolean: If set, the loginrefresh is disabled and pageRenderer is set to debug mode. Use this to debug the backend only!
525 'AJAX' => array( // array of key-value pairs for a unified use of AJAX calls in the TYPO3 backend. Keys are the unique ajaxIDs where the value will be resolved to call a method in an object. See ajax.php and the classes/class.typo3ajax.php for more information.
526 'SC_alt_db_navframe::expandCollapse' => 'typo3/alt_db_navframe.php:SC_alt_db_navframe->ajaxExpandCollapse',
527 'SC_alt_file_navframe::expandCollapse' => 'typo3/alt_file_navframe.php:SC_alt_file_navframe->ajaxExpandCollapse',
528 'TYPO3_tcefile::process' => 'typo3/classes/class.typo3_tcefile.php:TYPO3_tcefile->processAjaxRequest',
529 't3lib_TCEforms_inline::createNewRecord' => 't3lib/class.t3lib_tceforms_inline.php:t3lib_TCEforms_inline->processAjaxRequest',
530 't3lib_TCEforms_inline::getRecordDetails' => 't3lib/class.t3lib_tceforms_inline.php:t3lib_TCEforms_inline->processAjaxRequest',
531 't3lib_TCEforms_inline::synchronizeLocalizeRecords' => 't3lib/class.t3lib_tceforms_inline.php:t3lib_TCEforms_inline->processAjaxRequest',
532 't3lib_TCEforms_inline::setExpandedCollapsedState' => 't3lib/class.t3lib_tceforms_inline.php:t3lib_TCEforms_inline->processAjaxRequest',
533 't3lib_TCEforms_suggest::searchRecord' => 't3lib/tceforms/class.t3lib_tceforms_suggest.php:t3lib_TCEforms_suggest->processAjaxRequest',
534 'ShortcutMenu::getGroups' => 'typo3/classes/class.shortcutmenu.php:ShortcutMenu->getAjaxShortcutGroups',
535 'ShortcutMenu::saveShortcut' => 'typo3/classes/class.shortcutmenu.php:ShortcutMenu->setAjaxShortcut',
536 'ShortcutMenu::render' => 'typo3/classes/class.shortcutmenu.php:ShortcutMenu->renderAjax',
537 'ShortcutMenu::delete' => 'typo3/classes/class.shortcutmenu.php:ShortcutMenu->deleteAjaxShortcut',
538 'ShortcutMenu::create' => 'typo3/classes/class.shortcutmenu.php:ShortcutMenu->createAjaxShortcut',
539 'ModuleMenu::saveMenuState' => 'typo3/classes/class.modulemenu.php:ModuleMenu->saveMenuState',
540 'ModuleMenu::getData' => 'typo3/classes/class.modulemenu.php:ModuleMenu->getModuleData',
541 'BackendLogin::login' => 'typo3/classes/class.ajaxlogin.php:AjaxLogin->login',
542 'BackendLogin::logout' => 'typo3/classes/class.ajaxlogin.php:AjaxLogin->logout',
543 'BackendLogin::refreshLogin' => 'typo3/classes/class.ajaxlogin.php:AjaxLogin->refreshLogin',
544 'BackendLogin::isTimedOut' => 'typo3/classes/class.ajaxlogin.php:AjaxLogin->isTimedOut',
545 'BackendLogin::getChallenge' => 'typo3/classes/class.ajaxlogin.php:AjaxLogin->getChallenge',
546 'BackendLogin::refreshTokens' => 'typo3/classes/class.ajaxlogin.php:AjaxLogin->refreshTokens',
547 'ExtDirect::getAPI' => 't3lib/extjs/class.t3lib_extjs_extdirectapi.php:t3lib_extjs_ExtDirectApi->getAPI',
548 'ExtDirect::route' => 't3lib/extjs/class.t3lib_extjs_extdirectrouter.php:t3lib_extjs_ExtDirectRouter->route',
549 ),
550 'XCLASS' => array(), // See 'Inside TYPO3' document for more information.
551 ),
552 'FE' => array( // Configuration for the TypoScript frontend (FE). Nothing here relates to the administration backend!
553 'png_to_gif' => FALSE, // Boolean: Enables conversion back to gif of all png-files generated in the frontend libraries. Notice that this leaves an increased number of temporary files in typo3temp/
554 'tidy' => FALSE, // Boolean: If set, the output html-code will be passed through "tidy" which is a little program you can get from <a href="http://www.w3.org/People/Raggett/tidy/" target="_blank">w3c.org</a>. "Tidy" cleans the HTML-code for nice display!
555 'tidy_option' => 'cached', // options [all, cached, output]. "all" = the content is always passed through "tidy" before it may be stored in cache. "cached" = only if the page is put into the cache, "output" = only the output code just before it's echoed out.
556 'tidy_path' => 'tidy -i --quiet true --tidy-mark true -wrap 0 -raw', // Path with options for tidy. For XHTML output, add " --output-xhtml true"
557 'logfile_dir' => '', // Path where TYPO3 should write webserver-style logfiles to. This path must be write-enabled for the webserver. If this path is outside of PATH_site, you have to allow it using <a href="#BE-lockRootPath">[BE][lockRootPath]</a>
558 'addAllowedPaths' => '', // Additional relative paths (comma-list) to allow TypoScript resources be in. Should be prepended with '/'. If not, then any path where the first part is like this path will match. That is: 'myfolder/ , myarchive' will match eg. 'myfolder/', 'myarchive/', 'myarchive_one/', 'myarchive_2/' ... No check is done to see if this directory actually exists in the root of the site. Paths are matched by simply checking if these strings equals the first part of any TypoScript resource filepath. (See class template, function init() in t3lib/class.t3lib_tsparser.php)
559 'allowedTempPaths' => '', // Additional paths allowed for temporary images. Used with imgResource. Eg. 'alttypo3temp/,another_temp_dir/';
560 'debug' => FALSE, // Boolean: If set, some debug HTML-comments may be output somewhere. Can also be set by TypoScript.
561 'simulateStaticDocuments' => FALSE, // Boolean: This is the default value for simulateStaticDocuments (configurable with TypoScript which overrides this, if the TypoScript value is present), since TYPO3 4.3 you also need to install the system extension "simulatestatic" to get this to work.
562 'noPHPscriptInclude' => FALSE, // Boolean: If set, PHP-scripts are not included by TypoScript configurations, unless they reside in 'media/scripts/'-folder. This is a security option to ensure that users with template-access do not terrorize
563 'strictFormmail' => TRUE, // Boolean: If set, the internal "formmail" feature in TYPO3 will send mail ONLY to recipients which has been encoded by the system itself. This protects against spammers misusing the formmailer.
564 'secureFormmail' => TRUE, // Boolean: If set, the internal "formmail" feature in TYPO3 will send mail ONLY to the recipients that are defined in the form CE record. This protects against spammers misusing the formmailer.
565 'formmailMaxAttachmentSize' => 250000, // Integer: Sets the maximum allowed size (in bytes) of attachments for the internal "formmail" feature.
566 'compressionLevel' => 0, // Integer: Determines output compression of FE output. Makes output smaller but slows down the page generation depending on the compression level. Requires zlib in your PHP installation. Range 1-9, where 1 is least compression and 9 is greatest compression. 'true' as value will set the compression based on the PHP default settings (usually 5). Suggested and most optimal value is 5.
567 'pageNotFound_handling' => '', // <p>How TYPO3 should handle requests for non-existing/accessible pages.</p> <dl><dt>empty (default)</dt><dd>The next visible page upwards in the page tree is shown.</dd> <dt>'true' or '1'</dt><dd>An error message is shown.</dd><dt>String</dt><dd>Static HTML file to show (reads content and outputs with correct headers), e.g. 'notfound.html' or 'http://www.example.org/errors/notfound.html'.</dd> <dt>Prefix "REDIRECT:"</dt><dd> If prefixed with "REDIRECT:" it will redirect to the URL/script after the prefix.</dd><dt>Prefix "READFILE:"</dt><dd>If prefixed with "READFILE" then it will expect the remaining string to be a HTML file which will be read and outputted directly after having the marker "###CURRENT_URL###" substituted with REQUEST_URI and ###REASON### with reason text, for example: "READFILE:fileadmin/notfound.html".</dd> <dt>Prefix "USER_FUNCTION:"</dt><dd> If prefixed with "USER_FUNCTION:" a user function is called, e.g. "USER_FUNCTION:fileadmin/class.user_notfound.php:user_notFound->pageNotFound" where the file must contain a class "user_notFound" with a method "pageNotFound" inside with two parameters $param and $ref.</dd></dl>
568 'pageNotFound_handling_statheader' => 'HTTP/1.0 404 Not Found', // If 'pageNotFound_handling' is enabled, this string will always be sent as header before the actual handling.
569 'pageNotFoundOnCHashError' => FALSE, // Boolean: If TRUE, a page not found call is made when cHash evaluation error occurs. By default they will just disable caching but still display page output.
570 'pageUnavailable_handling' => '', // <p>How TYPO3 should handle requests when pages are unavailable due to system problems.</p><dl><dt>empty (default)</dt><dd>An error message is shown.</dd><dt>String</dt><dd>HTML file or URL to show (reads content and outputs with correct headers), e.g. 'unavailable.html' or 'http://www.example.org/errors/unavailable.html'.</dd><dt>Prefix "REDIRECT:"</dt><dd>If prefixed "REDIRECT:" it will redirect to the URL/script after the prefix.</dd><dt>Prefix "READFILE:"</dt><dd>If prefixed with "READFILE:" then it will expect the remaining string to be a HTML file which will be read and outputted directly after having the marker "###CURRENT_URL###" substituted with REQUEST_URI and ###REASON### with reason text, for example: "READFILE:fileadmin/unavailable.html".</dd><dt>Prefix "USER_FUNCTION:"</dt><dd>If prefixed "USER_FUNCTION:" then it will call a user function, eg. "USER_FUNCTION:fileadmin/class.user_unavailable.php:user_unavailable->pageUnavailable" where the file must contain a class "user_unavailable" with a method "pageUnavailable" inside with two parameters $param and $ref. If the client matches <a href="#SYS-devIPmask">[SYS][devIPmask]</a>, this setting is ignored and the page is shown as normal.</dd></dl>
571 'pageUnavailable_handling_statheader' => 'HTTP/1.0 503 Service Temporarily Unavailable', // If 'pageUnavailable_handling' is enabled, this string will always be sent as header before the actual handling.
572 'pageUnavailable_force' => FALSE, // Boolean: If TRUE, pageUnavailable_handling is used for every frontend page. If the client matches <a href="#SYS-devIPmask">[SYS][devIPmask]</a>, the page is shown as normal. This is useful during temporary site maintenance.
573 'addRootLineFields' => '', // Comma-list of fields from the 'pages'-table. These fields are added to the select query for fields in the rootline.
574 'checkFeUserPid' => TRUE, // Boolean: If set, the pid of fe_user logins must be sent in the form as the field 'pid' and then the user must be located in the pid. If you unset this, you should change the fe_users.username eval-flag 'uniqueInPid' to 'unique' in $TCA. This will do: $TCA['fe_users']['columns']['username']['config']['eval']= 'nospace,lower,required,unique';
575 'lockIP' => 2, // Integer (0-4). If >0, fe_users are locked to (a part of) their REMOTE_ADDR IP for their session. Enhances security but may throw off users that may change IP during their session (in which case you can lower it to 2 or 3). The integer indicates how many parts of the IP address to include in the check. Reducing to 1-3 means that only first, second or third part of the IP address is used. 4 is the FULL IP address and recommended. 0 (zero) disables checking of course.
576 'loginSecurityLevel' => '', // See description for <a href="#BE-loginSecurityLevel">[BE][loginSecurityLevel]</a>. Default state for frontend is "normal". Alternative authentication services can implement higher levels if preferred. For example, "rsa" level uses RSA password encryption (only if the rsaauth extension is installed)
577 'lifetime' => 0, // Integer: positive. If >0, the cookie of FE users will have a lifetime of the number of seconds this value indicates. Otherwise it will be a session cookie (deleted when browser is shut down). Setting this value to 604800 will result in automatic login of FE users during a whole week, 86400 will keep the FE users logged in for a day.
578 'sessionDataLifetime' => 86400, // Integer: positive. If >0, the session data will timeout and be removed after the number of seconds given (86400 seconds represents 24 hours).
579 'permalogin' => 0, // <p>Integer:</p><dl><dt>-1</dt><dd>Permanent login for FE users disabled.</dd><dt>0</dt><dd>By default permalogin is disabled for FE users but can be enabled by a form control in the login form.</dd><dt>1</dt><dd>Permanent login is by default enabled but can be disabled by a form control in the login form.</dd><dt>2</dt><dd>Permanent login is forced to be enabled.// In any case, permanent login is only possible if <a href="#FE-lifetime">[FE][lifetime]</a> lifetime is > 0.</dd></dl>
580 'maxSessionDataSize' => 10000, // Integer: Setting the maximum size (bytes) of frontend session data stored in the table fe_session_data. Set to zero (0) means no limit, but this is not recommended since it also disables a check that session data is stored only if a confirmed cookie is set.
581 'cookieDomain' => '', // Same as <a href="#SYS-cookieDomain">$TYPO3_CONF_VARS['SYS']['cookieDomain']</a> but only for FE cookies. If empty, $TYPO3_CONF_VARS['SYS']['cookieDomain'] value will be used.
582 'cookieName' => 'fe_typo_user', // String: Set the name for the cookie used for the front-end user session
583 'lockHashKeyWords' => 'useragent', // Keyword list (Strings commaseparated). Currently only "useragent"; If set, then the FE user session is locked to the value of HTTP_USER_AGENT. This lowers the risk of session hi-jacking. However some cases (like payment gateways) might have to use the session cookie and in this case you will have to disable that feature (eg. with a blank string).
584 'defaultUserTSconfig' => '', // String (textarea). Enter lines of default frontend user/group TSconfig.
585 'defaultTypoScript_constants' => '', // String (textarea). Enter lines of default TypoScript, constants-field.
586 'defaultTypoScript_constants.' => array(), // Lines of TS to include after a static template with the uid = the index in the array (Constants)
587 'defaultTypoScript_setup' => '', // Enter lines of default TypoScript, setup-field.
588 'defaultTypoScript_setup.' => array(), // As above, but for Setup
589 'dontSetCookie' => FALSE, // Boolean: If set, the no cookies is attempted to be set in the front end. Of course no userlogins are possible either...
590 'additionalAbsRefPrefixDirectories' => '', // Enter additional directories to be prepended with absRefPrefix. Directories must be comma-separated. TYPO3 already prepends the following directories: media/, typo3conf/ext/, fileadmin/
591 'IPmaskMountGroups' => array( // This allows you to specify an array of IPmaskLists/fe_group-uids. If the REMOTE_ADDR of the user matches an IPmaskList, then the given fe_group is add to the gr_list. So this is an automatic mounting of a user-group. But no fe_user is logged in though! This feature is implemented for the default frontend user authentication and might not be implemented for alternative authentication services.
592 // array('IPmaskList_1','fe_group uid'), array('IPmaskList_2','fe_group uid')
593 ),
594 'get_url_id_token' => '#get_URL_ID_TOK#', // This is the token, which is substituted in the output code in order to keep a GET-based session going. Normally the GET-session-id is 5 chars ('&amp;ftu=') + hash_length (norm. 10)
595 'content_doktypes' => '1,2,5,7', // List of pages.doktype values which can contain content (so shortcut pages and external url pages are excluded, but all pages below doktype 199 should be included. doktype=6 is not either (backend users only...). For doktypes going into menus see class.tslib_menu.php, line 494 (search for 'doktype'))
596 'enable_mount_pids' => TRUE, // Boolean: If set to "1", the mount_pid feature allowing 'symlinks' in the page tree (for frontend operation) is allowed.
597 'pageOverlayFields' => 'uid,title,subtitle,nav_title,media,keywords,description,abstract,author,author_email,url,urltype,shortcut,shortcut_mode', // List of fields from the table "pages_language_overlay" which should be overlaid on page records. See t3lib_page::getPageOverlay()
598 'hidePagesIfNotTranslatedByDefault' => FALSE, // Boolean: If TRUE, pages that has no translation will be hidden by default. Basically this will inverse the effect of the page localization setting "Hide page if no translation for current language exists" to "Show page even if no translation exists"
599 'eID_include' => array(), // Array of key/value pairs where key is "tx_[ext]_[optional suffix]" and value is relative filename of class to include. Key is used as "?eID=" for index_ts.php to include the code file which renders the page from that point. (Useful for functionality that requires a low initialization footprint, eg. frontend ajax applications)
600 'disableNoCacheParameter' => FALSE, // Boolean: If set, the no_cache request parameter will become ineffective. This is currently still an experimental feature and will require a website only with plugins that don't use this parameter. However, using "&amp;no_cache=1" should be avoided anyway because there are better ways to disable caching for a certain part of the website (see COA_INT/USER_INT documentation in TSref).
601 'cHashExcludedParameters' => 'L', // String: The the given parameters will be ignored in the cHash calculation. Example: L,tx_search_pi1[query]
602 'cHashOnlyForParameters' => '', // String: Only the given parameters will be evaluated in the cHash calculation. Example: tx_news_pi1[uid]
603 'cHashRequiredParameters' => '', // Optional: Configure Parameters that require a cHash. If no cHash is given but one of the parameters are set, then TYPO3 triggers the configured cHash Error behaviour
604 'cHashExcludedParametersIfEmpty' => '', // Optional: Configure Parameters that are only relevant for the chash if there's an associated value available. And asterisk "*" can be used to skip all empty parameters.
605 'workspacePreviewLogoutTemplate' => '', // If set, points to an HTML file relative to the TYPO3_site root which will be read and outputted as template for this message. Example: fileadmin/templates/template_workspace_preview_logout.html. Inside you can put the marker %1$s to insert the URL to go back to. Use this in &lt;a href="%1$s"&gt;Go back...&lt;/a&gt; links
606 'versionNumberInFilename' => 'querystring', // String: embed,querystring,''. Allows to automatically include a version number (timestamp of the file) to referred CSS and JS filenames on the rendered page. This will make browsers and proxies reload the files if they change (thus avoiding caching issues). Set to 'embed' will have the timestamp embedded in the filename, ie. filename.1269312081.js. IMPORTANT: 'embed' requires extra .htaccess rules to work (please refer to _.htaccess or the _.htaccess file from the dummy package)<p>Set to 'querystring' (default setting) to append the version number as a query parameter (doesn't require mod_rewrite). Set to '' will turn this functionality off (behaves like TYPO3 &lt; v4.4).</p>
607 'XCLASS' => array(), // See 'Inside TYPO3' document for more information.
608 ),
609 'MAIL' => array( // Mail configurations to tune how t3lib_mail classes will send their mails.
610 'transport' => 'mail', // <p>String:</p><dl><dt>mail</dt><dd>Sends messages by delegating to PHP's internal mail() function. No further settings required. This is the most unreliable option. If you are serious about sending mails, consider using "smtp" or "sendmail".</dd><dt>smtp</dt><dd>Sends messages over the (standardized) Simple Message Transfer Protocol. It can deal with encryption and authentication. Most flexible option, requires a mail server and configurations in transport_smtp_* settings below. Works the same on Windows, Unix and MacOS.</dd><dt>sendmail</dt><dd>Sends messages by communicating with a locally installed MTA - such as sendmail. See setting transport_sendmail_command bellow.<dd><dt>mbox</dt><dd>This doesn't send any mail out, but instead will write every outgoing mail to a file adhering to the RFC 4155 mbox format, which is a simple text file where the mails are concatenated. Useful for debugging the mail sending process and on development machines which cannot send mails to the outside. Configure the file to write to in the 'transport_mbox_file' setting below</dd><dt>&lt;classname&gt;</dt><dd>Custom class which implements Swift_Transport. The constructor receives all settings from the MAIL section to make it possible to add custom settings.</dd></dl>
611 'transport_smtp_server' => 'localhost:25', // String: <em>only with transport=smtp</em>: &lt;server:port> of mailserver to connect to. &lt;port> defaults to "25".
612 'transport_smtp_encrypt' => '', // String: <em>only with transport=smtp</em>: Connect to the server using the specified transport protocol. Requires openssl library. Usually available: <em>ssl, sslv2, sslv3, tls</em>. Check <a href="http://www.php.net/stream_get_transports" target="_blank">stream_get_transports()</a>.
613 'transport_smtp_username' => '', // String: <em>only with transport=smtp</em>: If your SMTP server requires authentication, enter your username here.
614 'transport_smtp_password' => '', // String: <em>only with transport=smtp</em>: If your SMTP server requires authentication, enter your password here.
615 'transport_sendmail_command' => '/usr/sbin/sendmail -bs', // String: <em>only with transport=sendmail</em>: The command to call to send a mail locally. The default works on most modern UNIX based mail server (sendmail, postfix, exim)
616 'transport_mbox_file' => '', // String: <em>only with transport=mbox</em>: The file where to write the mails into. This file will be conforming the mbox format described in RFC 4155. It is a simple text file with a concatenation of all mails. Path must be absolute.
617 'defaultMailFromAddress' => '', // String: This default email address is used when no other "from" address is set for a TYPO3-generated email. You can specify an email address only (ex. info@example.org).
618 'defaultMailFromName' => '', // String: This default name is used when no other "from" name is set for a TYPO3-generated email.
619 ),
620 'HTTP' => array( // HTTP configuration to tune how TYPO3 behaves on HTTP request. Have a look at <a href="http://pear.php.net/manual/en/package.http.http-request2.config.php>HTTP_Request2 Manual</a> for some background information on those settings.
621 'adapter' => 'socket', // String: Default adapter - either "socket" or "curl".
622 'connect_timeout' => 10, // Integer: Default timeout for connection. Exception will be thrown if connecting to remote host takes more than this number of seconds.
623 'timeout' => 0, // Integer: Default timeout for whole request. Exception will be thrown if sending the request takes more than this number of seconds. Should be greater than connection timeout (see above) or "0" to not set a limit. Defaults to "0".
624 'protocol_version' => '1.1', // String: Default HTTP protocol version. Use either "1.0" or "1.1".
625 'follow_redirects' => FALSE, // Boolean: If set, redirects are followed by default. If number of tries are exceeded, an exception is thrown.
626 'max_redirects' => 5, // Integer: Maximum number of tries before an exception is thrown.
627 'strict_redirects' => FALSE, // Boolean: Whether to keep request method on redirects via status 301 and 302 (TRUE, needed for compatibility with <a href="http://www.faqs.org/rfcs/rfc2616">RFC 2616</a>) or switch to GET (FALSE, needed for compatibility with most browsers). There are some <a href="http://pear.php.net/manual/en/package.http.http-request2.adapters.php#package.http.http-request2.adapters.curl">issues with cURL adapter</a>. Defaults to FALSE.
628 'proxy_host' => '', // String: Default proxy server as "http://proxy.example.org" (You must not set the port here. Set the port below.)
629 'proxy_port' => '', // Integer: Default proxy server port.
630 'proxy_user' => '', // String: Default user name.
631 'proxy_password' => '', // String: Default password.
632 'proxy_auth_scheme' => 'basic', // String: Default authentication method. Can either be "basic" or "digest". Defaults to "basic".
633 'ssl_verify_peer' => FALSE, // Boolean: Whether to verify peer's SSL certificate. Turned off by default, due to <a href="http://pear.php.net/manual/en/package.http.http-request2.adapters.php#package.http.http-request2.adapters.socket" target="_blank">issues with Socket adapter</a>. You are advised to use the <em>curl</em> adapter and enable this option!
634 'ssl_verify_host' => TRUE, // Boolean: Whether to check that Common Name in SSL certificate matches host name. There are some <a href="http://pear.php.net/manual/en/package.http.http-request2.adapters.php#package.http.http-request2.adapters.socket" target="_blank">issues with Socket Adapter</a>.
635 'ssl_cafile' => '', // String: Certificate Authority file to verify the peer with (use when ssl_verify_peer is TRUE).
636 'ssl_capath' => '', // String: Directory holding multiple Certificate Authority files.
637 'ssl_local_cert' => '', // String: Name of a file containing local certificate.
638 'ssl_passphrase' => '', // String: Passphrase with which local certificate was encoded.
639 'userAgent' => '', // String: Default user agent. If empty, this will be "TYPO3/4.x", while x is the current branch version. This overrides the constant <em>TYPO3_user_agent</em>.
640 ),
641 'MODS' => array( // Backend Module Configuration (obsolete, make extension instead)
642 ),
643 'USER' => array( // Here you may define your own setup-vars for use in your include-scripts. (obsolete, make extension instead)
644 ),
645 'SC_OPTIONS' => array( // Here you can more or less freely define additional configuration for scripts in TYPO3. Of course the features supported depends on the script. See documentation "Inside TYPO3" for examples. Keys in the array are the relative path of a script (for output scripts it should be the "script ID" as found in a comment in the HTML header ) and values can then be anything that scripts wants to define for itself. The key "GLOBAL" is reserved.
646 'GLOBAL' => array(
647 'softRefParser' => array(
648 'substitute' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
649 'notify' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
650 'images' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
651 'typolink' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
652 'typolink_tag' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
653 'TSconfig' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
654 'TStemplate' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
655 'ext_fileref' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
656 'email' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
657 'url' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
658 ),
659 'softRefParser_GL' => array(), // Global soft reference parsers
660 'cliKeys' => array( // Arrays of EXT:file and module name pairs. See EXT:lowlevel/ext_localconf.php for example.
661 )
662 ),
663 't3lib/class.t3lib_tsfebeuserauth.php' => array(
664 'frontendEditingController' => array(
665 'default' => 't3lib/class.t3lib_frontendedit.php:t3lib_frontendedit'
666 )
667 ),
668 ),
669 'EXTCONF' => array( // Here you may add manually set configuration options for your extensions. Eg. $TYPO3_CONF_VARS['EXTCONF']['my_extension_key']['my_option'] = 'my_value';
670 'cms' => array(
671 'db_layout' => array(
672 'addTables' => array(
673 'fe_users' => array(
674 0 => array(
675 'MENU' => '',
676 'fList' => 'username,usergroup,name,email,telephone,address,zip,city',
677 'icon' => TRUE,
678 )
679 )
680 )
681 )
682 ),
683 ),
684 'SVCONF' => array( // Here you may add manually set configuration options for services.
685 // Eg. ...['service_type']['setup']['my_option'] = 'my_value'; Setup options how to handle the service (call it or not and how when)
686 // Eg. ...['service_type']['default']['my_option'] = 'my_value';
687 // Eg. ...['service_type']['service_key']['my_option'] = 'my_value';
688 )
689 );
690
691 if (TYPO3_MODE === 'BE') {
692 t3lib_extMgm::registerExtDirectComponent(
693 'TYPO3.Components.PageTree.DataProvider',
694 PATH_t3lib . 'tree/pagetree/extdirect/class.t3lib_tree_pagetree_extdirect_tree.php:t3lib_tree_pagetree_extdirect_Tree',
695 'web',
696 'user,group'
697 );
698
699 t3lib_extMgm::registerExtDirectComponent(
700 'TYPO3.Components.PageTree.Commands',
701 PATH_t3lib . 'tree/pagetree/extdirect/class.t3lib_tree_pagetree_extdirect_tree.php:t3lib_tree_pagetree_extdirect_Commands',
702 'web',
703 'user,group'
704 );
705
706 t3lib_extMgm::registerExtDirectComponent(
707 'TYPO3.Components.PageTree.ContextMenuDataProvider',
708 PATH_t3lib . 'contextmenu/pagetree/extdirect/class.t3lib_contextmenu_pagetree_extdirect_contextmenu.php:t3lib_contextmenu_pagetree_extdirect_ContextMenu',
709 'web',
710 'user,group'
711 );
712
713 t3lib_extMgm::registerExtDirectComponent(
714 'TYPO3.LiveSearchActions.ExtDirect',
715 PATH_t3lib . 'extjs/dataprovider/class.extdirect_dataprovider_backendlivesearch.php:extDirect_DataProvider_BackendLiveSearch',
716 'web_list',
717 'user,group'
718 );
719
720 t3lib_extMgm::registerExtDirectComponent(
721 'TYPO3.BackendUserSettings.ExtDirect',
722 PATH_t3lib . 'extjs/dataprovider/class.extdirect_dataprovider_beusersettings.php:extDirect_DataProvider_BackendUserSettings'
723 );
724
725 t3lib_extMgm::registerExtDirectComponent(
726 'TYPO3.CSH.ExtDirect',
727 PATH_t3lib . 'extjs/dataprovider/class.extdirect_dataprovider_contexthelp.php:extDirect_DataProvider_ContextHelp'
728 );
729
730 t3lib_extMgm::registerExtDirectComponent(
731 'TYPO3.ExtDirectStateProvider.ExtDirect',
732 PATH_t3lib . 'extjs/dataprovider/class.extdirect_dataprovider_state.php:extDirect_DataProvider_State'
733 );
734 }
735
736 $T3_VAR = array(); // Initialize.
737
738 // TYPO3 version
739 $TYPO_VERSION = '6.0-dev'; // @deprecated: Will be removed in TYPO3 4.8. Use the constants defined below
740 define('TYPO3_version', $TYPO_VERSION);
741 define('TYPO3_branch', '6.0');
742 define('TYPO3_copyright_year', '1998-2012');
743
744 // Handle $GLOBALS['TYPO3_CONF_VARS']['HTTP']['userAgent']. We can not set the default above
745 // because TYPO3_version is not yet defined.
746 if (empty($GLOBALS['TYPO3_CONF_VARS']['HTTP']['userAgent'])) {
747 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['userAgent'] = 'TYPO3/' . TYPO3_version;
748 }
749 define('TYPO3_user_agent', 'User-Agent: '. $GLOBALS['TYPO3_CONF_VARS']['HTTP']['userAgent']);
750
751 // Database-variables are cleared!
752 $typo_db = ''; // The database name
753 $typo_db_username = ''; // The database username
754 $typo_db_password = ''; // The database password
755 $typo_db_host = ''; // The database host
756 $typo_db_tables_script = ''; // The filename of the tables.php script in typo3conf/ folder IF the default t3lib/stddb/tables.php should NOT be used for some reason. It's recommended to use the default and modify it through the extTableDef-script, see below.
757 $typo_db_extTableDef_script = ''; // The filename of an additional script in typo3conf/-folder which is included after tables.php. Code in this script should modify the tables.php-configuration only, and this provides a good way to extend the standard-distributed tables.php file.
758
759 // TYPO3 links
760 define('TYPO3_URL_GENERAL', 'http://typo3.org/');
761 define('TYPO3_URL_ORG', 'http://typo3.org/');
762 define('TYPO3_URL_LICENSE', 'http://typo3.org/license');
763 define('TYPO3_URL_EXCEPTION', 'http://typo3.org/go/exception/v4/');
764 define('TYPO3_URL_MAILINGLISTS', 'http://lists.typo3.org/cgi-bin/mailman/listinfo');
765 define('TYPO3_URL_DOCUMENTATION', 'http://typo3.org/documentation/');
766 define('TYPO3_URL_DOCUMENTATION_TSREF', 'http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/');
767 define('TYPO3_URL_DOCUMENTATION_TSCONFIG', 'http://typo3.org/documentation/document-library/references/doc_core_tsconfig/current/view/');
768 define('TYPO3_URL_CONSULTANCY', 'http://typo3.com/Consultancies.1248.0.html');
769 define('TYPO3_URL_CONTRIBUTE', 'http://typo3.org/community/participate/');
770 define('TYPO3_URL_SECURITY', 'http://typo3.org/teams/security/');
771 define('TYPO3_URL_DOWNLOAD', 'http://typo3.org/download/packages/');
772 define('TYPO3_URL_SYSTEMREQUIREMENTS', 'http://typo3.org/1275.0.html');
773 define('TYPO3_URL_DONATE', 'http://typo3.org/donate/');
774
775 // Include localconf.php. Use this file to configure TYPO3 for your needs and database
776 if (!@is_file(PATH_typo3conf . 'localconf.php')) {
777 throw new Exception('localconf.php is not found!');
778 }
779 require(PATH_typo3conf.'localconf.php');
780
781
782 function initializeCachingFramework() {
783 require_once (PATH_t3lib . 'class.t3lib_cache.php');
784 require_once (PATH_t3lib . 'cache/class.t3lib_cache_exception.php');
785 require_once (PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_nosuchcache.php');
786 require_once (PATH_t3lib . 'cache/exception/class.t3lib_cache_exception_invaliddata.php');
787 require_once (PATH_t3lib . 'interfaces/interface.t3lib_singleton.php');
788 require_once (PATH_t3lib . 'cache/class.t3lib_cache_factory.php');
789 require_once (PATH_t3lib . 'cache/class.t3lib_cache_manager.php');
790 require_once (PATH_t3lib . 'cache/frontend/interfaces/interface.t3lib_cache_frontend_frontend.php');
791 require_once (PATH_t3lib . 'cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php');
792 require_once (PATH_t3lib . 'cache/frontend/class.t3lib_cache_frontend_stringfrontend.php');
793 require_once (PATH_t3lib . 'cache/frontend/class.t3lib_cache_frontend_phpfrontend.php');
794 require_once (PATH_t3lib . 'cache/backend/interfaces/interface.t3lib_cache_backend_backend.php');
795 require_once (PATH_t3lib . 'cache/backend/class.t3lib_cache_backend_abstractbackend.php');
796 require_once (PATH_t3lib . 'cache/backend/interfaces/interface.t3lib_cache_backend_phpcapablebackend.php');
797 require_once (PATH_t3lib . 'cache/backend/class.t3lib_cache_backend_filebackend.php');
798 require_once (PATH_t3lib . 'cache/backend/class.t3lib_cache_backend_nullbackend.php');
799 t3lib_cache::initializeCachingFramework();
800 }
801
802 initializeCachingFramework();
803
804
805 // *********************
806 // Autoloader
807 // *********************
808 require_once(PATH_t3lib . 'class.t3lib_autoloader.php');
809 t3lib_autoloader::registerAutoloader();
810
811
812 /**
813 * Checking for UTF-8 in the settings since TYPO3 4.5
814 *
815 * Since TYPO3 4.5, everything other than UTF-8 is deprecated.
816 *
817 * [BE][forceCharset] is set to the charset that TYPO3 is using
818 * [SYS][setDBinit] is used to set the DB connection
819 * and both settings need to be adjusted for UTF-8 in order to work properly
820 */
821 // Check if [BE][forceCharset] has been set in localconf.php
822 if (isset($TYPO3_CONF_VARS['BE']['forceCharset'])) {
823 // die() unless we're already on UTF-8
824 if ($TYPO3_CONF_VARS['BE']['forceCharset'] != 'utf-8' && $TYPO3_CONF_VARS['BE']['forceCharset'] && TYPO3_enterInstallScript !== '1') {
825 die('This installation was just upgraded to a new TYPO3 version. Since TYPO3 4.7, utf-8 is always enforced.<br />' .
826 'The configuration option $TYPO3_CONF_VARS[BE][forceCharset] was marked as deprecated in TYPO3 4.5 and is now ignored.<br />' .
827 'You have configured the value to something different, which is not supported anymore.<br />' .
828 'Please proceed to the Update Wizard in the TYPO3 Install Tool to update your configuration.'
829 );
830 } else {
831 unset($TYPO3_CONF_VARS['BE']['forceCharset']);
832 }
833 }
834
835 if (isset($TYPO3_CONF_VARS['SYS']['setDBinit']) &&
836 $TYPO3_CONF_VARS['SYS']['setDBinit'] !== '-1' &&
837 preg_match('/SET NAMES utf8/', $TYPO3_CONF_VARS['SYS']['setDBinit']) === FALSE &&
838 TYPO3_enterInstallScript !== '1'
839 ) {
840 // Only accept "SET NAMES utf8" for this setting, otherwise die with a nice error
841 die('This TYPO3 installation is using the $TYPO3_CONF_VARS[\'SYS\'][\'setDBinit\'] property with the following value:' . chr(10) .
842 $TYPO3_CONF_VARS['SYS']['setDBinit'] . chr(10) . chr(10) .
843 'It looks like UTF-8 is not used for this connection.' . chr(10) . chr(10) .
844 'Everything other than UTF-8 is unsupported since TYPO3 4.7.' . chr(10) .
845 'The DB, its connection and TYPO3 should be migrated to UTF-8 therefore. Please check your setup.');
846 } else {
847 $TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;';
848 }
849
850
851
852 // If this value is not -1, then the setting has been modified in localconf.php
853 if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['useCachingFramework'] !== -1) {
854 // Deprecation log since 4.6, can be removed in 4.8. Checks if obsolete useCachingFramework is set
855 t3lib_div::deprecationLog('Setting $GLOBALS[\'TYPO3_CONF_VARS\'][\'SYS\'][\'useCachingFramework\'] is obsolete since TYPO3 4.6 and should be removed from localconf.php.');
856 }
857
858 if (isset($GLOBALS['TYPO3_CONF_VARS']['FE']['userFuncClassPrefix'])) {
859 if(is_string($GLOBALS['TYPO3_CONF_VARS']['FE']['userFuncClassPrefix'])) {
860 if(is_null($GLOBALS['TYPO3_CONF_VARS']['SYS']['additionalAllowedClassPrefixes'])) {
861 $GLOBALS['TYPO3_CONF_VARS']['SYS']['additionalAllowedClassPrefixes'] = $GLOBALS['TYPO3_CONF_VARS']['FE']['userFuncClassPrefix'];
862 } elseif (is_string($GLOBALS['TYPO3_CONF_VARS']['SYS']['additionalAllowedClassPrefixes'])) {
863 $GLOBALS['TYPO3_CONF_VARS']['SYS']['additionalAllowedClassPrefixes'] .= ',' . $GLOBALS['TYPO3_CONF_VARS']['FE']['userFuncClassPrefix'];
864 }
865 }
866 // Deprecation log since 4.6, can be removed in 4.8
867 t3lib_div::deprecationLog('$GLOBALS[\'TYPO3_CONF_VARS\'][\'FE\'][\'userFuncClassPrefix\'] is deprecated, use $GLOBALS[\'TYPO3_CONF_VARS\'][\'SYS\'][\'additionalAllowedClassPrefixes\'] instead');
868 }
869
870 // Force enabled caching framework
871 // @deprecated, constant can be removed in 4.8
872 define('TYPO3_UseCachingFramework', TRUE);
873 // @deprecated, can be removed in 4.8
874 $GLOBALS['TYPO3_CONF_VARS']['SYS']['useCachingFramework'] = TRUE;
875
876
877 /**
878 * Parse old curl options and set new http ones instead
879 *
880 * @deprecated Deprecated since 4.6 - will be removed in 4.8.
881 */
882 if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer'])) {
883 $proxyParts = explode(':', $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer'], 2);
884 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_host'] = $proxyParts[0];
885 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_port'] = $proxyParts[1];
886 /* TODO: uncomment after refactoring getUrl()
887 t3lib_div::deprecationLog(
888 'This TYPO3 installation is using the $TYPO3_CONF_VARS[\'SYS\'][\'curlProxyServer\'] property with the following value: ' .
889 $TYPO3_CONF_VARS['SYS']['curlProxyServer'] . LF . 'Please make sure to set $TYPO3_CONF_VARS[\'HTTP\'][\'proxy_host\']' .
890 ' and $TYPO3_CONF_VARS[\'HTTP\'][\'proxy_port\'] instead.' . LF . 'Remove this line from your localconf.php.'
891 );*/
892 }
893 if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass'])) {
894 $userPassParts = explode(':', $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass'], 2);
895 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_user'] = $userPassParts[0];
896 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_password'] = $userPassParts[1];
897 /* TODO: uncomment after refactoring getUrl()
898 t3lib_div::deprecationLog(
899 'This TYPO3 installation is using the $TYPO3_CONF_VARS[\'SYS\'][\'curlProxyUserPass\'] property with the following value: ' .
900 $TYPO3_CONF_VARS['SYS']['curlProxyUserPass'] . LF . 'Please make sure to set $TYPO3_CONF_VARS[\'HTTP\'][\'proxy_user\']' .
901 ' and $TYPO3_CONF_VARS[\'HTTP\'][\'proxy_password\'] instead.' . LF . 'Remove this line from your localconf.php.'
902 );*/
903 }
904
905 /**
906 * Set cacheHash options
907 */
908 $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash'] = array(
909 'cachedParametersWhiteList' => t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['cHashOnlyForParameters'], TRUE),
910 'excludedParameters' => t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParameters'], TRUE),
911 'requireCacheHashPresenceParameters' => t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['cHashRequiredParameters'], TRUE),
912 );
913 if (trim($GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParametersIfEmpty']) === '*') {
914 $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludeAllEmptyParameters'] = TRUE;
915 } else {
916 $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParametersIfEmpty'] = t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['cHashExcludedParametersIfEmpty'], TRUE);
917 }
918
919
920 // ['HTTP']['proxy_auth_scheme'] can only be 'digest' or 'basic'
921 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_auth_scheme'] === 'digest' ?
922 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_auth_scheme'] = 'digest' :
923 $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_auth_scheme'] = 'basic';
924
925
926 $timeZone = $GLOBALS['TYPO3_CONF_VARS']['SYS']['phpTimeZone'];
927 if (empty($timeZone)) {
928 // time zone from the server environment (TZ env or OS query)
929 $defaultTimeZone = @date_default_timezone_get();
930 if ($defaultTimeZone !== '') {
931 $timeZone = $defaultTimeZone;
932 } else {
933 $timeZone = 'UTC';
934 }
935 }
936 // sets the default to avoid E_WARNINGs under PHP 5.3
937 date_default_timezone_set($timeZone);
938
939 // Defining the database setup as constants
940 define('TYPO3_db', $typo_db);
941 define('TYPO3_db_username', $typo_db_username);
942 define('TYPO3_db_password', $typo_db_password);
943 define('TYPO3_db_host', $typo_db_host);
944 define('TYPO3_tables_script', $typo_db_tables_script);
945 define('TYPO3_extTableDef_script', $typo_db_extTableDef_script);
946
947 // Initialize the locales handled by TYPO3
948 t3lib_l10n_Locales::initialize();
949
950 // Unsetting the configured values. Use of these are deprecated.
951 unset($typo_db);
952 unset($typo_db_username);
953 unset($typo_db_password);
954 unset($typo_db_host);
955 unset($typo_db_tables_script);
956 unset($typo_db_extTableDef_script);
957
958 // Based on the configuration of the image processing some options may be forced:
959 if (!$GLOBALS['TYPO3_CONF_VARS']['GFX']['image_processing']) {
960 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im']=0;
961 $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib']=0;
962 }
963 if (!$GLOBALS['TYPO3_CONF_VARS']['GFX']['im']) {
964 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path']='';
965 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path_lzw']='';
966 $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']='gif,jpg,jpeg,png';
967 $GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails'] = 0;
968 }
969 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']) {
970 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask'] = 1;
971 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_no_effects'] = 1;
972 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_mask_temp_ext_gif'] = 1;
973
974 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']==='gm') {
975 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask'] = 0;
976 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_imvMaskState'] = 0;
977 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_no_effects'] = 1;
978 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_v5effects'] = -1;
979 }
980 }
981 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_imvMaskState']) {
982 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask']=$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask']?0:1;
983 }
984
985
986 // Convert type of "pageNotFound_handling" setting in case it was written as a string (e.g. if edited in Install Tool)
987 // TODO: Once the Install Tool handles such data types correctly, this workaround should be removed again...
988 if (!strcasecmp($TYPO3_CONF_VARS['FE']['pageNotFound_handling'],'TRUE')) {
989 $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = TRUE;
990 }
991
992
993 // simple debug function which prints output immediately
994 function xdebug($var = '', $debugTitle = 'xdebug') {
995 // If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
996 if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) return;
997 t3lib_utility_Debug::debug($var, $debugTitle);
998 }
999 // Debug function which calls $GLOBALS['error'] error handler if available
1000 function debug($variable='', $name='*variable*', $line='*line*', $file='*file*', $recursiveDepth=3, $debugLevel=E_DEBUG) {
1001 // If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
1002 if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) return;
1003
1004 if(is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'],'debug'))) {
1005 $GLOBALS['error']->debug($variable, $name, $line, $file, $recursiveDepth, $debugLevel);
1006 } else {
1007 $title = ($name === '*variable*') ? '' : $name;
1008 $group = ($line === '*line*') ? NULL : $line;
1009 t3lib_utility_Debug::debug($variable, $title, $group);
1010 }
1011 }
1012 function debugBegin() {
1013 if(is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'],'debugBegin'))) {
1014 $GLOBALS['error']->debugBegin();
1015 }
1016 }
1017 function debugEnd() {
1018 if(is_object($GLOBALS['error']) && @is_callable(array($GLOBALS['error'],'debugEnd'))) {
1019 $GLOBALS['error']->debugEnd();
1020 }
1021 }
1022
1023
1024 // Init services array:
1025 $T3_SERVICES = array();
1026
1027 // Error & exception handling
1028 $TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionHandler'] = $TYPO3_CONF_VARS['SYS']['productionExceptionHandler'];
1029 $TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionalErrors'] = $TYPO3_CONF_VARS['SYS']['exceptionalErrors'];
1030
1031 // Mail sending via Swift Mailer
1032 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/utility/class.t3lib_utility_mail.php']['substituteMailDelivery'][] = 't3lib_mail_SwiftMailerAdapter';
1033
1034 // Turn error logging on/off.
1035 if (($displayErrors = intval($TYPO3_CONF_VARS['SYS']['displayErrors'])) != '-1') {
1036 if ($displayErrors == 2) { // Special value "2" enables this feature only if $TYPO3_CONF_VARS[SYS][devIPmask] matches
1037 if (t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) {
1038 $displayErrors = 1;
1039 } else {
1040 $displayErrors = 0;
1041 }
1042 }
1043 if ($displayErrors == 0) {
1044 $TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionalErrors'] = 0;
1045 }
1046 if ($displayErrors == 1) {
1047 $TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionHandler'] = $TYPO3_CONF_VARS['SYS']['debugExceptionHandler'];
1048 define('TYPO3_ERRORHANDLER_MODE','debug');
1049 }
1050
1051 @ini_set('display_errors', $displayErrors);
1052 } elseif (t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) {
1053 // with displayErrors = -1 (default), turn on debugging if devIPmask matches:
1054 $TYPO3_CONF_VARS['SC_OPTIONS']['errors']['exceptionHandler'] = $TYPO3_CONF_VARS['SYS']['debugExceptionHandler'];
1055 }
1056
1057
1058
1059 // Set PHP memory limit depending on value of $TYPO3_CONF_VARS["SYS"]["setMemoryLimit"]
1060 if(intval($TYPO3_CONF_VARS["SYS"]["setMemoryLimit"])>16) {
1061 @ini_set('memory_limit',intval($TYPO3_CONF_VARS["SYS"]["setMemoryLimit"]).'m');
1062 }
1063
1064
1065 // setting the request type so devs exactly know what type of request it is
1066 define('TYPO3_REQUESTTYPE_FE', 1);
1067 define('TYPO3_REQUESTTYPE_BE', 2);
1068 define('TYPO3_REQUESTTYPE_CLI', 4);
1069 define('TYPO3_REQUESTTYPE_AJAX', 8);
1070 define('TYPO3_REQUESTTYPE_INSTALL', 16);
1071 define('TYPO3_REQUESTTYPE',
1072 (TYPO3_MODE == 'FE' ? TYPO3_REQUESTTYPE_FE : 0) |
1073 (TYPO3_MODE == 'BE' ? TYPO3_REQUESTTYPE_BE : 0) |
1074 ((defined('TYPO3_cliMode') && TYPO3_cliMode) ? TYPO3_REQUESTTYPE_CLI : 0) |
1075 ((defined('TYPO3_enterInstallScript') && TYPO3_enterInstallScript) ? TYPO3_REQUESTTYPE_INSTALL : 0) |
1076 ($TYPO3_AJAX ? TYPO3_REQUESTTYPE_AJAX : 0)
1077 );
1078
1079
1080 // Load extensions:
1081 $TYPO3_LOADED_EXT = t3lib_extMgm::typo3_loadExtensions();
1082 if ($TYPO3_LOADED_EXT['_CACHEFILE']) {
1083 require(PATH_typo3conf.$TYPO3_LOADED_EXT['_CACHEFILE'].'_ext_localconf.php');
1084 } else {
1085 $temp_TYPO3_LOADED_EXT = $TYPO3_LOADED_EXT;
1086 foreach ($temp_TYPO3_LOADED_EXT as $_EXTKEY => $temp_lEDat) {
1087 if (is_array($temp_lEDat) && $temp_lEDat['ext_localconf.php']) {
1088 $_EXTCONF = $TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY];
1089 require($temp_lEDat['ext_localconf.php']);
1090 }
1091 }
1092 }
1093
1094 // Extensions may register new caches, so we set the
1095 // global cache array to the manager again at this point
1096 $GLOBALS['typo3CacheManager']->setCacheConfigurations($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']);
1097
1098 require_once(t3lib_extMgm::extPath('lang') . 'lang.php');
1099
1100 // Deprecation log since 4.6, can be removed in 4.8. Checks if obsolete pageCacheToExternalFiles is set
1101 if (isset($GLOBALS['TYPO3_CONF_VARS']['FE']['pageCacheToExternalFiles'])) {
1102 t3lib_div::deprecationLog('Setting $GLOBALS[\'TYPO3_CONF_VARS\'][\'FE\'][\'pageCacheToExternalFiles\'] is deprecated since TYPO3 4.6 and should be removed.');
1103 }
1104
1105 // Define "TYPO3_DLOG" constant
1106 define('TYPO3_DLOG', $GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG']);
1107
1108 define('TYPO3_ERROR_DLOG', $GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_errorDLOG']);
1109 define('TYPO3_EXCEPTION_DLOG', $GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_exceptionDLOG']);
1110
1111 // Unsetting other reserved global variables:
1112 // Those which are/can be set in "stddb/tables.php" files:
1113 unset($PAGES_TYPES);
1114 unset($TCA);
1115 unset($TBE_MODULES);
1116 unset($TBE_STYLES);
1117 unset($FILEICONS);
1118
1119 // Those set in init.php:
1120 unset($WEBMOUNTS);
1121 unset($FILEMOUNTS);
1122 unset($BE_USER);
1123
1124 // Those set otherwise:
1125 unset($TBE_MODULES_EXT);
1126 unset($TCA_DESCR);
1127 unset($LOCAL_LANG);
1128 unset($TYPO3_AJAX);
1129
1130
1131 // Setting some global vars:
1132 $EXEC_TIME = time(); // $EXEC_TIME is set so that the rest of the script has a common value for the script execution time
1133 $SIM_EXEC_TIME = $EXEC_TIME; // $SIM_EXEC_TIME is set to $EXEC_TIME but can be altered later in the script if we want to simulate another execution-time when selecting from eg. a database
1134 $ACCESS_TIME = $EXEC_TIME - ($EXEC_TIME % 60); // $ACCESS_TIME is a common time in minutes for access control
1135 $SIM_ACCESS_TIME = $ACCESS_TIME; // if $SIM_EXEC_TIME is changed this value must be set accordingly
1136
1137 ?>