|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com) 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * A copy is found in the textfile GPL.txt and important notices to the license 00017 * from the author is found in LICENSE.txt distributed with these scripts. 00018 * 00019 * 00020 * This script is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * This copyright notice MUST APPEAR in all copies of the script! 00026 ***************************************************************/ 00027 /** 00028 * Contains the dynamic configuation of the fields in the core tables of TYPO3: be_users, be_groups and sys_filemounts 00029 * 00030 * $Id: tbl_be.php 10310 2011-01-25 19:51:40Z baschny $ 00031 * Revised for TYPO3 3.6 July/2003 by Kasper Skårhøj 00032 * 00033 * @author Kasper Skårhøj <kasperYYYY@typo3.com> 00034 * @see tables.php, tables.sql 00035 */ 00036 00037 00038 /** 00039 * Backend users - Those who login into the TYPO3 administration backend 00040 */ 00041 $TCA['be_users'] = array( 00042 'ctrl' => $TCA['be_users']['ctrl'], 00043 'interface' => array( 00044 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin' 00045 ), 00046 'columns' => array( 00047 'username' => array( 00048 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.username', 00049 'config' => array( 00050 'type' => 'input', 00051 'size' => '20', 00052 'max' => '50', 00053 'eval' => 'nospace,lower,unique,required' 00054 ) 00055 ), 00056 'password' => array( 00057 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.password', 00058 'config' => array( 00059 'type' => 'input', 00060 'size' => '20', 00061 'max' => '40', 00062 'eval' => 'required,md5,password' 00063 ) 00064 ), 00065 'usergroup' => array( 00066 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup', 00067 'config' => array( 00068 'type' => 'select', 00069 'foreign_table' => 'be_groups', 00070 'foreign_table_where' => 'ORDER BY be_groups.title', 00071 'size' => '5', 00072 'maxitems' => '20', 00073 # 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00074 'iconsInOptionTags' => 1, 00075 'wizards' => array( 00076 '_PADDING' => 1, 00077 '_VERTICAL' => 1, 00078 'edit' => array( 00079 'type' => 'popup', 00080 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_edit_title', 00081 'script' => 'wizard_edit.php', 00082 'popup_onlyOpenIfSelected' => 1, 00083 'icon' => 'edit2.gif', 00084 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 00085 ), 00086 'add' => array( 00087 'type' => 'script', 00088 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_add_title', 00089 'icon' => 'add.gif', 00090 'params' => array( 00091 'table' => 'be_groups', 00092 'pid' => '0', 00093 'setValue' => 'prepend' 00094 ), 00095 'script' => 'wizard_add.php', 00096 ), 00097 'list' => array( 00098 'type' => 'script', 00099 'title' => 'LLL:EXT:lang/locallang_tca.xml:be_users.usergroup_list_title', 00100 'icon' => 'list.gif', 00101 'params' => array( 00102 'table' => 'be_groups', 00103 'pid' => '0', 00104 ), 00105 'script' => 'wizard_list.php', 00106 ) 00107 ) 00108 ) 00109 ), 00110 'lockToDomain' => array( 00111 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain', 00112 'config' => array( 00113 'type' => 'input', 00114 'size' => '20', 00115 'eval' => 'trim', 00116 'max' => '50', 00117 'softref' => 'substitute' 00118 ) 00119 ), 00120 'db_mountpoints' => array( 00121 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts', 00122 'config' => array( 00123 'type' => 'group', 00124 'internal_type' => 'db', 00125 'allowed' => 'pages', 00126 'size' => '3', 00127 'maxitems' => '10', 00128 'autoSizeMax' => 10, 00129 'show_thumbs' => '1', 00130 'wizards' => array( 00131 'suggest' => array( 00132 'type' => 'suggest', 00133 ), 00134 ), 00135 ) 00136 ), 00137 'file_mountpoints' => array( 00138 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options_file_mounts', 00139 'config' => array( 00140 'type' => 'select', 00141 'foreign_table' => 'sys_filemounts', 00142 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title', 00143 'size' => '3', 00144 'maxitems' => '10', 00145 'autoSizeMax' => 10, 00146 'iconsInOptionTags' => 1, 00147 'wizards' => array( 00148 '_PADDING' => 1, 00149 '_VERTICAL' => 1, 00150 'edit' => array( 00151 'type' => 'popup', 00152 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title', 00153 'script' => 'wizard_edit.php', 00154 'icon' => 'edit2.gif', 00155 'popup_onlyOpenIfSelected' => 1, 00156 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 00157 ), 00158 'add' => array( 00159 'type' => 'script', 00160 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title', 00161 'icon' => 'add.gif', 00162 'params' => array( 00163 'table' => 'sys_filemounts', 00164 'pid' => '0', 00165 'setValue' => 'prepend' 00166 ), 00167 'script' => 'wizard_add.php', 00168 ), 00169 'list' => array( 00170 'type' => 'script', 00171 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title', 00172 'icon' => 'list.gif', 00173 'params' => array( 00174 'table' => 'sys_filemounts', 00175 'pid' => '0', 00176 ), 00177 'script' => 'wizard_list.php', 00178 ) 00179 ) 00180 ) 00181 ), 00182 'email' => array( 00183 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.email', 00184 'config' => array( 00185 'type' => 'input', 00186 'size' => '20', 00187 'eval' => 'trim', 00188 'max' => '80', 00189 'softref' => 'email[subst]' 00190 ) 00191 ), 00192 'realName' => array( 00193 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.name', 00194 'config' => array( 00195 'type' => 'input', 00196 'size' => '20', 00197 'eval' => 'trim', 00198 'max' => '80' 00199 ) 00200 ), 00201 'disable' => array( 00202 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable', 00203 'config' => array( 00204 'type' => 'check' 00205 ) 00206 ), 00207 'disableIPlock' => array( 00208 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.disableIPlock', 00209 'config' => array( 00210 'type' => 'check' 00211 ) 00212 ), 00213 'admin' => array( 00214 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.admin', 00215 'config' => array( 00216 'type' => 'check', 00217 'default' => '0' 00218 ) 00219 ), 00220 'options' => array( 00221 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.options', 00222 'config' => array( 00223 'type' => 'check', 00224 'items' => array( 00225 array('LLL:EXT:lang/locallang_tca.xml:be_users.options_db_mounts', 0), 00226 array('LLL:EXT:lang/locallang_tca.xml:be_users.options_file_mounts', 0) 00227 ), 00228 'default' => '3' 00229 ) 00230 ), 00231 'fileoper_perms' => array( 00232 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms', 00233 'config' => array( 00234 'type' => 'check', 00235 'items' => array( 00236 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_general', 0), 00237 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_unzip', 0), 00238 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms', 0), 00239 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms_copy', 0), 00240 array('LLL:EXT:lang/locallang_tca.xml:be_users.fileoper_perms_diroper_perms_delete', 0), 00241 ), 00242 'default' => '0' 00243 ) 00244 ), 00245 'workspace_perms' => array( 00246 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms', 00247 'config' => array( 00248 'type' => 'check', 00249 'items' => array( 00250 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0), 00251 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0), 00252 ), 00253 'default' => 3 00254 ) 00255 ), 00256 'starttime' => array( 00257 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime', 00258 'config' => array( 00259 'type' => 'input', 00260 'size' => '8', 00261 'max' => '20', 00262 'eval' => 'date', 00263 'default' => '0', 00264 ) 00265 ), 00266 'endtime' => array( 00267 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime', 00268 'config' => array( 00269 'type' => 'input', 00270 'size' => '8', 00271 'max' => '20', 00272 'eval' => 'date', 00273 'default' => '0', 00274 'range' => array( 00275 'upper' => mktime(0, 0, 0, 12, 31, 2020), 00276 ) 00277 ) 00278 ), 00279 'lang' => array( 00280 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_users.lang', 00281 'config' => array( 00282 'type' => 'select', 00283 'items' => array( 00284 array('English', ''), 00285 array('Albanian', 'sq'), 00286 array('Arabic', 'ar'), 00287 array('Basque', 'eu'), 00288 array('Bosnian', 'ba'), 00289 array('Brazilian Portuguese', 'br'), 00290 array('Bulgarian', 'bg'), 00291 array('Catalan', 'ca'), 00292 array('Chinese (Simpl.)', 'ch'), 00293 array('Chinese (Trad.)', 'hk'), 00294 array('Croatian', 'hr'), 00295 array('Czech', 'cz'), 00296 array('Danish', 'dk'), 00297 array('Dutch', 'nl'), 00298 array('Esperanto', 'eo'), 00299 array('Estonian', 'et'), 00300 array('Faroese', 'fo'), 00301 array('Finnish', 'fi'), 00302 array('French', 'fr'), 00303 array('French (Canada)', 'qc'), 00304 array('Galician', 'ga'), 00305 array('Georgian', 'ge'), 00306 array('German', 'de'), 00307 array('Greek', 'gr'), 00308 array('Greenlandic', 'gl'), 00309 array('Hebrew', 'he'), 00310 array('Hindi', 'hi'), 00311 array('Hungarian', 'hu'), 00312 array('Icelandic', 'is'), 00313 array('Italian', 'it'), 00314 array('Japanese', 'jp'), 00315 array('Khmer', 'km'), 00316 array('Korean', 'kr'), 00317 array('Latvian', 'lv'), 00318 array('Lithuanian', 'lt'), 00319 array('Malay', 'my'), 00320 array('Norwegian', 'no'), 00321 array('Persian', 'fa'), 00322 array('Polish', 'pl'), 00323 array('Portuguese', 'pt'), 00324 array('Romanian', 'ro'), 00325 array('Russian', 'ru'), 00326 array('Serbian', 'sr'), 00327 array('Slovak', 'sk'), 00328 array('Slovenian', 'si'), 00329 array('Spanish', 'es'), 00330 array('Swedish', 'se'), 00331 array('Thai', 'th'), 00332 array('Turkish', 'tr'), 00333 array('Ukrainian', 'ua'), 00334 array('Vietnamese', 'vn'), 00335 ) 00336 ) 00337 ), 00338 'userMods' => array( 00339 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods', 00340 'config' => array( 00341 'type' => 'select', 00342 'special' => 'modListUser', 00343 'size' => '5', 00344 'autoSizeMax' => 50, 00345 'maxitems' => '100', 00346 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00347 'iconsInOptionTags' => 1, 00348 ) 00349 ), 00350 'allowed_languages' => array( 00351 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages', 00352 'config' => array( 00353 'type' => 'select', 00354 'special' => 'languages', 00355 'maxitems' => '1000', 00356 'renderMode' => 'checkbox', 00357 ) 00358 ), 00359 'TSconfig' => array( 00360 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig', 00361 'config' => array( 00362 'type' => 'text', 00363 'cols' => '40', 00364 'rows' => '5', 00365 'wizards' => array( 00366 '_PADDING' => 4, 00367 '0' => array( 00368 'type' => t3lib_extMgm::isLoaded('tsconfig_help') ? 'popup' : '', 00369 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title', 00370 'script' => 'wizard_tsconfig.php?mode=beuser', 00371 'icon' => 'wizard_tsconfig.gif', 00372 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1', 00373 ) 00374 ), 00375 'softref' => 'TSconfig' 00376 ), 00377 'defaultExtras' => 'fixed-font : enable-tab', 00378 ), 00379 'createdByAction' => array( 00380 'config' => array( 00381 'type' => 'passthrough' 00382 ) 00383 ), 00384 'lastlogin' => array( 00385 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.lastlogin', 00386 'config' => array( 00387 'type' => 'input', 00388 'readOnly' => '1', 00389 'size' => '12', 00390 'eval' => 'datetime', 00391 'default' => 0, 00392 ) 00393 ) 00394 ), 00395 'types' => array( 00396 '0' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1, 00397 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.rights, userMods;;;;2-2-2, allowed_languages, 00398 --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, 00399 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2, 00400 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime, 00401 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended' 00402 ), 00403 '1' => array('showitem' => 'disable;;;;1-1-1, username;;;;2-2-2, password, usergroup;;;;3-3-3, admin;;;;1-1-1, realName;;;;3-3-3, email, lang, lastlogin;;;;1-1-1, 00404 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2, db_mountpoints;;;;3-3-3, file_mountpoints;;;;4-4-4, 00405 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.access, starttime;;;;1-1-1,endtime, 00406 --div--;LLL:EXT:lang/locallang_tca.xml:be_users.tabs.extended' 00407 ) 00408 ), 00409 ); 00410 00411 00412 /** 00413 * Backend usergroups - Much permission criterias are based on membership of backend groups. 00414 */ 00415 $TCA['be_groups'] = array( 00416 'ctrl' => $TCA['be_groups']['ctrl'], 00417 'interface' => array( 00418 'showRecordFieldList' => 'title, db_mountpoints, file_mountpoints, fileoper_perms, inc_access_lists, tables_select, tables_modify, pagetypes_select, non_exclude_fields, groupMods, lockToDomain, description' 00419 ), 00420 'columns' => array( 00421 'title' => array( 00422 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.title', 00423 'config' => array( 00424 'type' => 'input', 00425 'size' => '25', 00426 'max' => '50', 00427 'eval' => 'trim,required' 00428 ) 00429 ), 00430 'db_mountpoints' => array( 00431 'label' => 'LLL:EXT:lang/locallang_tca.xml:db_mountpoints', 00432 'config' => array( 00433 'type' => 'group', 00434 'internal_type' => 'db', 00435 'allowed' => 'pages', 00436 'size' => '3', 00437 'maxitems' => 20, 00438 'autoSizeMax' => 10, 00439 'show_thumbs' => '1', 00440 'wizards' => array( 00441 'suggest' => array( 00442 'type' => 'suggest', 00443 ), 00444 ), 00445 ) 00446 ), 00447 'file_mountpoints' => array( 00448 'label' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints', 00449 'config' => array( 00450 'type' => 'select', 00451 'foreign_table' => 'sys_filemounts', 00452 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title', 00453 'size' => '3', 00454 'maxitems' => 20, 00455 'autoSizeMax' => 10, 00456 'iconsInOptionTags' => 1, 00457 'wizards' => array( 00458 '_PADDING' => 1, 00459 '_VERTICAL' => 1, 00460 'edit' => array( 00461 'type' => 'popup', 00462 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_edit_title', 00463 'script' => 'wizard_edit.php', 00464 'popup_onlyOpenIfSelected' => 1, 00465 'icon' => 'edit2.gif', 00466 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', 00467 ), 00468 'add' => array( 00469 'type' => 'script', 00470 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_add_title', 00471 'icon' => 'add.gif', 00472 'params' => array( 00473 'table' => 'sys_filemounts', 00474 'pid' => '0', 00475 'setValue' => 'prepend' 00476 ), 00477 'script' => 'wizard_add.php', 00478 ), 00479 'list' => array( 00480 'type' => 'script', 00481 'title' => 'LLL:EXT:lang/locallang_tca.xml:file_mountpoints_list_title', 00482 'icon' => 'list.gif', 00483 'params' => array( 00484 'table' => 'sys_filemounts', 00485 'pid' => '0', 00486 ), 00487 'script' => 'wizard_list.php', 00488 ) 00489 ) 00490 ) 00491 ), 00492 'fileoper_perms' => array( 00493 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms', 00494 'config' => array( 00495 'type' => 'check', 00496 'items' => array( 00497 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_general', 0), 00498 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_unzip', 0), 00499 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms', 0), 00500 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_copy', 0), 00501 array('LLL:EXT:lang/locallang_tca.xml:be_groups.fileoper_perms_diroper_perms_delete', 0), 00502 ), 00503 'default' => '7' 00504 ) 00505 ), 00506 'workspace_perms' => array( 00507 'label' => 'LLL:EXT:lang/locallang_tca.xml:workspace_perms', 00508 'config' => array( 00509 'type' => 'check', 00510 'items' => array( 00511 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_live', 0), 00512 array('LLL:EXT:lang/locallang_tca.xml:workspace_perms_draft', 0), 00513 ), 00514 'default' => 0 00515 ) 00516 ), 00517 'pagetypes_select' => array( 00518 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.pagetypes_select', 00519 'config' => array( 00520 'type' => 'select', 00521 'special' => 'pagetypes', 00522 'size' => '5', 00523 'autoSizeMax' => 50, 00524 'maxitems' => 20, 00525 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00526 'iconsInOptionTags' => 1, 00527 ) 00528 ), 00529 'tables_modify' => array( 00530 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_modify', 00531 'config' => array( 00532 'type' => 'select', 00533 'special' => 'tables', 00534 'size' => '5', 00535 'autoSizeMax' => 50, 00536 'maxitems' => 100, 00537 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00538 'iconsInOptionTags' => 1, 00539 ) 00540 ), 00541 'tables_select' => array( 00542 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.tables_select', 00543 'config' => array( 00544 'type' => 'select', 00545 'special' => 'tables', 00546 'size' => '5', 00547 'autoSizeMax' => 50, 00548 'maxitems' => 100, 00549 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00550 'iconsInOptionTags' => 1, 00551 ) 00552 ), 00553 'non_exclude_fields' => array( 00554 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.non_exclude_fields', 00555 'config' => array( 00556 'type' => 'select', 00557 'special' => 'exclude', 00558 'size' => '25', 00559 'maxitems' => 1000, 00560 'autoSizeMax' => 50, 00561 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00562 'itemListStyle' => 'width:500px', 00563 ) 00564 ), 00565 'explicit_allowdeny' => array( 00566 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.explicit_allowdeny', 00567 'config' => array( 00568 'type' => 'select', 00569 'special' => 'explicitValues', 00570 'maxitems' => 1000, 00571 'renderMode' => 'checkbox', 00572 ) 00573 ), 00574 'allowed_languages' => array( 00575 'label' => 'LLL:EXT:lang/locallang_tca.xml:allowed_languages', 00576 'config' => array( 00577 'type' => 'select', 00578 'special' => 'languages', 00579 'maxitems' => 1000, 00580 'renderMode' => 'checkbox', 00581 ) 00582 ), 00583 'custom_options' => array( 00584 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.custom_options', 00585 'config' => array( 00586 'type' => 'select', 00587 'special' => 'custom', 00588 'maxitems' => 1000, 00589 'renderMode' => 'checkbox', 00590 ) 00591 ), 00592 'hidden' => array( 00593 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable', 00594 'config' => array( 00595 'type' => 'check', 00596 'default' => '0' 00597 ) 00598 ), 00599 'lockToDomain' => array( 00600 'label' => 'LLL:EXT:lang/locallang_tca.xml:lockToDomain', 00601 'config' => array( 00602 'type' => 'input', 00603 'size' => '20', 00604 'eval' => 'trim', 00605 'max' => '50', 00606 'softref' => 'substitute' 00607 ) 00608 ), 00609 'groupMods' => array( 00610 'label' => 'LLL:EXT:lang/locallang_tca.xml:userMods', 00611 'config' => array( 00612 'type' => 'select', 00613 'special' => 'modListGroup', 00614 'size' => '5', 00615 'autoSizeMax' => 50, 00616 'maxitems' => 100, 00617 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'], 00618 'iconsInOptionTags' => 1, 00619 ) 00620 ), 00621 'inc_access_lists' => array( 00622 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.inc_access_lists', 00623 'config' => array( 00624 'type' => 'check', 00625 'default' => '0' 00626 ) 00627 ), 00628 'description' => array( 00629 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.description', 00630 'config' => array( 00631 'type' => 'text', 00632 'rows' => 5, 00633 'cols' => 30 00634 ) 00635 ), 00636 'TSconfig' => array( 00637 'label' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig', 00638 'config' => array( 00639 'type' => 'text', 00640 'cols' => '40', 00641 'rows' => '5', 00642 'wizards' => array( 00643 '_PADDING' => 4, 00644 '0' => array( 00645 'type' => t3lib_extMgm::isLoaded('tsconfig_help') ? 'popup' : '', 00646 'title' => 'LLL:EXT:lang/locallang_tca.xml:TSconfig_title', 00647 'script' => 'wizard_tsconfig.php?mode=beuser', 00648 'icon' => 'wizard_tsconfig.gif', 00649 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1', 00650 ) 00651 ), 00652 'softref' => 'TSconfig' 00653 ), 00654 'defaultExtras' => 'fixed-font : enable-tab', 00655 ), 00656 'hide_in_lists' => array( 00657 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.hide_in_lists', 00658 'config' => array( 00659 'type' => 'check', 00660 'default' => 0 00661 ) 00662 ), 00663 'subgroup' => array( 00664 'label' => 'LLL:EXT:lang/locallang_tca.xml:be_groups.subgroup', 00665 'config' => array( 00666 'type' => 'select', 00667 'foreign_table' => 'be_groups', 00668 'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title', 00669 'size' => '5', 00670 'autoSizeMax' => 50, 00671 'maxitems' => 20, 00672 'iconsInOptionTags' => 1, 00673 ) 00674 ) 00675 ), 00676 'types' => array( 00677 '0' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3, 00678 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.base_rights, inc_access_lists;;;;1-1-1, 00679 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, fileoper_perms, 00680 --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, 00681 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended' 00682 ), 00683 '1' => array('showitem' => 'hidden;;;;1-1-1, title;;;;2-2-2, description, subgroup;;;;3-3-3, 00684 --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, 00685 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, file_mountpoints;;;;3-3-3, fileoper_perms, 00686 --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, 00687 --div--;LLL:EXT:lang/locallang_tca.xml:be_groups.tabs.extended' 00688 ) 00689 ) 00690 ); 00691 00692 00693 /** 00694 * 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 00695 */ 00696 $TCA['sys_filemounts'] = array( 00697 'ctrl' => $TCA['sys_filemounts']['ctrl'], 00698 'interface' => array( 00699 'showRecordFieldList' => 'title,hidden,path,base' 00700 ), 00701 'columns' => array( 00702 'title' => array( 00703 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.title', 00704 'config' => array( 00705 'type' => 'input', 00706 'size' => '20', 00707 'max' => '30', 00708 'eval' => 'required,trim' 00709 ) 00710 ), 00711 'path' => array( 00712 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.path', 00713 'config' => array( 00714 'type' => 'input', 00715 'size' => '40', 00716 'max' => '120', 00717 'eval' => 'required,trim', 00718 'softref' => 'substitute' 00719 ) 00720 ), 00721 'hidden' => array( 00722 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable', 00723 'config' => array( 00724 'type' => 'check' 00725 ) 00726 ), 00727 'base' => array( 00728 'label' => 'LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base', 00729 'config' => array( 00730 'type' => 'radio', 00731 'items' => array( 00732 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_absolute', 0), 00733 array('LLL:EXT:lang/locallang_tca.xml:sys_filemounts.base_relative', 1) 00734 ), 00735 'default' => 0 00736 ) 00737 ) 00738 ), 00739 'types' => array( 00740 '0' => array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base') 00741 ) 00742 ); 00743 00744 00745 /** 00746 * System languages - Defines possible languages used for translation of records in the system 00747 */ 00748 $TCA['sys_language'] = array( 00749 'ctrl' => $TCA['sys_language']['ctrl'], 00750 'interface' => array( 00751 'showRecordFieldList' => 'hidden,title' 00752 ), 00753 'columns' => array( 00754 'title' => array( 00755 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language', 00756 'config' => array( 00757 'type' => 'input', 00758 'size' => '35', 00759 'max' => '80', 00760 'eval' => 'trim,required' 00761 ) 00762 ), 00763 'hidden' => array( 00764 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable', 00765 'exclude' => 1, 00766 'config' => array( 00767 'type' => 'check', 00768 'default' => '0' 00769 ) 00770 ), 00771 'static_lang_isocode' => array( 00772 'exclude' => 1, 00773 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode', 00774 'displayCond' => 'EXT:static_info_tables:LOADED:true', 00775 'config' => array( 00776 'type' => 'select', 00777 'items' => array( 00778 array('', 0), 00779 ), 00780 'foreign_table' => 'static_languages', 00781 'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en', 00782 'size' => 1, 00783 'minitems' => 0, 00784 'maxitems' => 1, 00785 ) 00786 ), 00787 'flag' => array( 00788 'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag', 00789 'config' => array( 00790 'type' => 'select', 00791 'items' => array( 00792 array('', 0, ''), 00793 ), 00794 'selicon_cols' => 16, 00795 'size' => 1, 00796 'minitems' => 0, 00797 'maxitems' => 1, 00798 ) 00799 ) 00800 ), 00801 'types' => array( 00802 '1' => array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag') 00803 ) 00804 ); 00805 00806 00807 /** 00808 * System News (displayed on Login screen) 00809 */ 00810 $TCA['sys_news'] = array( 00811 'ctrl' => $TCA['sys_news']['ctrl'], 00812 'interface' => array( 00813 'showRecordFieldList' => 'hidden,title,content,starttime,endtime' 00814 ), 00815 'columns' => array( 00816 'hidden' => array( 00817 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.disable', 00818 'exclude' => 1, 00819 'config' => array( 00820 'type' => 'check', 00821 'default' => '0' 00822 ) 00823 ), 00824 'starttime' => array( 00825 'exclude' => 1, 00826 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.starttime', 00827 'config' => array( 00828 'type' => 'input', 00829 'size' => '8', 00830 'max' => '20', 00831 'eval' => 'date', 00832 'default' => '0' 00833 ) 00834 ), 00835 'endtime' => array( 00836 'exclude' => 1, 00837 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.endtime', 00838 'config' => array( 00839 'type' => 'input', 00840 'size' => '8', 00841 'max' => '20', 00842 'eval' => 'date', 00843 'default' => '0' 00844 ) 00845 ), 00846 'title' => array( 00847 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.title', 00848 'config' => array( 00849 'type' => 'input', 00850 'size' => '30', 00851 'max' => '255', 00852 'eval' => 'required' 00853 ) 00854 ), 00855 'content' => array( 00856 'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.text', 00857 'config' => array( 00858 'type' => 'text', 00859 'cols' => '48', 00860 'rows' => '5', 00861 'wizards' => array( 00862 '_PADDING' => 4, 00863 '_VALIGN' => 'middle', 00864 'RTE' => array( 00865 'notNewRecords' => 1, 00866 'RTEonly' => 1, 00867 'type' => 'script', 00868 'title' => 'LLL:EXT:cms/locallang_ttc.php:bodytext.W.RTE', 00869 'icon' => 'wizard_rte2.gif', 00870 'script' => 'wizard_rte.php' 00871 ), 00872 ), 00873 ), 00874 ), 00875 ), 00876 'types' => array( 00877 '1' => array('showitem' => ' 00878 hidden, title, content;;9;richtext:rte_transform[flag=rte_enabled|mode=ts_css];3-3-3, 00879 --div--;LLL:EXT:lang/locallang_tca.xml:sys_news.tabs.access, starttime, endtime' 00880 ) 00881 ) 00882 ); 00883 00884 ?>
1.8.0