Documentation TYPO3 par Ameos

config_default.php

00001 <?php
00017 if (!defined ('PATH_typo3conf'))        die ('The configuration path was not properly defined!');
00018 
00019 $TYPO3_CONF_VARS = Array(
00020         'GFX' => array(         // Configuration of the image processing features in TYPO3. 'IM' and 'GD' are short for ImageMagick and  GD library respectively.
00021                 'image_processing' => 1,                                // Boolean. Enables image processing features. Disabling this means NO image processing with either GD or IM!
00022                 'thumbnails' => 1,                                              // Boolean. Enables the use of thumbnails in the backend interface. Thumbnails are generated by IM/partly GD in the file typo3/thumbs.php
00023                 '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)
00024                 'noIconProc' => 1,                                              // Boolean. If true, icons are never processed with overlays for hidden, starttime, endtime etc. They must be available pre-processed. If this is disabled, do so only if you have full image processing capabilities on the server for TYPO3.
00025                 'gif_compress' => 1,                                    // 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.
00026                 'imagefile_ext' => 'gif,jpg,jpeg,tif,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!
00027 
00028                 'gdlib' => 1,                                                   // Boolean. Enables the use of GD.
00029                 'gdlib_png' => 0,                                               // Boolean. Enables the use of GD, with PNG only. This means that all items normally generated as gif-files will be png-files instead!
00030                 'gdlib_2' => 0,                                                 // String/Boolean. Set this if you are using the new GDlib 2.0.1+. If you don't set this flag and still use GDlib2, you might encounter strange behaviours like black images etc. This feature might take effect only if ImageMagick is installed and working as well! You can also use the value "no_imagecopyresized_fix" - in that case it will NOT try to fix a known issue where "imagecopyresized" does not work correctly.
00031 
00032                 'im' => 1,                                                              // Boolean. Enables the use of IM.
00033                 'im_path' => '/usr/X11R6/bin/',                 // Path to the IM tools 'convert', 'combine', 'identify'. Version 4.2.9 of ImageMagick is highly recommended due to features and speed!
00034                 '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/'.
00035 
00036                 'im_version_5' => '',                                   // String. Set this if you're using ImageMagick/GraphicsMagick but not IM 4.x. Setting this value will automatically configure some settings for use with the specified program version. Allowed values are: "im4", "im5", "im6" and "gm" (uses GraphicsMagick instead of ImageMagick).
00037                 'im_negate_mask' => 0,                                  // 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!
00038                 'im_imvMaskState' => 0,                                 // 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...
00039                 'im_no_effects' => 0,                                   // Boolean. This is necessary if using ImageMagick 5+. Approved version for using effects is version 4.2.9. 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!)
00040                 'im_v5effects' => 0,                                    // Integer -1,0,1. 0=disabled. -1=Do not sharpen images by default. 1=All; blur and sharpening is allowed in ImageMagick again and the 'im_no_effects' flag is cancelled. Blurring and sharpening has new syntaxes though. See class.t3lib_stdgraphic.php for details.
00041                 'im_mask_temp_ext_gif' => 0,                    // 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...
00042                 '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.
00043                 'im_noScaleUp' => 0,                                    // Boolean. If set, images are not being scaled up if told so (in t3lib/stdgraphics.php)
00044                 'im_combine_filename' => 'combine',             // String. Latest ImageMagick versions has changed the name of combine to composite. Configure here if needed.
00045                 'im_noFramePrepended' => 0,                             // 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.
00046                 'jpg_quality' => 70,                                    // Integer. Default JPEG generation quality
00047                 'enable_typo3temp_db_tracking' => 0,    // 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.
00048                 'TTFLocaleConv' => '',                                  // String. Enter locale conversion string used to recode input to TrueType functions. Eg. 'cp1250..UTF-8'. Works ONLY if 'recode' is enabled in PHP. Deprecated from ver. 3.6.0 of TYPO3. Set up [BE][forceCharset] as strings are automatically converted from databsae charset to UTF-8.
00049                 'TTFdpi' => '72',                                               // 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.
00050                 'png_truecolor' => 0,                                           // 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)
00051         ),
00052         'SYS' => Array(                 // System related concerning both frontend and backend.
00053                 '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.
00054                 '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.
00055                 '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.
00056                 'cookieDomain' => '',                                   // When setting the value to ".example.com" (replace example.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)$/
00057                 'doNotCheckReferer' => 0,                               // 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.
00058                 'recursiveDomainSearch' => 0,                   // 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.
00059                 '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.
00060                 'sqlDebug' => 0,                                        // Boolean. If set, then database queries that fails are outputted in browser. For development.
00061                 'enable_DLOG' => FALSE,                                 // Whether the developer log is enabled. See constant "TYPO3_DLOG"
00062                 'ddmmyy' => 'd-m-y',                                    // Format of Date-Month-Year - see PHP-function date()
00063                 'hhmm' => 'H:i',                                                // Format of Hours-Minutes - see PHP-function date()
00064                 'USdateFormat' => 0,                            // Boolean. If true, dates entered in the TCEforms of the backend will be formatted mm-dd-yyyy
00065                 '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).
00066                 '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.
00067                 'loginCopyrightShowVersion' => 0,               // Boolean: If set, the current TYPO3 version is shown.
00068                 'curlUse' => 0,                                                 // Boolean: If set, try to use Curl to fetch external URLs
00069                 'curlProxyServer' => '',                                // String: Proxyserver as http://proxy:port/.
00070                 'curlProxyTunnel' => 0,                                 // Boolean: If set, use a tunneled connection through the proxy (usefull for websense etc.).
00071                 'curlProxyUserPass' => '',                              // String: Proxyserver authentication user:pass.
00072                 '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'
00073                 'textfile_ext' => 'txt,html,htm,css,inc,php,php3,tmpl,js,sql',  // Text file extensions. Those that can be edited. php,php3 cannot be edited in webspace if they are disallowed! Notice:
00074                 'contentTable' => '',                                   // This is the page-content table (Normally 'tt_content')
00075                 '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.
00076                 'binPath' => '',                                                // String: List of absolute paths where external programs should be searched for. Eg. '/usr/local/webbin/,/home/xyz/bin/'. (ImageMagick path have to be configured separately)
00077                 '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: 'perl=/usr/bin/perl,unzip=/usr/local/bin/unzip'
00078                 't3lib_cs_convMethod' => '',                    // String (values: "iconv", "recode", "mbstring", default is homemade PHP-code). Defines which of these PHP-features to use for various Charset conversing functions in t3lib_cs. Will speed up charset conversion radically.
00079                 't3lib_cs_utils' => '',                                 // String (values: "iconv" - PHP 5.0 only!, "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.
00080                 'no_pconnect' => 0,                                             // Boolean: If true, "connect" is used instead of "pconnect" when connecting to the database!
00081                 '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 http://wiki.typo3.org/index.php/UTF-8_support for more information)
00082                 'setDBinit' => '',                                      // String (textarea): Commands to send to database right after connecting, separated by newline. Ignored by the DBAL extension except for the 'native' type!
00083                 '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.
00084                 'forceReturnPath' => 0,                                 // Boolean: Force return path to be applied in mail() calls. If this is set, all calls to mail() done by t3lib_htmlmail will be called with '-f<return_path> as the 5th parameter. This will make the return path correct on almost all Unix systems. There is a known problem with Postfix below version 2: Mails are not sent if this option is set and Postfix is used. On Windows platforms, the return path is set via a call to ini_set. This has no effect if safe_mode in PHP is on.
00085                 'displayErrors' => -1,                                  // Integer, -1,0,1,2. 0=Do not display any PHP error messages. 1=Display error messages. 2=Display only if client matches TYPO3_CONF_VARS[SYS][devIPmask]. -1=Default setting. With this option, you can override the PHP setting "display_errors". It is suggested that you set this to "0" and enable the "error_log" option in php.ini instead.
00086                 '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.
00087                 'systemLog' => '',                                      // String, semi-colon separated list: Defines one or more logging methods. Possible methods: file,<abs-path-to-file>[,<level>];mail,<to>[/<from>][,<level>];syslog,<facility>,[,<level>];error_log[,,<level>]. "file" logs to a file, "mail" sends the log entries via mail, "syslog" uses the operating system's log, "error_log" uses the PHP error log. The level is the individual logging level (see [SYS][systemLogLevel]. Facility may be one of LOCAL0..LOCAL7, USER (on Windows USER is the only valid type).
00088                 'systemLogLevel' => 0,                                  // Integer: Only messages with same or higher severity are logged; 0 is info, 1 is notice, 2 is warning, 3 is error, 4 is fatal error.
00089                 '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.
00090                 'UTF8filesystem' => 0,                                  // Boolean: If true and [BE][forceCharset] is set to utf-8, 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.
00091         ),
00092         'EXT' => Array (        // Options related to the Extension Management
00093                 'noEdit' => 1,                                                  // Boolean: If set, the Extension Manager does NOT allow extension files to be edited! (Otherwise both local and global extensions can be edited.)
00094                 'allowGlobalInstall' => 0,                              // Boolean: If set, global extensions in typo3/ext/ are allowed to be installed, updated and deleted etc.
00095                 'allowLocalInstall' => 1,                               // Boolean: If set, local extensions in typo3conf/ext/ are allowed to be installed, updated and deleted etc.
00096                 'allowSystemInstall' => 0,                              // If set, you can install extensions in the sysext/ dir. Use this to upgrade the 'cms' and 'lang' extensions.
00097                 '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.
00098                 '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.
00099 
00100                 'requiredExt' => 'cms,version,lang,sv',                 // String list: List of extensions which are REQUIRED and cannot be unloaded by the Extension Manager!
00101                 'excludeForPackaging' => '(CVS|\..*|.*~|.*\.bak)',              // String list: 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!
00102                 'extCache' => 1,                                                // Int. 0,1,2,3: 0: ext-scripts (ext_localconf.php and ext_tables.php) are NOT cached, but included every time. 1: scripts cached to typo3conf/temp_CACHED_[sitePathHash]* (saves some milliseconds even with PHP accelerators), 2: scripts cached and prefix includes a hash based on the 'extList' string, 3: scripts cached to typo3conf/temp_CACHED_* (no hash included at all...)
00103                 'extList' => 'tsconfig_help,context_help,extra_page_cm_options,impexp,belog,aboutmodules,setup,install',                                                // String list: List of extensions which are enabled for this install. Use the Extension Manager (EM) to manage this!
00104                 'extConf' => array(                                             // Config-options for extensions, stored as serialized arrays by extension-keys. Handled automatically by the EM.
00105 //                      '--key--' => array()
00106                 ),
00107         ),
00108         'BE' => Array(          // Backend Configuration.
00109                 'unzip_path' => '',                                             // Path to "unzip".
00110                 'diff_path' => 'diff',                                  // Path to "diff". For Windows this program can be downloaded here: http://unxutils.sourceforge.net/
00111                 'fileadminDir' => 'fileadmin/',                 // Path to the fileadmin dir. This is relative to PATH_site. (Automatically mounted for admin-users if set)
00112                 'RTEenabled' => 1,                                              // 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.
00113                 'RTE_imageStorageDir' => 'uploads/',    // Default storage directory for Rich Text Editor files
00114                 '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.
00115                 'staticFileEditPath' => 'fileadmin/static/',    // Path to directory with static files for editing (see table sys_staticfiles_edit). Relative to PATH_site.
00116                 '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/'.
00117                 '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!
00118                 '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!
00119                 '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.
00120                 'fileCreateMask' => '0644',                             // File mode mask for Unix file systems (when files are uploaded/created).
00121                 'folderCreateMask' => '0755',                   // As above, but for folders.
00122                 '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.
00123                 'warning_email_addr' => '',                             // Email-address that will receive a warning if there has been failed logins 4 times within an hour (all users).
00124                 'warning_mode' => '',                                   // Bit 1: If set, warning_email_addr gets a mail everytime a user logs in. Bit 2: If set, a mail is sent if an ADMIN user logs in! Other bits reserved for future options.
00125                 'lockIP' => 4,                                                  // Integer (0-4). Session IP locking for backend users. See [FE][lockIP] for details. Default is 4 (which is locking the FULL IP address to session).
00126                 'sessionTimeout' => 3600,                               // Integer, seconds. Session time out for backend users. Default is 3600 seconds = 1 hour.
00127                 '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())
00128                 'lockBeUserToDBmounts' => 1,                    // 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.
00129                 'lockSSL' => 0,                                                 // Int. 0,1,2,3: If set (1,2,3), the backend can only be operated from an ssl-encrypted connection (https). Set to 2 you will be redirected to the https admin-url supposed to be the http-url, but with https scheme instead. If set to 3, only the login is forced to SSL, then the user switches back to non-SSL-mode
00130                 'enabledBeUserIPLock' => 1,                             // Boolean. If set, the User/Group TSconfig option 'option.lockToIP' is enabled.
00131                 '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). 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.
00132                 'adminOnly' => 0,                                               // Int. If set (>=1), the only "admin" users can log in to the backend. If "<=-1" then the backend is totally shut down! For maintenance purposes.
00133                 'disable_exec_function' => 0,                   // Boolean. Don't use exec() function (except for ImageMagick which is disabled by [GFX][im]=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.
00134                 'usePHPFileFunctions' => 1,                             // Boolean. If set, all fileoperations are done by the default PHP-functions. Default on Unix is using the system commands by exec(). You need to set this flag under safe_mode.
00135                 'compressionLevel' => 0,                                // Determines output compression of BE output. Makes output smaller but slows down the page generation depending on the compression level. Requires zlib in your PHP4 installation. Range 1-9, where 1 is least compression (approx. 50%) and 9 is greatest compression (approx 33%). 'true' as value will set the compression based on the system load (works with Linux, FreeBSD). Suggested value is 3. For more info, see class in t3lib/class.gzip_encode.php written by Sandy McArthur, Jr. <Leknor@Leknor.com>
00136                 '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.
00137                 'forceCharset' => '',                                   // String. Normally the charset of the backend users language selection is used. If you set this value to a charset found in t3lib/csconvtbl/ (or "utf-8") the backend (and database) will ALWAYS use this charset. Always use a lowercase value.
00138                 '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.
00139                 'trackBeUser' => 0,                                             // Boolean. If set, every invokation of a backend script is logged in sys_trackbeuser. This is used to get a view of the backend users behaviour. Mostly for debugging, support and user interaction analysis. Requires 'beuser_tracking' extension.
00140                 'defaultUserTSconfig' => 'options.shortcutFrame=1',                     // String. Enter lines of default backend user/group TSconfig.
00141                 'defaultPageTSconfig' => '',                    // Enter lines of default Page TSconfig.
00142                 'defaultPermissions' => array (                 // Default permissions set for new pages in t3lib/tce_main.php. Keys are 'show,edit,delete,new,editcontent'. Enter as comma-list
00143 //                      'user' => '',                           READFILE:                       // default in tce_main is 'show,edit,delete,new,editcontent'. If this is set (uncomment), this value is used instead.
00144 //                      'group' => '',                                                  // default in tce_main is 'show,edit,new,editcontent'. If this is set (uncomment), this value is used instead.
00145 //                      'everybody' => ''                                               // default in tce_main is ''. If this is set (uncomment), this value is used instead.
00146                 ),
00147                 'newPagesVersioningType' => -1,                 // Integer. Default versioning type for new pages create as versions. -1 means "element", 0 means "page", 1 means "branch"
00148                 'defaultUC' => array (                                  // Override default settings for BE-users. See class.t3lib_beuserauth.php, array $uc_default
00149                 ),
00150                         // 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.
00151                         // 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.
00152                         // You list extensions comma-separated. If the value is a '*' every extension is matched
00153                         // If no fileextension, true is returned if 'allow' is '*', false if 'deny' is '*' and true if none of these matches
00154                         // This configuration below accepts everything in ftpspace and everything in webspace except php3 or php files
00155                 'fileExtensions' => array (
00156                         'webspace' => array('allow'=>'', 'deny'=>'php,php3,php4,php5'),
00157                         'ftpspace' => array('allow'=>'*', 'deny'=>'')
00158                 ),
00159                 '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.
00160                 'fileDenyPattern' => '\.php$|\.php.$',  // A regular expression that - if it matches a filename - will deny the file upload/rename or whatever in the webspace. Matching with eregi() (case-insensitive).
00161                 'interfaces' => 'backend',                                      // This determines which interface options is available in the login prompt and in which order (All options: ",backend,frontend")
00162                 'useOnContextMenuHandler' => 1,                 // Boolean. If set, the context menus (clickmenus) in the backend are activated on right-click - although this is not a XHTML attribute!
00163                 'loginLabels' => 'Username|Password|Interface|Log In|Log Out|Backend,Front End|Administration Login on ###SITENAME###|(Note: Cookies and JavaScript must be enabled!)|Important Messages:|Your login attempt did not succeed. Make sure to spell your username and password correctly, including upper/lowercase characters.',          // Language labels of the login prompt.
00164                 '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
00165                 'XLLfile' => Array(),                                   // For extension/overriding of the arrays in 'locallang' files in the backend. See 'Inside TYPO3' for more information.
00166                 'notificationPrefix' => '[TYPO3 Note]',
00167                 'accessListRenderMode' => 'singlebox',  // Can be "singlebox", "checkbox" or blank. Refers to the "renderMode" for the selector boxes in be-groups configuration.
00168                 'explicitADmode' => 'explicitDeny',     // Sets the general allow/deny mode for selector box values. Value can be either "explicitAllow" or "explicitDeny", nothing else!
00169                 'XCLASS' => Array(),                                    // See 'Inside TYPO3' document for more information.
00170                 '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)
00171                 'compactFlexFormXML' => 0,                              // If set, the flexform XML will not contain indentation spaces making XML more compact
00172         ),
00173         'FE' => Array(                  // Configuration for the TypoScript frontend (FE). Nothing here relates to the administration backend!
00174                 'png_to_gif' => 0,                                              // 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/
00175                 'tidy' => 0,                                                    // Boolean. If set, the output html-code will be passed through 'tidy' which is a little program you can get from http://www.w3.org/People/Raggett/tidy/. 'Tidy' cleans the HTML-code for nice display!
00176                 '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.
00177                 'tidy_path' => 'tidy -i --quiet true --tidy-mark true -wrap 0 -raw',            // Path with options for tidy. For XHTML output, add " --output-xhtml true"
00178                 '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 [BE][lockRootPath]
00179                 'publish_dir' => '',                                    // Path where TYPO3 should write staticly published documents. This path must be write-enabled for the webserver. Remember slash AFTER! Eg: 'publish/' or '/www/htdocs/publish/'. See admPanel option 'publish'
00180                 '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)
00181                 'allowedTempPaths' => '',                               // Additional paths allowed for temporary images. Used with imgResource. Eg. 'alttypo3temp/,another_temp_dir/';
00182                 'debug' => 0,                                                   // Boolean. If set, some debug HTML-comments may be output somewhere. Can also be set by TypoScript.
00183                 'simulateStaticDocuments' => 0,                 // Boolean. This is the default value for simulateStaticDocuments (configurable with TypoScript which overrides this, if the TypoScript value is present)
00184                 'noPHPscriptInclude' => 0,                              // 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
00185                 '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.
00186                 '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.
00187                 'compressionLevel' => 0,                                // Determines output compression of FE output. Makes output smaller but slows down the page generation depending on the compression level. Requires zlib in your PHP4 installation. Range 1-9, where 1 is least compression (approx. 50%) and 9 is greatest compression (approx 33%). 'true' as value will set the compression based on the system load (works with Linux, FreeBSD). Suggested value is 3. For more info, see class in t3lib/class.gzip_encode.php written by Sandy McArthur, Jr. <Leknor@Leknor.com>
00188                 'compressionDebugInfo' => 0,                    // Boolean. If set, then in the end of the pages, the sizes of the compressed and non-compressed document is output. This should be used ONLY as a test, because the content is compressed twice in order to output this statistics!
00189                 'pageNotFound_handling' => '',                  // How TYPO3 should handle requests for non-existing/accessible pages. false (default): The 'nearest' page is shown. TRUE or '1': An TYPO3 error box is displayed. Strings: page to show (reads content and outputs with correct headers), eg. 'notfound.html' or 'http://www.domain.org/errors/notfound.html'. If prefixed "REDIRECT:" it will redirect to the URL/script after the prefix (original behaviour). 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". Another option is the prefix "USER_FUNCTION:" which will call a user function, eg. "USER_FUNCTION:typo3conf/pageNotFoundHandling.php:user_pageNotFound->pageNotFound" where the file must contain a class "user_pageNotFound" with a method "pageNotFound" inside with two parameters, $param and $ref
00190                 '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.
00191                 'pageNotFoundOnCHashError' => 0,                // 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.
00192                 'userFuncClassPrefix' => 'user_',               // This prefix must be the first part of any function or class name called from TypoScript, for instance in the stdWrap function.
00193                 'addRootLineFields' => '',                              // Comma-list of fields from the 'pages'-table. These fields are added to the select query for fields in the rootline.
00194                 'checkFeUserPid' => 1,                                  // 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';
00195                 '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.
00196                 'loginSecurityLevel' => '',                             // See description for TYPO3_CONF_VARS[BE][loginSecurityLevel]. Default state for frontend is "normal". Alternative authentication services can implement higher levels if preferred.
00197                 'lifetime' => 0,                                                // Integer, positive. If >0, the cookie of FE users will NOT be a session cookie (deleted when browser is shut down) but rather a cookie with a lifetime of the number of seconds this value indicates. Setting this value to 3600*24*7 will result in automatic login of FE users during a whole week.
00198                 'permalogin' => 2,                                              // Integer. -1: Permanent login for FE users disabled. 0: By default permalogin is disabled for FE users but can be enabled by a form control in the login form. 1: Permanent login is by default enabled but can be disabled by a form control in the login form. // 2: Permanent login is foced to be enabled.  // In any case, permanent login is only possible if TYPO3_CONF_VARS[FE][lifetime] lifetime is > 0.
00199                 '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.
00200                 '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).
00201                 'defaultUserTSconfig' => '',                    // Enter lines of default frontend user/group TSconfig.
00202                 'defaultTypoScript_constants' => '',    // Enter lines of default TypoScript, constants-field.
00203                 'defaultTypoScript_constants.' => Array(),      // Lines of TS to include after a static template with the uid = the index in the array (Constants)
00204                 'defaultTypoScript_setup' => '',                // Enter lines of default TypoScript, setup-field.
00205                 'defaultTypoScript_setup.' => Array(),          // As above, but for Setup
00206                 'defaultTypoScript_editorcfg' => '',            // Enter lines of default TypoScript, editorcfg-field (Backend Editor Configuration)
00207                 'defaultTypoScript_editorcfg.' => Array(),              // As above, but for Backend Editor Configuration
00208                 'dontSetCookie' => 0,                                   // If set, the no cookies is attempted to be set in the front end. Of course no userlogins are possible either...
00209                 '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.
00210                         // array('IPmaskList_1','fe_group uid'), array('IPmaskList_2','fe_group uid')
00211                 ),
00212                 '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 ('&ftu=') + hash_length (norm. 10)
00213                 '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'))
00214                 'enable_mount_pids' => 1,                                       // If set to "1", the mount_pid feature allowing 'symlinks' in the page tree (for frontend operation) is allowed.
00215                 'pageOverlayFields' => 'uid,title,subtitle,nav_title,media,keywords,description,abstract,author,author_email',                          // List of fields from the table "pages_language_overlay" which should be overlaid on page records. See t3lib_page::getPageOverlay()
00216                 'hidePagesIfNotTranslatedByDefault' => FALSE,   // 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"
00217                 '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)
00218                 'XCLASS' => Array(),                                    // See 'Inside TYPO3' document for more information.
00219                 'pageCacheToExternalFiles' => FALSE             // If set, page cache entries will be stored in typo3temp/cache_pages/ab/ instead of the database. Still, "cache_pages" will be filled in database but the "HTML" field will be empty. When the cache is flushed the files in cache_pages/ab/ will not be flush - you will have to garbage clean manually once in a while.
00220         ),
00221         'MODS' => Array(                // Backend Module Configuration (obsolete, make extension instead)
00222         ),
00223         'USER' => Array(                // Here you may define your own setup-vars for use in your include-scripts. (obsolete, make extension instead)
00224         ),
00225         '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.
00226                 'GLOBAL' => array(
00227                         'softRefParser' => array(
00228                                 'substitute' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00229                                 'notify' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00230                                 'images' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00231                                 'typolink' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00232                                 'typolink_tag' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00233                                 'TSconfig' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00234                                 'TStemplate' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00235                                 'ext_fileref' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00236                                 'email' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00237                                 'url' => 't3lib/class.t3lib_softrefproc.php:&t3lib_softrefproc',
00238                         ),
00239                         'softRefParser_GL' => array(),  // Global soft reference parsers
00240                         'cliKeys' => array(     // Arrays of EXT:file and module name pairs. See EXT:lowlevel/ext_localconf.php for example.
00241                         ),
00242                         'topApps' => array()    // See t3lib_extMgm::addTopApp()
00243                 ),
00244         ),
00245         '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';
00246 //              '--key--' => array()
00247         ),
00248         'SVCONF' => Array (             // Here you may add manually set configuration options for services.
00249 //              Eg.  ...['service_type']['setup']['my_option'] = 'my_value'; Setup options how to handle the service (call it or not and how when)
00250 //              Eg.  ...['service_type']['default']['my_option'] = 'my_value';
00251 //              Eg.  ...['service_type']['service_key']['my_option'] = 'my_value';
00252         )
00253 );
00254 $T3_VAR = array();      // Initialize.
00255 
00256         // TYPO3 version
00257 $TYPO_VERSION = '4.1';  // deprecated: use the constants defined below
00258 define('TYPO3_version', $TYPO_VERSION);
00259 define('TYPO3_branch', '4.1');
00260 define('TYPO3_copyright_year', '1998-2007');
00261 
00262 // Database-variables are cleared!
00263 $typo_db = '';                                  // The database name
00264 $typo_db_username = '';                 // The database username
00265 $typo_db_password = '';                 // The database password
00266 $typo_db_host = '';                             // The database host
00267 $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.
00268 $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.
00269 
00270         // Include localconf.php. Use this file to configure TYPO3 for your needs and database
00271 if (!@is_file(PATH_typo3conf.'localconf.php'))  die('localconf.php is not found!');
00272 require(PATH_typo3conf.'localconf.php');
00273 
00274         // Defining the database setup as constants
00275 define('TYPO3_db', $typo_db);
00276 define('TYPO3_db_username', $typo_db_username);
00277 define('TYPO3_db_password', $typo_db_password);
00278 define('TYPO3_db_host', $typo_db_host);
00279 define('TYPO3_tables_script', $typo_db_tables_script);
00280 define('TYPO3_extTableDef_script', $typo_db_extTableDef_script);
00281 
00282         // Defining backend system languages
00283         // When adding new keys, remember to:
00284         //              - Update pages.lang item array (t3lib/stddb/tbl_be.php)
00285         //              - Add character encoding for lang. key in t3lib/class.t3lib_cs.php (default for new languages is "utf-8")
00286         //              - Add mappings for language in t3lib/class.t3lib_cs.php (TYPO3/ISO, language/script, script/charset)
00287         //              - Update 'setup' extension labels (sysext/setup/mod/locallang.xml)
00288         //              - Using translation server? Create new user with username = "language key", member of "translator" group, set to "language key" language.
00289         // Thats it! Use extension "llxmltranslate" to begin translation. Language pack is automatically created in "typo3conf/l10n/[language key]/"
00290 define('TYPO3_languages', 'default|dk|de|no|it|fr|es|nl|cz|pl|si|fi|tr|se|pt|ru|ro|ch|sk|lt|is|hr|hu|gl|th|gr|hk|eu|bg|br|et|ar|he|ua|lv|jp|vn|ca|ba|kr|eo|my|hi|fo|fa|sr');
00291 
00292         // Unsetting the configured values. Use of these are deprecated.
00293 unset($typo_db);
00294 unset($typo_db_username);
00295 unset($typo_db_password);
00296 unset($typo_db_host);
00297 unset($typo_db_tables_script);
00298 unset($typo_db_extTableDef_script);
00299 
00300         // Based on the configuration of the image processing some options may be forced:
00301 if (!$GLOBALS['TYPO3_CONF_VARS']['GFX']['image_processing'])    {
00302         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im']=0;
00303         $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib']=0;
00304 }
00305 if (!$GLOBALS['TYPO3_CONF_VARS']['GFX']['im'])  {
00306         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path']='';
00307         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path_lzw']='';
00308         $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']='gif,jpg,jpeg,png';
00309         $GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails'] = 0;
00310 }
00311 if (!strcmp('0', $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']))   {
00312         unset($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']);      // Make sure that setting "im_version_5" to "0" means IM4
00313 }
00314 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']) {
00315         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask'] = 1;
00316         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_no_effects'] = 1;
00317         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_mask_temp_ext_gif'] = 1;
00318 
00319         if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5']==='gm')  {
00320                 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask'] = 0;
00321                 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_imvMaskState'] = 0;
00322                 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_no_effects'] = 1;
00323                 $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_v5effects'] = -1;
00324         }
00325 }
00326 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_imvMaskState'])      {
00327         $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask']=$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_negate_mask']?0:1;
00328 }
00329 
00330 
00331         // simple debug function which prints output immediately
00332 function xdebug($var='',$br=0)  {
00333                 // If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
00334         if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))   return;
00335         t3lib_div::debug($var,$br);
00336 }
00337         // Debug function which calls $GLOBALS['error'] error handler if available
00338 function debug($variable='', $name='*variable*', $line='*line*', $file='*file*', $recursiveDepth=3, $debugLevel=E_DEBUG)        {
00339                 // If you wish to use the debug()-function, and it does not output something, please edit the IP mask in TYPO3_CONF_VARS
00340         if (!t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))   return;
00341 
00342         if(@is_callable(array($GLOBALS['error'],'debug'))) {
00343                 $GLOBALS['error']->debug($variable, $name, $line, $file, $recursiveDepth, $debugLevel);
00344         } else {
00345                 $br = ($name == '*variable*') ? 0 : $name;
00346                 t3lib_div::debug($variable, $br);
00347         }
00348 }
00349 function debugBegin() {
00350         if(@is_callable(array($GLOBALS['error'],'debugBegin'))) {
00351                 $GLOBALS['error']->debugBegin();
00352         }
00353 }
00354 function debugEnd() {
00355         if(@is_callable(array($GLOBALS['error'],'debugEnd'))) {
00356                 $GLOBALS['error']->debugEnd();
00357         }
00358 }
00359 
00360 
00361         // PHP5 version check
00362 if (version_compare(PHP_VERSION, '5.0', '<')) {
00363                 // include compatibility functions for PHP4
00364         include_once(PATH_t3lib.'compat_php5.php');
00365 
00366                 // iconv utility functions are only available in PHP5 and later
00367         if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils']==='iconv')     {
00368                 $GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] = '';
00369         }
00370 }
00371 
00372         // Init services array:
00373 $T3_SERVICES = array();
00374 
00375 
00376         // Turn error logging on/off.
00377 if (($displayErrors=intval($TYPO3_CONF_VARS['SYS']['displayErrors']))!='-1')    {
00378         if ($displayErrors==2)  {       // Special value "2" enables this feature only if $TYPO3_CONF_VARS[SYS][devIPmask] matches
00379                 if (t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))    {
00380                         $displayErrors=1;
00381                 } else {
00382                         $displayErrors=0;
00383                 }
00384         }
00385         @ini_set('display_errors', $displayErrors);
00386 }
00387 
00388         // Set PHP memory limit depending on value of $TYPO3_CONF_VARS["SYS"]["setMemoryLimit"]
00389 if(intval($TYPO3_CONF_VARS["SYS"]["setMemoryLimit"])>16) {
00390         @ini_set('memory_limit',intval($TYPO3_CONF_VARS["SYS"]["setMemoryLimit"]).'m');
00391 }
00392 
00393 
00394 
00395 // Load extensions:
00396 if (TYPO3_MODE=='FE' && is_object($TT)) $TT->push('Loading localconf.php extensions','');
00397 $TYPO3_LOADED_EXT = t3lib_extMgm::typo3_loadExtensions();
00398 if ($TYPO3_LOADED_EXT['_CACHEFILE'])    {
00399         require(PATH_typo3conf.$TYPO3_LOADED_EXT['_CACHEFILE'].'_ext_localconf.php');
00400 } else {
00401         $temp_TYPO3_LOADED_EXT = $TYPO3_LOADED_EXT;
00402         reset($temp_TYPO3_LOADED_EXT);
00403         while(list($_EXTKEY,$temp_lEDat)=each($temp_TYPO3_LOADED_EXT))  {
00404                 if (is_array($temp_lEDat) && $temp_lEDat['ext_localconf.php'])  {
00405                         $_EXTCONF = $TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY];
00406                         require($temp_lEDat['ext_localconf.php']);
00407                 }
00408         }
00409 }
00410 if (TYPO3_MODE=='FE' && is_object($TT)) $TT->pull();
00411 
00412         // Define "TYPO3_DLOG" constant
00413 define('TYPO3_DLOG', $GLOBALS['TYPO3_CONF_VARS']['SYS']['enable_DLOG']);
00414 
00415         // Unsetting other reserved global variables:
00416         // Those which are/can be set in "stddb/tables.php" files:
00417 unset($PAGES_TYPES);
00418 unset($ICON_TYPES);
00419 unset($LANG_GENERAL_LABELS);
00420 unset($TCA);
00421 unset($TBE_MODULES);
00422 unset($TBE_STYLES);
00423 unset($FILEICONS);
00424 
00425         // Those set in init.php
00426 unset($WEBMOUNTS);
00427 unset($FILEMOUNTS);
00428 unset($BE_USER);
00429 
00430         // Those set otherwise:
00431 unset($TBE_MODULES_EXT);
00432 unset($TCA_DESCR);
00433 unset($LOCAL_LANG);
00434 
00435 
00436         // Setting some global vars:
00437 $EXEC_TIME = time();                                    // $EXEC_TIME is set so that the rest of the script has a common value for the script execution time
00438 $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
00439 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6