2d75939c26c89c1f02cfe967dce75cc3a94898ec
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / TCA / be_users.php
1 <?php
2 return array(
3 'ctrl' => array(
4 'label' => 'username',
5 'tstamp' => 'tstamp',
6 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users',
7 'crdate' => 'crdate',
8 'cruser_id' => 'cruser_id',
9 'delete' => 'deleted',
10 'adminOnly' => 1, // Only admin users can edit
11 'rootLevel' => 1,
12 'default_sortby' => 'ORDER BY admin, username',
13 'enablecolumns' => array(
14 'disabled' => 'disable',
15 'starttime' => 'starttime',
16 'endtime' => 'endtime'
17 ),
18 'type' => 'admin',
19 'typeicon_column' => 'admin',
20 'typeicons' => array(
21 '0' => 'be_users.gif',
22 '1' => 'be_users_admin.gif'
23 ),
24 'typeicon_classes' => array(
25 '0' => 'status-user-backend',
26 '1' => 'status-user-admin',
27 'default' => 'status-user-backend'
28 ),
29 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,file_permissions,userMods',
30 'versioningWS_alwaysAllowLiveEdit' => TRUE,
31 'searchFields' => 'username,email,realName'
32 ),
33 'interface' => array(
34 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,file_permissions,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
35 ),
36 'columns' => array(
37 'username' => array(
38 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.username',
39 'config' => array(
40 'type' => 'input',
41 'size' => '20',
42 'max' => '50',
43 'eval' => 'nospace,trim,lower,unique,required'
44 )
45 ),
46 'password' => array(
47 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.password',
48 'config' => array(
49 'type' => 'input',
50 'size' => '20',
51 'max' => '40',
52 'eval' => 'trim,required,md5,password'
53 )
54 ),
55 'usergroup' => array(
56 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup',
57 'config' => array(
58 'type' => 'select',
59 'foreign_table' => 'be_groups',
60 'foreign_table_where' => 'ORDER BY be_groups.title',
61 'size' => '5',
62 'maxitems' => '20',
63 'iconsInOptionTags' => 1,
64 'enableMultiSelectFilterTextfield' => TRUE,
65 'wizards' => array(
66 '_VERTICAL' => 1,
67 'edit' => array(
68 'type' => 'popup',
69 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_edit_title',
70 'module' => array(
71 'name' => 'wizard_edit',
72 ),
73 'popup_onlyOpenIfSelected' => 1,
74 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif',
75 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
76 ),
77 'add' => array(
78 'type' => 'script',
79 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_add_title',
80 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
81 'params' => array(
82 'table' => 'be_groups',
83 'pid' => '0',
84 'setValue' => 'prepend'
85 ),
86 'module' => array(
87 'name' => 'wizard_add'
88 )
89 ),
90 'list' => array(
91 'type' => 'script',
92 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_list_title',
93 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif',
94 'params' => array(
95 'table' => 'be_groups',
96 'pid' => '0'
97 ),
98 'module' => array(
99 'name' => 'wizard_list'
100 )
101 )
102 )
103 )
104 ),
105 'lockToDomain' => array(
106 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
107 'config' => array(
108 'type' => 'input',
109 'size' => '20',
110 'eval' => 'trim',
111 'max' => '50',
112 'softref' => 'substitute'
113 )
114 ),
115 'db_mountpoints' => array(
116 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts',
117 'config' => array(
118 'type' => 'group',
119 'internal_type' => 'db',
120 'allowed' => 'pages',
121 'size' => '3',
122 'maxitems' => 100,
123 'autoSizeMax' => 10,
124 'show_thumbs' => '1',
125 'wizards' => array(
126 'suggest' => array(
127 'type' => 'suggest'
128 )
129 )
130 )
131 ),
132 'file_mountpoints' => array(
133 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts',
134 'config' => array(
135 'type' => 'select',
136 'foreign_table' => 'sys_filemounts',
137 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
138 'size' => '3',
139 'maxitems' => 100,
140 'autoSizeMax' => 10,
141 'iconsInOptionTags' => 1,
142 'wizards' => array(
143 '_VERTICAL' => 1,
144 'edit' => array(
145 'type' => 'popup',
146 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
147 'module' => array(
148 'name' => 'wizard_edit',
149 ),
150 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif',
151 'popup_onlyOpenIfSelected' => 1,
152 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
153 ),
154 'add' => array(
155 'type' => 'script',
156 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
157 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
158 'params' => array(
159 'table' => 'sys_filemounts',
160 'pid' => '0',
161 'setValue' => 'prepend'
162 ),
163 'module' => array(
164 'name' => 'wizard_add'
165 )
166 ),
167 'list' => array(
168 'type' => 'script',
169 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
170 'icon' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif',
171 'params' => array(
172 'table' => 'sys_filemounts',
173 'pid' => '0'
174 ),
175 'module' => array(
176 'name' => 'wizard_list'
177 )
178 )
179 )
180 )
181 ),
182 'email' => array(
183 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
184 'config' => array(
185 'type' => 'input',
186 'size' => '20',
187 'eval' => 'trim',
188 'max' => '80',
189 'softref' => 'email[subst]'
190 )
191 ),
192 'realName' => array(
193 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
194 'config' => array(
195 'type' => 'input',
196 'size' => '20',
197 'eval' => 'trim',
198 'max' => '80'
199 )
200 ),
201 'disable' => array(
202 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
203 'config' => array(
204 'type' => 'check'
205 )
206 ),
207 'disableIPlock' => array(
208 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.disableIPlock',
209 'config' => array(
210 'type' => 'check'
211 )
212 ),
213 'admin' => array(
214 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.admin',
215 'config' => array(
216 'type' => 'check',
217 'default' => '0'
218 )
219 ),
220 'options' => array(
221 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options',
222 'config' => array(
223 'type' => 'check',
224 'items' => array(
225 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts', 0),
226 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts', 0)
227 ),
228 'default' => '3'
229 )
230 ),
231 'file_permissions' => array(
232 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms',
233 'config' => array(
234 'type' => 'select',
235 'items' => array(
236 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder', '--div--', 'apps-filetree-folder-default'),
237 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_read', 'readFolder', 'apps-filetree-folder-default'),
238 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_write', 'writeFolder', 'apps-filetree-folder-default'),
239 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_add', 'addFolder', 'apps-filetree-folder-default'),
240 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_rename', 'renameFolder', 'apps-filetree-folder-default'),
241 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_move', 'moveFolder', 'apps-filetree-folder-default'),
242 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_copy', 'copyFolder', 'apps-filetree-folder-default'),
243 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_delete', 'deleteFolder', 'apps-filetree-folder-default'),
244 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.folder_recursivedelete', 'recursivedeleteFolder', 'apps-filetree-folder-default'),
245 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files', '--div--', 'mimetypes-other-other'),
246 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_read', 'readFile', 'mimetypes-other-other'),
247 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_write', 'writeFile', 'mimetypes-other-other'),
248 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_add', 'addFile', 'mimetypes-other-other'),
249 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_rename', 'renameFile', 'mimetypes-other-other'),
250 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_move', 'moveFile', 'mimetypes-other-other'),
251 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_copy', 'copyFile', 'mimetypes-other-other'),
252 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.fileoper_perms_unzip', 'unzipFile', 'mimetypes-other-other'),
253 array('LLL:EXT:lang/locallang_tca.xlf:be_groups.file_permissions.files_delete', 'deleteFile', 'mimetypes-other-other')
254 ),
255 'renderMode' => 'checkbox',
256 'size' => 17,
257 'maxitems' => 17,
258 'default' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,moveFile,files_copy,deleteFile'
259 )
260 ),
261 'workspace_perms' => array(
262 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
263 'config' => array(
264 'type' => 'check',
265 'items' => array(
266 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
267 ),
268 'default' => 1
269 )
270 ),
271 'starttime' => array(
272 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
273 'config' => array(
274 'type' => 'input',
275 'size' => '13',
276 'eval' => 'datetime',
277 'default' => '0'
278 )
279 ),
280 'endtime' => array(
281 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
282 'config' => array(
283 'type' => 'input',
284 'size' => '13',
285 'eval' => 'datetime',
286 'default' => '0',
287 'range' => array(
288 'upper' => mktime(0, 0, 0, 1, 1, 2038)
289 )
290 )
291 ),
292 'lang' => array(
293 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.lang',
294 'config' => array(
295 'type' => 'select',
296 'items' => array(
297 array('English', '')
298 )
299 )
300 ),
301 'userMods' => array(
302 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
303 'config' => array(
304 'type' => 'select',
305 'special' => 'modListUser',
306 'size' => '5',
307 'autoSizeMax' => 50,
308 'maxitems' => '100',
309 'renderMode' => 'checkbox',
310 'iconsInOptionTags' => 1
311 )
312 ),
313 'allowed_languages' => array(
314 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
315 'config' => array(
316 'type' => 'select',
317 'special' => 'languages',
318 'maxitems' => '1000',
319 'renderMode' => 'checkbox'
320 )
321 ),
322 'TSconfig' => array(
323 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
324 'config' => array(
325 'type' => 'text',
326 'cols' => '40',
327 'rows' => '5',
328 'softref' => 'TSconfig'
329 ),
330 'defaultExtras' => 'fixed-font : enable-tab'
331 ),
332 'createdByAction' => array(
333 'config' => array(
334 'type' => 'passthrough'
335 )
336 ),
337 'lastlogin' => array(
338 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
339 'config' => array(
340 'type' => 'input',
341 'readOnly' => '1',
342 'size' => '12',
343 'eval' => 'datetime',
344 'default' => 0
345 )
346 ),
347 'category_perms' => array(
348 'label' => 'LLL:EXT:lang/locallang_tca.xlf:category_perms',
349 'config' => array(
350 'type' => 'select',
351 'foreign_table' => 'sys_category',
352 'foreign_table_where' => ' AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting',
353 'renderMode' => 'tree',
354 'treeConfig' => array(
355 'parentField' => 'parent',
356 'appearance' => array(
357 'expandAll' => FALSE,
358 'showHeader' => FALSE,
359 'maxLevels' => 99,
360 ),
361 ),
362 'size' => 10,
363 'autoSizeMax' => 20,
364 'minitems' => 0,
365 'maxitems' => 9999
366 )
367 )
368 ),
369 'types' => array(
370 '0' => array('showitem' => 'disable, username, password, usergroup, admin, realName, email, lang, lastlogin,
371 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.rights, userMods, allowed_languages,
372 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces, workspace_perms, db_mountpoints, options, file_mountpoints, file_permissions, category_perms,
373 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, lockToDomain, disableIPlock, TSconfig,
374 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime,endtime,
375 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended'),
376 '1' => array('showitem' => 'disable, username, password, usergroup, admin, realName, email, lang, lastlogin,
377 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, disableIPlock, TSconfig, db_mountpoints, options, file_mountpoints,
378 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime,endtime,
379 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended')
380 )
381 );