7137c0fa930e32e457cbf17ec8cd253f8c8efbd1
[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 'mainpalette' => '1',
30 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods',
31 'dividers2tabs' => TRUE,
32 'versioningWS_alwaysAllowLiveEdit' => TRUE,
33 'searchFields' => 'username,email,realName'
34 ),
35 'interface' => array(
36 'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime,lastlogin'
37 ),
38 'columns' => array(
39 'username' => array(
40 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.username',
41 'config' => array(
42 'type' => 'input',
43 'size' => '20',
44 'max' => '50',
45 'eval' => 'nospace,lower,unique,required'
46 )
47 ),
48 'password' => array(
49 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.password',
50 'config' => array(
51 'type' => 'input',
52 'size' => '20',
53 'max' => '40',
54 'eval' => 'required,md5,password'
55 )
56 ),
57 'usergroup' => array(
58 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup',
59 'config' => array(
60 'type' => 'select',
61 'foreign_table' => 'be_groups',
62 'foreign_table_where' => 'ORDER BY be_groups.title',
63 'size' => '5',
64 'maxitems' => '20',
65 'iconsInOptionTags' => 1,
66 'wizards' => array(
67 '_PADDING' => 1,
68 '_VERTICAL' => 1,
69 'edit' => array(
70 'type' => 'popup',
71 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_edit_title',
72 'script' => 'wizard_edit.php',
73 'popup_onlyOpenIfSelected' => 1,
74 'icon' => 'edit2.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' => 'add.gif',
81 'params' => array(
82 'table' => 'be_groups',
83 'pid' => '0',
84 'setValue' => 'prepend'
85 ),
86 'script' => 'wizard_add.php'
87 ),
88 'list' => array(
89 'type' => 'script',
90 'title' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup_list_title',
91 'icon' => 'list.gif',
92 'params' => array(
93 'table' => 'be_groups',
94 'pid' => '0'
95 ),
96 'script' => 'wizard_list.php'
97 )
98 )
99 )
100 ),
101 'lockToDomain' => array(
102 'label' => 'LLL:EXT:lang/locallang_tca.xlf:lockToDomain',
103 'config' => array(
104 'type' => 'input',
105 'size' => '20',
106 'eval' => 'trim',
107 'max' => '50',
108 'softref' => 'substitute'
109 )
110 ),
111 'db_mountpoints' => array(
112 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts',
113 'config' => array(
114 'type' => 'group',
115 'internal_type' => 'db',
116 'allowed' => 'pages',
117 'size' => '3',
118 'maxitems' => 25,
119 'autoSizeMax' => 10,
120 'show_thumbs' => '1',
121 'wizards' => array(
122 'suggest' => array(
123 'type' => 'suggest'
124 )
125 )
126 )
127 ),
128 'file_mountpoints' => array(
129 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts',
130 'config' => array(
131 'type' => 'select',
132 'foreign_table' => 'sys_filemounts',
133 'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
134 'size' => '3',
135 'maxitems' => 25,
136 'autoSizeMax' => 10,
137 'iconsInOptionTags' => 1,
138 'wizards' => array(
139 '_PADDING' => 1,
140 '_VERTICAL' => 1,
141 'edit' => array(
142 'type' => 'popup',
143 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_edit_title',
144 'script' => 'wizard_edit.php',
145 'icon' => 'edit2.gif',
146 'popup_onlyOpenIfSelected' => 1,
147 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1'
148 ),
149 'add' => array(
150 'type' => 'script',
151 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_add_title',
152 'icon' => 'add.gif',
153 'params' => array(
154 'table' => 'sys_filemounts',
155 'pid' => '0',
156 'setValue' => 'prepend'
157 ),
158 'script' => 'wizard_add.php'
159 ),
160 'list' => array(
161 'type' => 'script',
162 'title' => 'LLL:EXT:lang/locallang_tca.xlf:file_mountpoints_list_title',
163 'icon' => 'list.gif',
164 'params' => array(
165 'table' => 'sys_filemounts',
166 'pid' => '0'
167 ),
168 'script' => 'wizard_list.php'
169 )
170 )
171 )
172 ),
173 'email' => array(
174 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.email',
175 'config' => array(
176 'type' => 'input',
177 'size' => '20',
178 'eval' => 'trim',
179 'max' => '80',
180 'softref' => 'email[subst]'
181 )
182 ),
183 'realName' => array(
184 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.name',
185 'config' => array(
186 'type' => 'input',
187 'size' => '20',
188 'eval' => 'trim',
189 'max' => '80'
190 )
191 ),
192 'disable' => array(
193 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.disable',
194 'config' => array(
195 'type' => 'check'
196 )
197 ),
198 'disableIPlock' => array(
199 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.disableIPlock',
200 'config' => array(
201 'type' => 'check'
202 )
203 ),
204 'admin' => array(
205 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.admin',
206 'config' => array(
207 'type' => 'check',
208 'default' => '0'
209 )
210 ),
211 'options' => array(
212 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.options',
213 'config' => array(
214 'type' => 'check',
215 'items' => array(
216 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_db_mounts', 0),
217 array('LLL:EXT:lang/locallang_tca.xlf:be_users.options_file_mounts', 0)
218 ),
219 'default' => '3'
220 )
221 ),
222 'fileoper_perms' => array(
223 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.fileoper_perms',
224 'config' => array(
225 'type' => 'check',
226 'items' => array(
227 array('LLL:EXT:lang/locallang_tca.xlf:be_users.fileoper_perms_general', 0),
228 array('LLL:EXT:lang/locallang_tca.xlf:be_users.fileoper_perms_unzip', 0),
229 array('LLL:EXT:lang/locallang_tca.xlf:be_users.fileoper_perms_diroper_perms', 0),
230 array('LLL:EXT:lang/locallang_tca.xlf:be_users.fileoper_perms_diroper_perms_copy', 0),
231 array('LLL:EXT:lang/locallang_tca.xlf:be_users.fileoper_perms_diroper_perms_delete', 0)
232 ),
233 'default' => '0'
234 )
235 ),
236 'workspace_perms' => array(
237 'label' => 'LLL:EXT:lang/locallang_tca.xlf:workspace_perms',
238 'config' => array(
239 'type' => 'check',
240 'items' => array(
241 array('LLL:EXT:lang/locallang_tca.xlf:workspace_perms_live', 0)
242 ),
243 'default' => 1
244 )
245 ),
246 'starttime' => array(
247 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
248 'config' => array(
249 'type' => 'input',
250 'size' => '13',
251 'max' => '20',
252 'eval' => 'datetime',
253 'default' => '0'
254 )
255 ),
256 'endtime' => array(
257 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
258 'config' => array(
259 'type' => 'input',
260 'size' => '13',
261 'max' => '20',
262 'eval' => 'datetime',
263 'default' => '0',
264 'range' => array(
265 'upper' => mktime(0, 0, 0, 1, 1, 2038)
266 )
267 )
268 ),
269 'lang' => array(
270 'label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.lang',
271 'config' => array(
272 'type' => 'select',
273 'items' => array(
274 array('English', '')
275 )
276 )
277 ),
278 'userMods' => array(
279 'label' => 'LLL:EXT:lang/locallang_tca.xlf:userMods',
280 'config' => array(
281 'type' => 'select',
282 'special' => 'modListUser',
283 'size' => '5',
284 'autoSizeMax' => 50,
285 'maxitems' => '100',
286 'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
287 'iconsInOptionTags' => 1
288 )
289 ),
290 'allowed_languages' => array(
291 'label' => 'LLL:EXT:lang/locallang_tca.xlf:allowed_languages',
292 'config' => array(
293 'type' => 'select',
294 'special' => 'languages',
295 'maxitems' => '1000',
296 'renderMode' => 'checkbox'
297 )
298 ),
299 'TSconfig' => array(
300 'label' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig',
301 'config' => array(
302 'type' => 'text',
303 'cols' => '40',
304 'rows' => '5',
305 'wizards' => array(
306 '_PADDING' => 4,
307 '0' => array(
308 'type' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tsconfig_help') ? 'popup' : '',
309 'title' => 'LLL:EXT:lang/locallang_tca.xlf:TSconfig_title',
310 'script' => 'wizard_tsconfig.php?mode=beuser',
311 'icon' => 'wizard_tsconfig.gif',
312 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1'
313 )
314 ),
315 'softref' => 'TSconfig'
316 ),
317 'defaultExtras' => 'fixed-font : enable-tab'
318 ),
319 'createdByAction' => array(
320 'config' => array(
321 'type' => 'passthrough'
322 )
323 ),
324 'lastlogin' => array(
325 'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.lastlogin',
326 'config' => array(
327 'type' => 'input',
328 'readOnly' => '1',
329 'size' => '12',
330 'eval' => 'datetime',
331 'default' => 0
332 )
333 )
334 ),
335 'types' => array(
336 '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,
337 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.rights, userMods;;;;2-2-2, allowed_languages,
338 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.mounts_and_workspaces, workspace_perms;;;;1-1-1, db_mountpoints;;;;2-2-2, options, file_mountpoints;;;;3-3-3, fileoper_perms,
339 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, lockToDomain;;;;1-1-1, disableIPlock, TSconfig;;;;2-2-2,
340 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime;;;;1-1-1,endtime,
341 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended'),
342 '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,
343 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.options, disableIPlock;;;;1-1-1, TSconfig;;;;2-2-2, db_mountpoints;;;;3-3-3, options, file_mountpoints;;;;4-4-4,
344 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.access, starttime;;;;1-1-1,endtime,
345 --div--;LLL:EXT:lang/locallang_tca.xlf:be_users.tabs.extended')
346 )
347 );
348 ?>