Index: _.htaccess =================================================================== --- _.htaccess (Revision 10165) +++ _.htaccess (Arbeitskopie) @@ -37,17 +37,19 @@ # #### +# Compressing resource files will save bandwidth and so improve loading +# speed especially for users with slower internet connections. +# Either TYPO3 or the Webserver are able to do that for you. + ### Begin: Compression via TYPO3 ### -# Allow compressed .js and .css files -# Uncomment the following lines, if you have -# ['BE']['compressionLevel'] set. +# If you don't have a Webserver that is capable of compressing resources +# before delivering them, TYPO3 can compress the .js and .css files for you. +# +# 1) Uncomment the following lines and +# 2) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = true -# If the Apache modules mod_gzip or mod_deflate are activated, you should -# use their compression functions instead. -# You find an example configuration below. - # # AddType "text/javascript" .gzip # @@ -59,6 +61,45 @@ ### End: Compression via TYPO3 ### +### Begin: Compression using Apache ### + +# If the Apache modules mod_gzip or mod_deflate are activated, you should +# use their compression functions: + +# Compressing files for Apache 1.3 +# +#mod_gzip_on Yes +# There is a problem with Internet Explorer and mod_gzip on Apache servers. +#mod_gzip_item_exclude file \.css$ +#mod_gzip_item_exclude file \.js$ +# The size of images generally won't be reduced enough that it's worth +# compressing them. +#mod_gzip_item_exclude file \.png$ +#mod_gzip_item_exclude file \.gif$ +#mod_gzip_item_exclude file \.jpg$ +#mod_gzip_item_exclude file \.jpeg$ +# + +# Compressing files for Apache 2.x +# +# Compress HTML, Text, CSS, JavaScript and XML files. +#AddOutputFilterByType DEFLATE text/plain text/html text/xml +#AddOutputFilterByType DEFLATE text/css text/javascript +#AddOutputFilterByType DEFLATE application/xml application/xhtml+xml +#AddOutputFilterByType DEFLATE application/rss+xml +#AddOutputFilterByType DEFLATE application/javascript application/x-javascript +# Needed for compatibility with Netscape 4.x, which only supports compression +# for HTML files, and for Netscape 4.06-4.08, which support no compression. +#BrowserMatch ^Mozilla/4 gzip-only-text/html +#BrowserMatch ^Mozilla/4.0[678] no-gzip +# Activate compression again for MSIE, which masquerades as Netscape. +# There compression works correctly. +#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html +# + +### End: Compression using Apache ### + + ### Begin: Settings for mod_rewrite ### @@ -139,46 +180,7 @@ ### End: PHP optimisation ### -### Begin: Compression using Apache ### -# With the following settings you can make Apache compress text files, -# which will save bandwidth and so improve loading speed especially for -# users with slower internet connections. - -# Compressing files for Apache 1.3 -# -#mod_gzip_on Yes -# There is a problem with Internet Explorer and mod_gzip on Apache servers. -#mod_gzip_item_exclude file \.css$ -#mod_gzip_item_exclude file \.js$ -# The size of images generally won't be reduced enough that it's worth -# compressing them. -#mod_gzip_item_exclude file \.png$ -#mod_gzip_item_exclude file \.gif$ -#mod_gzip_item_exclude file \.jpg$ -#mod_gzip_item_exclude file \.jpeg$ -# - -# Compressing files for Apache 2.x -# -# Compress HTML, Text, CSS, JavaScript and XML files. -#AddOutputFilterByType DEFLATE text/plain text/html text/xml -#AddOutputFilterByType DEFLATE text/css text/javascript -#AddOutputFilterByType DEFLATE application/xml application/xhtml+xml -#AddOutputFilterByType DEFLATE application/rss+xml -#AddOutputFilterByType DEFLATE application/javascript application/x-javascript -# Needed for compatibility with Netscape 4.x, which only supports compression -# for HTML files, and for Netscape 4.06-4.08, which support no compression. -#BrowserMatch ^Mozilla/4 gzip-only-text/html -#BrowserMatch ^Mozilla/4.0[678] no-gzip -# Activate compression again for MSIE, which masquerades as Netscape. -# There compression works correctly. -#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html -# - -### End: Compression using Apache ### - - ### Begin: Miscellaneous ### # Make sure that directory listings are disabled. Index: t3lib/config_default.php =================================================================== --- t3lib/config_default.php (Revision 10165) +++ t3lib/config_default.php (Arbeitskopie) @@ -210,7 +210,7 @@ 'adminOnly' => 0, //

Integer (-1, 0, 1, 2)

-1
total shutdown for maintenance purposes
0
normal operation, everyone can login (default)
1
only admins can login
2
only admins and regular CLI users can login
'disable_exec_function' => FALSE, // 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. 'usePHPFileFunctions' => TRUE, // 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. - '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 misc/advanced.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. + '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. '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. 'forceCharset' => '-1', // 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. NOTICE: This option is deprecated since TYPO3 4.5, and will be removed in 4.7. Please use proper tools to set your installation to native UTF-8. '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. @@ -477,7 +477,7 @@ '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. '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. 'elementVersioningOnly' => TRUE, // If true, only element versioning is allowed in the backend (see option newPagesVersioningType). Setting this flag is recommended for new installations of TYPO3 4.2+ since "page" and "branch" versioning types are known for the drawbacks of loosing ids and "element" type versions supports moving now. Please note that "page" and "branch" types are deprecated since TYPO3 4.2 and will be unsupported in TYPO3 4.6. Thus, this option will be removed in TYPO3 4.6. - 'versionNumberInFilename' => FALSE, //

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 misc/advanced.htaccess or the _.htaccess file from the dummy package)

If false the filemtime will be appended as a query-string.

+ 'versionNumberInFilename' => FALSE, //

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)

If false the filemtime will be appended as a query-string.

'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. 'allowDonateWindow' => TRUE, // Boolean: Defines whether to display a TYPO3 donate window to admin users that have been working with the system for more than three months. 'debug' => FALSE, // Boolean: If set, the loginrefresh is disabled and pageRenderer is set to debug mode. Use this to debug the backend only! @@ -562,7 +562,7 @@ '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) '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 "&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). '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 <a href="%1$s">Go back...</a> links - '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 misc/advanced.htaccess or the _.htaccess file from the dummy package)

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 < v4.4).

+ '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)

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 < v4.4).

'XCLASS' => array(), // See 'Inside TYPO3' document for more information. ), 'MAIL' => array( // Mail configurations to tune how t3lib_mail classes will send their mails.