* Minor code cleanup (patch by Benni Mack)
[Packages/TYPO3.CMS.git] / t3lib / stddb / tbl_be.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Contains the dynamic configuation of the fields in the core tables of TYPO3: be_users, be_groups, sys_filemounts and sys_workspace
29 *
30 * $Id$
31 * Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
32 *
33 * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
34 * @see tables.php, tables.sql
35 */
36
37
38
39
40
41
42 /**
43 * Backend users - Those who login into the TYPO3 administration backend
44 */
45 $TCA['be_users'] = array(
46 'ctrl' => $TCA['be_users']['ctrl'],
47 'interface' => array(
48 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime'
49 ),
50 'columns' => array(
51 'username' => array(
52 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.username',
53 'config' => array(
54 'type' => 'input',
55 'size' => '20',
56 'max' => '50',
57 'eval' => 'nospace,lower,unique,required'
58 )
59 ),
60 'password' => array(
61 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.password',
62 'config' => array(
63 'type' => 'input',
64 'size' => '20',
65 'max' => '40',
66 'eval' => 'required,md5,password'
67 )
68 ),
69 'usergroup' => array(
70 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup',
71 'config' => array(
72 'type' => 'select',
73 'foreign_table' => 'be_groups',
74 'foreign_table_where' => 'ORDER BY be_groups.title',
75 'size' => '5',
76 'maxitems' => '20',
77 # 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
78 'iconsInOptionTags' => 1,
79 'wizards' => array(
80 '_PADDING' => 1,
81 '_VERTICAL' => 1,
82 'edit' => array(
83 'type' => 'popup',
84 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_edit_title',
85 'script' => 'wizard_edit.php',
86 'popup_onlyOpenIfSelected' => 1,
87 'icon' => 'edit2.gif',
88 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
89 ),
90 'add' => array(
91 'type' => 'script',
92 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_add_title',
93 'icon' => 'add.gif',
94 'params' => array(
95 'table' => 'be_groups',
96 'pid' => '0',
97 'setValue' => 'prepend'
98 ),
99 'script' => 'wizard_add.php',
100 ),
101 'list' => array(
102 'type' => 'script',
103 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_list_title',
104 'icon' => 'list.gif',
105 'params' => array(
106 'table' => 'be_groups',
107 'pid' => '0',
108 ),
109 'script' => 'wizard_list.php',
110 )
111 )
112 )
113 ),
114 'lockToDomain' => array(
115 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
116 'config' => array(
117 'type' => 'input',
118 'size' => '20',
119 'eval' => 'trim',
120 'max' => '50',
121 'checkbox' => '',
122 'softref' => 'substitute'
123 )
124 ),
125 'db_mountpoints' => array(
126 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts',
127 'config' => array(
128 'type' => 'group',
129 'internal_type' => 'db',
130 'allowed' => 'pages',
131 'size' => '3',
132 'maxitems' => '10',
133 'autoSizeMax' => 10,
134 'show_thumbs' => '1'
135 )
136 ),
137 'file_mountpoints' => array(
138 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_file_mounts',
139 'config' => array(
140 'type' => 'select',
141 'foreign_table' => 'sys_filemounts',
142 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
143 'size' => '3',
144 'maxitems' => '10',
145 'autoSizeMax' => 10,
146 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
147 'iconsInOptionTags' => 1,
148 'wizards' => array(
149 '_PADDING' => 1,
150 '_VERTICAL' => 1,
151 'edit' => array(
152 'type' => 'popup',
153 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
154 'script' => 'wizard_edit.php',
155 'icon' => 'edit2.gif',
156 'popup_onlyOpenIfSelected' => 1,
157 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
158 ),
159 'add' => array(
160 'type' => 'script',
161 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
162 'icon' => 'add.gif',
163 'params' => array(
164 'table' => 'sys_filemounts',
165 'pid' => '0',
166 'setValue' => 'prepend'
167 ),
168 'script' => 'wizard_add.php',
169 ),
170 'list' => array(
171 'type' => 'script',
172 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
173 'icon' => 'list.gif',
174 'params' => array(
175 'table' => 'sys_filemounts',
176 'pid' => '0',
177 ),
178 'script' => 'wizard_list.php',
179 )
180 )
181 )
182 ),
183 'email' => array(
184 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email',
185 'config' => array(
186 'type' => 'input',
187 'size' => '20',
188 'eval' => 'trim',
189 'max' => '80',
190 'softref' => 'email[subst]'
191 )
192 ),
193 'realName' => array(
194 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.name',
195 'config' => array(
196 'type' => 'input',
197 'size' => '20',
198 'eval' => 'trim',
199 'max' => '80'
200 )
201 ),
202 'disable' => array(
203 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
204 'config' => array(
205 'type' => 'check'
206 )
207 ),
208 'disableIPlock' => array(
209 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.disableIPlock',
210 'config' => array(
211 'type' => 'check'
212 )
213 ),
214 'admin' => array(
215 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.admin',
216 'config' => array(
217 'type' => 'check',
218 'default' => '0'
219 )
220 ),
221 'options' => array(
222 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options',
223 'config' => array(
224 'type' => 'check',
225 'items' => array(
226 array('LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts', 0),
227 array('LLL:EXT:lang/locallang_tca.xml:be_users.options_file_mounts', 0)
228 ),
229 'default' => '3'
230 )
231 ),
232 'fileoper_perms' => array(
233 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms',
234 'config' => array(
235 'type' => 'check',
236 'items' => array(
237 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_general', 0),
238 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_unzip', 0),
239 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms', 0),
240 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms_copy', 0),
241 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms_delete', 0),
242 ),
243 'default' => '7'
244 )
245 ),
246 'workspace_perms' => array(
247 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
248 'config' => array(
249 'type' => 'check',
250 'items' => array(
251 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0),
252 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0),
253 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_custom', 0),
254 ),
255 'default' => 3
256 )
257 ),
258 'starttime' => array(
259 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime',
260 'config' => array(
261 'type' => 'input',
262 'size' => '8',
263 'max' => '20',
264 'eval' => 'date',
265 'default' => '0',
266 'checkbox' => '0'
267 )
268 ),
269 'endtime' => array(
270 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime',
271 'config' => array(
272 'type' => 'input',
273 'size' => '8',
274 'max' => '20',
275 'eval' => 'date',
276 'checkbox' => '0',
277 'default' => '0',
278 'range' => array(
279 'upper' => mktime(0,0,0,12,31,2020),
280 )
281 )
282 ),
283 'lang' => array(
284 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.lang',
285 'config' => array(
286 'type' => 'select',
287 'items' => array(
288 array('English', ''),
289 array('Albanian', 'sq'),
290 array('Arabic', 'ar'),
291 array('Basque', 'eu'),
292 array('Bosnian', 'ba'),
293 array('Brazilian Portuguese', 'br'),
294 array('Bulgarian', 'bg'),
295 array('Catalan', 'ca'),
296 array('Chinese (Simpl.)', 'ch'),
297 array('Chinese (Trad.)', 'hk'),
298 array('Croatian', 'hr'),
299 array('Czech', 'cz'),
300 array('Danish', 'dk'),
301 array('Dutch', 'nl'),
302 array('Esperanto', 'eo'),
303 array('Estonian', 'et'),
304 array('Faroese', 'fo'),
305 array('Finnish', 'fi'),
306 array('French', 'fr'),
307 array('Galician', 'ga'),
308 array('Georgian', 'ge'),
309 array('German', 'de'),
310 array('Greek', 'gr'),
311 array('Greenlandic', 'gl'),
312 array('Hebrew', 'he'),
313 array('Hindi', 'hi'),
314 array('Hungarian', 'hu'),
315 array('Icelandic', 'is'),
316 array('Italian', 'it'),
317 array('Japanese', 'jp'),
318 array('Korean', 'kr'),
319 array('Latvian', 'lv'),
320 array('Lithuanian', 'lt'),
321 array('Malay', 'my'),
322 array('Norwegian', 'no'),
323 array('Persian', 'fa'),
324 array('Polish', 'pl'),
325 array('Portuguese', 'pt'),
326 array('Romanian', 'ro'),
327 array('Russian', 'ru'),
328 array('Serbian', 'sr'),
329 array('Slovak', 'sk'),
330 array('Slovenian', 'si'),
331 array('Spanish', 'es'),
332 array('Swedish', 'se'),
333 array('Thai', 'th'),
334 array('Turkish', 'tr'),
335 array('Ukrainian', 'ua'),
336 array('Vietnamese', 'vn'),
337 )
338 )
339 ),
340 'userMods' => array(
341 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
342 'config' => array(
343 'type' => 'select',
344 'special' => 'modListUser',
345 'size' => '5',
346 'autoSizeMax' => 50,
347 'maxitems' => '100',
348 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
349 'iconsInOptionTags' => 1,
350 )
351 ),
352 'allowed_languages' => array(
353 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
354 'config' => array(
355 'type' => 'select',
356 'special' => 'languages',
357 'maxitems' => '1000',
358 'renderMode' => 'checkbox',
359 )
360 ),
361 'TSconfig' => array(
362 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
363 'config' => array(
364 'type' => 'text',
365 'cols' => '40',
366 'rows' => '5',
367 'wizards' => array(
368 '_PADDING' => 4,
369 '0' => array(
370 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
371 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
372 'script' => 'wizard_tsconfig.php?mode=beuser',
373 'icon' => 'wizard_tsconfig.gif',
374 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
375 )
376 ),
377 'softref' => 'TSconfig'
378 ),
379 'defaultExtras' => 'fixed-font : enable-tab',
380 ),
381 'createdByAction' => array('config' => array('type' => 'passthrough'))
382 ),
383 'types' => array(
384 '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang,
385 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, admin;;;;1-1-1, userMods;;;;2-2-2, allowed_languages,
386 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
387 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
388 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
389 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
390 ),
391 '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, realName;;;;3-3-3, email, lang,
392 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, admin;;;;1-1-1, allowed_languages;;;;2-2-2,
393 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.mounts_and_workspaces, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
394 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2,
395 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime,
396 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended'
397 )
398 ),
399 );
400
401
402
403 /**
404 * Backend usergroups - Much permission criterias are based on membership of backend groups.
405 */
406 $TCA['be_groups'] = array(
407 'ctrl' => $TCA['be_groups']['ctrl'],
408 'interface' => array(
409 'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description'
410 ),
411 'columns' => array(
412 'title' => array(
413 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.title',
414 'config' => array(
415 'type' => 'input',
416 'size' => '25',
417 'max' => '50',
418 'eval' => 'trim,required'
419 )
420 ),
421 'db_mountpoints' => array(
422 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
423 'config' => array(
424 'type' => 'group',
425 'internal_type' => 'db',
426 'allowed' => 'pages',
427 'size' => '3',
428 'maxitems' => 20,
429 'autoSizeMax' => 10,
430 'show_thumbs' => '1'
431 )
432 ),
433 'file_mountpoints' => array(
434 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
435 'config' => array(
436 'type' => 'select',
437 'foreign_table' => 'sys_filemounts',
438 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
439 'size' => '3',
440 'maxitems' => 20,
441 'autoSizeMax' => 10,
442 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
443 'iconsInOptionTags' => 1,
444 'wizards' => array(
445 '_PADDING' => 1,
446 '_VERTICAL' => 1,
447 'edit' => array(
448 'type' => 'popup',
449 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title',
450 'script' => 'wizard_edit.php',
451 'popup_onlyOpenIfSelected' => 1,
452 'icon' => 'edit2.gif',
453 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
454 ),
455 'add' => array(
456 'type' => 'script',
457 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title',
458 'icon' => 'add.gif',
459 'params' => array(
460 'table' => 'sys_filemounts',
461 'pid' => '0',
462 'setValue' => 'prepend'
463 ),
464 'script' => 'wizard_add.php',
465 ),
466 'list' => array(
467 'type' => 'script',
468 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title',
469 'icon' => 'list.gif',
470 'params' => array(
471 'table' => 'sys_filemounts',
472 'pid' => '0',
473 ),
474 'script' => 'wizard_list.php',
475 )
476 )
477 )
478 ),
479 'workspace_perms' => array(
480 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms',
481 'config' => array(
482 'type' => 'check',
483 'items' => array(
484 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0),
485 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0),
486 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_custom', 0),
487 ),
488 'default' => 0
489 )
490 ),
491 'pagetypes_select' => array(
492 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.pagetypes_select',
493 'config' => array(
494 'type' => 'select',
495 'special' => 'pagetypes',
496 'size' => '5',
497 'autoSizeMax' => 50,
498 'maxitems' => 20,
499 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
500 'iconsInOptionTags' => 1,
501 )
502 ),
503 'tables_modify' => array(
504 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_modify',
505 'config' => array(
506 'type' => 'select',
507 'special' => 'tables',
508 'size' => '5',
509 'autoSizeMax' => 50,
510 'maxitems' => 100,
511 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
512 'iconsInOptionTags' => 1,
513 )
514 ),
515 'tables_select' => array(
516 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_select',
517 'config' => array(
518 'type' => 'select',
519 'special' => 'tables',
520 'size' => '5',
521 'autoSizeMax' => 50,
522 'maxitems' => 100,
523 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
524 'iconsInOptionTags' => 1,
525 )
526 ),
527 'non_exclude_fields' => array(
528 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.non_exclude_fields',
529 'config' => array(
530 'type' => 'select',
531 'special' => 'exclude',
532 'size' => '25',
533 'maxitems' => 1000,
534 'autoSizeMax' => 50,
535 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
536 )
537 ),
538 'explicit_allowdeny' => array(
539 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny',
540 'config' => array(
541 'type' => 'select',
542 'special' => 'explicitValues',
543 'maxitems' => 1000,
544 'renderMode' => 'checkbox',
545 )
546 ),
547 'allowed_languages' => array(
548 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages',
549 'config' => array(
550 'type' => 'select',
551 'special' => 'languages',
552 'maxitems' => 1000,
553 'renderMode' => 'checkbox',
554 )
555 ),
556 'custom_options' => array(
557 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options',
558 'config' => array(
559 'type' => 'select',
560 'special' => 'custom',
561 'maxitems' => 1000,
562 'renderMode' => 'checkbox',
563 )
564 ),
565 'hidden' => array(
566 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
567 'config' => array(
568 'type' => 'check',
569 'default' => '0'
570 )
571 ),
572 'lockToDomain' => array(
573 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain',
574 'config' => array(
575 'type' => 'input',
576 'size' => '20',
577 'eval' => 'trim',
578 'max' => '50',
579 'checkbox' => '',
580 'softref' => 'substitute'
581 )
582 ),
583 'groupMods' => array(
584 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods',
585 'config' => array(
586 'type' => 'select',
587 'special' => 'modListGroup',
588 'size' => '5',
589 'autoSizeMax' => 50,
590 'maxitems' => 100,
591 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
592 'iconsInOptionTags' => 1,
593 )
594 ),
595 'inc_access_lists' => array(
596 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.inc_access_lists',
597 'config' => array(
598 'type' => 'check',
599 'default' => '0'
600 )
601 ),
602 'description' => array(
603 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
604 'config' => array(
605 'type' => 'text',
606 'rows' => 5,
607 'cols' => 30
608 )
609 ),
610 'TSconfig' => array(
611 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig',
612 'config' => array(
613 'type' => 'text',
614 'cols' => '40',
615 'rows' => '5',
616 'wizards' => array(
617 '_PADDING' => 4,
618 '0' => array(
619 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
620 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title',
621 'script' => 'wizard_tsconfig.php?mode=beuser',
622 'icon' => 'wizard_tsconfig.gif',
623 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
624 )
625 ),
626 'softref' => 'TSconfig'
627 ),
628 'defaultExtras' => 'fixed-font : enable-tab',
629 ),
630 'hide_in_lists' => array(
631 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.hide_in_lists',
632 'config' => array(
633 'type' => 'check',
634 'default' => 0
635 )
636 ),
637 'subgroup' => array(
638 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.subgroup',
639 'config' => array(
640 'type' => 'select',
641 'foreign_table' => 'be_groups',
642 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
643 'size' => '5',
644 'autoSizeMax' => 50,
645 'maxitems' => 20,
646 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
647 'iconsInOptionTags' => 1,
648 )
649 )
650 ),
651 'types' => array(
652 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2,description, subgroup;;;;3-3-3, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, db_mountpoints;;;;1-1-1,file_mountpoints, workspace_perms;;;;2-2-2, , --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended'),
653 '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2,description, subgroup;;;;3-3-3, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny , allowed_languages;;;;2-2-2, custom_options;;;;3-3-3, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, db_mountpoints;;;;1-1-1,file_mountpoints, workspace_perms;;;;2-2-2, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.options, lockToDomain;;;;1-1-1, hide_in_lists;;;;2-2-2, TSconfig;;;;3-3-3, --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended')
654 )
655 );
656
657
658
659 /**
660 * System filemounts - Defines filepaths on the server which can be mounted for users so they can upload and manage files online by eg. the Filelist module
661 */
662 $TCA['sys_filemounts'] = array(
663 'ctrl' => $TCA['sys_filemounts']['ctrl'],
664 'interface' => array(
665 'showRecordFieldList' => 'title,hidden,path,base'
666 ),
667 'columns' => array(
668 'title' => array(
669 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.title',
670 'config' => array(
671 'type' => 'input',
672 'size' => '20',
673 'max' => '30',
674 'eval' => 'required,trim'
675 )
676 ),
677 'path' => array(
678 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.path',
679 'config' => array(
680 'type' => 'input',
681 'size' => '40',
682 'max' => '120',
683 'eval' => 'required,trim',
684 'softref' => 'substitute'
685 )
686 ),
687 'hidden' => array(
688 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable',
689 'config' => array(
690 'type' => 'check'
691 )
692 ),
693 'base' => array(
694 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base',
695 'config' => array(
696 'type' => 'radio',
697 'items' => array(
698 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_absolute', 0),
699 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_relative', 1)
700 ),
701 'default' => 0
702 )
703 )
704 ),
705 'types' => array(
706 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
707 )
708 );
709
710
711
712 /**
713 * System workspaces - Defines the offline workspaces available to users in TYPO3.
714 */
715 $TCA['sys_workspace'] = array(
716 'ctrl' => $TCA['sys_workspace']['ctrl'],
717 'columns' => array(
718 'title' => array(
719 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title',
720 'config' => array(
721 'type' => 'input',
722 'size' => '20',
723 'max' => '30',
724 'eval' => 'required,trim,unique'
725 )
726 ),
727 'description' => array(
728 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description',
729 'config' => array(
730 'type' => 'text',
731 'rows' => 5,
732 'cols' => 30
733 )
734 ),
735 'adminusers' => array(
736 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.adminusers',
737 'config' => array(
738 'type' => 'group',
739 'internal_type' => 'db',
740 'allowed' => 'be_users',
741 'size' => '3',
742 'maxitems' => '10',
743 'autoSizeMax' => 10,
744 'show_thumbs' => '1'
745 )
746 ),
747 'members' => array(
748 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.members',
749 'config' => array(
750 'type' => 'group',
751 'internal_type' => 'db',
752 'allowed' => 'be_users,be_groups',
753 'prepend_tname' => 1,
754 'size' => '3',
755 'maxitems' => '100',
756 'autoSizeMax' => 10,
757 'show_thumbs' => '1'
758 )
759 ),
760 'reviewers' => array(
761 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.reviewers',
762 'config' => array(
763 'type' => 'group',
764 'internal_type' => 'db',
765 'allowed' => 'be_users,be_groups',
766 'prepend_tname' => 1,
767 'size' => '3',
768 'maxitems' => '100',
769 'autoSizeMax' => 10,
770 'show_thumbs' => '1'
771 )
772 ),
773 'db_mountpoints' => array(
774 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints',
775 'config' => array(
776 'type' => 'group',
777 'internal_type' => 'db',
778 'allowed' => 'pages',
779 'size' => '3',
780 'maxitems' => '10',
781 'autoSizeMax' => 10,
782 'show_thumbs' => '1'
783 )
784 ),
785 'file_mountpoints' => array(
786 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints',
787 'config' => array(
788 'type' => 'select',
789 'foreign_table' => 'sys_filemounts',
790 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
791 'size' => '3',
792 'maxitems' => '10',
793 'autoSizeMax' => 10,
794 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
795 'iconsInOptionTags' => 1,
796 )
797 ),
798 'publish_time' => array(
799 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_time',
800 'config' => array(
801 'type' => 'input',
802 'size' => '8',
803 'max' => '20',
804 'eval' => 'datetime',
805 'default' => '0',
806 'checkbox' => '0'
807 )
808 ),
809 'unpublish_time' => array(
810 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.unpublish_time',
811 'config' => array(
812 'type' => 'input',
813 'size' => '8',
814 'max' => '20',
815 'eval' => 'datetime',
816 'checkbox' => '0',
817 'default' => '0',
818 'range' => array(
819 'upper' => mktime(0,0,0,12,31,2020),
820 )
821 )
822 ),
823 'freeze' => array(
824 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.freeze',
825 'config' => array(
826 'type' => 'check',
827 'default' => '0'
828 )
829 ),
830 'live_edit' => array(
831 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.live_edit',
832 'config' => array(
833 'type' => 'check',
834 'default' => '0'
835 )
836 ),
837 'review_stage_edit' => array(
838 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.review_stage_edit',
839 'config' => array(
840 'type' => 'check',
841 'default' => '0'
842 )
843 ),
844 'disable_autocreate' => array(
845 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.disable_autocreate',
846 'config' => array(
847 'type' => 'check',
848 'default' => '0'
849 )
850 ),
851 'swap_modes' => array(
852 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.swap_modes',
853 'config' => array(
854 'type' => 'select',
855 'items' => array(
856 array('', 0),
857 array('Swap-Into-Workspace on Auto-publish', 1),
858 array('Disable Swap-Into-Workspace', 2)
859 ),
860 )
861 ),
862 'vtypes' => array(
863 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.vtypes',
864 'config' => array(
865 'type' => 'check',
866 'items' => array(
867 array('Element', 0),
868 array('Page', 0),
869 array('Branch', 0)
870 ),
871 )
872 ),
873 'publish_access' => array(
874 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.publish_access',
875 'config' => array(
876 'type' => 'check',
877 'items' => array(
878 array('Publish only content in publish stage', 0),
879 array('Only workspace owner can publish', 0),
880 ),
881 )
882 ),
883 'stagechg_notification' => array(
884 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace.stagechg_notification',
885 'config' => array(
886 'type' => 'select',
887 'items' => array(
888 array('', 0),
889 array('Notify users on next stage only', 1),
890 array('Notify all users on any change', 10)
891 ),
892 )
893 ),
894 ),
895 'types' => array(
896 '0' => array('showitem' => 'title,description,--div--;Users,adminusers,members,reviewers,stagechg_notification,--div--;Mountpoints,db_mountpoints,file_mountpoints,--div--;Publishing,publish_time,unpublish_time,--div--;Other,freeze,live_edit,review_stage_edit,disable_autocreate,swap_modes,vtypes,publish_access')
897 )
898 );
899
900
901
902 /**
903 * System languages - Defines possible languages used for translation of records in the system
904 */
905 $TCA['sys_language'] = array(
906 'ctrl' => $TCA['sys_language']['ctrl'],
907 'interface' => array(
908 'showRecordFieldList' => 'hidden,title'
909 ),
910 'columns' => array(
911 'title' => array(
912 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
913 'config' => array(
914 'type' => 'input',
915 'size' => '35',
916 'max' => '80',
917 'eval' => 'trim,required'
918 )
919 ),
920 'hidden' => array(
921 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
922 'exclude' => 1,
923 'config' => array(
924 'type' => 'check',
925 'default' => '0'
926 )
927 ),
928 'static_lang_isocode' => array(
929 'exclude' => 1,
930 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
931 'displayCond' => 'EXT:static_info_tables:LOADED:true',
932 'config' => array(
933 'type' => 'select',
934 'items' => array(
935 array('', 0),
936 ),
937 'foreign_table' => 'static_languages',
938 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
939 'size' => 1,
940 'minitems' => 0,
941 'maxitems' => 1,
942 )
943 ),
944 'flag' => array(
945 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
946 'config' => array(
947 'type' => 'select',
948 'items' => array(
949 array('', 0),
950 ),
951 'fileFolder' => 'typo3/gfx/flags/', // Only shows if "t3lib/" is in the PATH_site...
952 'fileFolder_extList' => 'png,jpg,jpeg,gif',
953 'fileFolder_recursions' => 0,
954 'selicon_cols' => 8,
955 'size' => 1,
956 'minitems' => 0,
957 'maxitems' => 1,
958 )
959 )
960 ),
961 'types' => array(
962 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
963 )
964 );
965
966 ?>