[SECURITY] Open shockwave inclusion in flvplayer.swf
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
7 options.saveDocView = 1
8 options.saveDocNew = 1
9 options.saveDocNew.pages = 0
10 options.saveDocNew.sys_file = 0
11 options.disableDelete.sys_file = 1
12 TCAdefaults.tt_content.imagecols = 2
13 ');
14 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
15 mod.wizards.newContentElement {
16 renderMode = tabs
17 wizardItems {
18 common.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common
19 common.elements {
20 header {
21 icon = gfx/c_wiz/regular_header.gif
22 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_title
23 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_headerOnly_description
24 tt_content_defValues {
25 CType = header
26 }
27 }
28 text {
29 icon = gfx/c_wiz/regular_text.gif
30 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_title
31 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_regularText_description
32 tt_content_defValues {
33 CType = text
34 }
35 }
36 textpic {
37 icon = gfx/c_wiz/text_image_right.gif
38 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_title
39 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_textImage_description
40 tt_content_defValues {
41 CType = textpic
42 imageorient = 17
43 }
44 }
45 image {
46 icon = gfx/c_wiz/images_only.gif
47 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_title
48 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_imagesOnly_description
49 tt_content_defValues {
50 CType = image
51 }
52 }
53 bullets {
54 icon = gfx/c_wiz/bullet_list.gif
55 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_title
56 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_bulletList_description
57 tt_content_defValues {
58 CType = bullets
59 }
60 }
61 table {
62 icon = gfx/c_wiz/table.gif
63 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_title
64 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:common_table_description
65 tt_content_defValues {
66 CType = table
67 }
68 }
69
70 }
71 common.show = header,text,textpic,image,bullets,table
72
73 special.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special
74 special.elements {
75 uploads {
76 icon = gfx/c_wiz/filelinks.gif
77 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_title
78 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_filelinks_description
79 tt_content_defValues {
80 CType = uploads
81 }
82 }
83 multimedia {
84 icon = gfx/c_wiz/multimedia.gif
85 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_multimedia_title
86 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_multimedia_description
87 tt_content_defValues {
88 CType = multimedia
89 }
90 }
91 media {
92 icon = gfx/c_wiz/multimedia.gif
93 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_title
94 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_media_description
95 tt_content_defValues {
96 CType = media
97 }
98 }
99 menu {
100 icon = gfx/c_wiz/sitemap2.gif
101 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_title
102 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_menus_description
103 tt_content_defValues {
104 CType = menu
105 menu_type = 0
106 }
107 }
108 html {
109 icon = gfx/c_wiz/html.gif
110 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_title
111 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_plainHTML_description
112 tt_content_defValues {
113 CType = html
114 }
115 }
116 div {
117 icon = gfx/c_wiz/div.gif
118 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_title
119 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_divider_description
120 tt_content_defValues {
121 CType = div
122 }
123 }
124 shortcut {
125 icon = gfx/c_wiz/shortcut.gif
126 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_title
127 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:special_shortcut_description
128 tt_content_defValues {
129 CType = shortcut
130 }
131 }
132
133 }
134 special.show = uploads,media,menu,html,div,shortcut
135
136 forms.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms
137 forms.elements {
138 mailform {
139 icon = gfx/c_wiz/mailform.gif
140 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_mail_title
141 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_mail_description
142 tt_content_defValues {
143 CType = mailform
144 bodytext (
145 # Example content:
146 Name: | *name = input,40 | Enter your name here
147 Email: | *email=input,40 |
148 Address: | address=textarea,40,5 |
149 Contact me: | tv=check | 1
150
151 |formtype_mail = submit | Send form!
152 |html_enabled=hidden | 1
153 |subject=hidden| This is the subject
154 )
155 }
156 }
157 search {
158 icon = gfx/c_wiz/searchform.gif
159 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_search_title
160 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:forms_search_description
161 tt_content_defValues {
162 CType = search
163 }
164 }
165 }
166 forms.show = mailform,search
167
168 plugins.header = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins
169 plugins.elements {
170 general {
171 icon = gfx/c_wiz/user_defined.gif
172 title = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_title
173 description = LLL:EXT:cms/layout/locallang_db_new_content_el.xlf:plugins_general_description
174 tt_content_defValues.CType = list
175 }
176 }
177 plugins.show = *
178 }
179 }
180
181 ');
182
183 $TYPO3_CONF_VARS['SYS']['contentTable'] = 'tt_content';
184 $TYPO3_CONF_VARS['FE']['eID_include']['tx_cms_showpic'] = 'EXT:cms/tslib/showpic.php';
185
186 if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
187 $TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['cms'] = array(
188 'title' => 'CMS Frontend',
189 'version' => 4000000,
190 'description' => '<ul>' . '<li><p>The extension simluatestatic has been removed in TYPO3 6.0</p></li>' . '<li><p>CSS Stylesheets and JavaScript are put into an external file by default.</p>' . '<p>Technically, that means that the default value of "config.inlineStyle2TempFile" is now set to "1" and that of "config.removeDefaultJS" to "external"</p></li>' . '</ul>'
191 );
192 }
193
194 // Registering hooks for the treelist cache
195 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
196 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
197 $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = 'TYPO3\\CMS\\Frontend\\Hooks\\TreelistCacheUpdateHooks';
198
199 if (TYPO3_MODE === 'FE') {
200 // Register the core media wizard provider
201 \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider('TYPO3\\CMS\\Frontend\\MediaWizard\\MediaWizardProvider');
202 // Register eID provider for ExtDirect for the frontend
203 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = PATH_tslib . 'extdirecteid.php';
204 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['validateHash'] = PATH_tslib . 'PHP/ValidateHashEID.php';
205 }
206 // Register search keys
207 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['page'] = 'pages';
208 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';
209 // Register hook to show preview info
210 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = 'TYPO3\\CMS\\Frontend\\Hooks\\FrontendHooks->hook_previewInfo';