Documentation TYPO3 par Ameos |
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 1999-2005 Kasper Skaarhoj (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 ***************************************************************/ 00058 $PAGES_TYPES = Array( 00059 '254' => Array( // Doktype 254 is a 'sysFolder' - a general purpose storage folder for whatever you like. In CMS context it's NOT a viewable page. Can contain any element. 00060 'type' => 'sys', 00061 'icon' => 'sysf.gif', 00062 'allowedTables' => '*' 00063 ), 00064 '255' => Array( // Doktype 255 is a recycle-bin. 00065 'type' => 'sys', 00066 'icon' => 'recycler.gif', 00067 'allowedTables' => '*' 00068 ), 00069 'default' => Array( 00070 'type' => 'web', 00071 'icon' => 'pages.gif', 00072 'allowedTables' => 'pages', 00073 'onlyAllowedTables' => '0' 00074 ) 00075 ); 00076 00077 00085 $ICON_TYPES = Array(); 00086 00087 00094 $LANG_GENERAL_LABELS = array( 00095 'endtime' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime', 00096 'hidden' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden', 00097 'starttime' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime', 00098 'fe_group' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group', 00099 'hide_at_login' => 'LLL:EXT:lang/locallang_general.php:LGL.hide_at_login', 00100 'any_login' => 'LLL:EXT:lang/locallang_general.php:LGL.any_login', 00101 'usergroups' => 'LLL:EXT:lang/locallang_general.php:LGL.usergroups', 00102 ); 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00128 $TCA = array(); 00129 00136 $TCA['pages'] = Array ( 00137 'ctrl' => Array ( 00138 'label' => 'title', 00139 'tstamp' => 'tstamp', 00140 'sortby' => 'sorting', 00141 'title' => 'LLL:EXT:lang/locallang_tca.php:pages', 00142 'type' => 'doktype', 00143 'versioning' => TRUE, 00144 'delete' => 'deleted', 00145 'crdate' => 'crdate', 00146 'hideAtCopy' => 1, 00147 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy', 00148 'cruser_id' => 'cruser_id', 00149 'editlock' => 'editlock', 00150 'useColumnsForDefaultValues' => 'doktype' 00151 ), 00152 'interface' => Array ( 00153 'showRecordFieldList' => 'doktype,title', 00154 'maxDBListItems' => 30, 00155 'maxSingleDBListItems' => 50 00156 ), 00157 'columns' => Array ( 00158 'doktype' => Array ( 00159 'exclude' => 1, 00160 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type', 00161 'config' => Array ( 00162 'type' => 'select', 00163 'items' => Array ( 00164 Array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1'), 00165 Array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254'), 00166 Array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255') 00167 ), 00168 'default' => '1' 00169 ) 00170 ), 00171 'title' => Array ( 00172 'label' => 'LLL:EXT:lang/locallang_tca.php:title', 00173 'config' => Array ( 00174 'type' => 'input', 00175 'size' => '30', 00176 'max' => '256', 00177 'eval' => 'required' 00178 ) 00179 ), 00180 'TSconfig' => Array ( 00181 'exclude' => 1, 00182 'label' => 'TSconfig:', 00183 'config' => Array ( 00184 'type' => 'text', 00185 'cols' => '40', 00186 'rows' => '5', 00187 'wizards' => Array( 00188 '_PADDING' => 4, 00189 '0' => Array( 00190 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'', 00191 'title' => 'TSconfig QuickReference', 00192 'script' => 'wizard_tsconfig.php?mode=page', 00193 'icon' => 'wizard_tsconfig.gif', 00194 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1', 00195 ) 00196 ), 00197 'softref' => 'TSconfig' 00198 ) 00199 ), 00200 'php_tree_stop' => Array ( 00201 'exclude' => 1, 00202 'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop', 00203 'config' => Array ( 00204 'type' => 'check' 00205 ) 00206 ), 00207 'is_siteroot' => Array ( 00208 'exclude' => 1, 00209 'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot', 00210 'config' => Array ( 00211 'type' => 'check' 00212 ) 00213 ), 00214 'storage_pid' => Array ( 00215 'exclude' => 1, 00216 'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid', 00217 'config' => Array ( 00218 'type' => 'group', 00219 'internal_type' => 'db', 00220 'allowed' => 'pages', 00221 'size' => '1', 00222 'maxitems' => '1', 00223 'minitems' => '0', 00224 'show_thumbs' => '1' 00225 ) 00226 ), 00227 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')), 00228 't3ver_label' => Array ( 00229 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel', 00230 'config' => Array ( 00231 'type' => 'input', 00232 'size' => '30', 00233 'max' => '30', 00234 ) 00235 ), 00236 'editlock' => Array ( 00237 'exclude' => 1, 00238 'label' => 'LLL:EXT:lang/locallang_tca.php:editlock', 00239 'config' => Array ( 00240 'type' => 'check' 00241 ) 00242 ), 00243 ), 00244 'types' => Array ( 00245 '1' => Array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'), 00246 '254' => Array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'), 00247 '255' => Array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7') 00248 ), 00249 'palettes' => Array ( 00250 '6' => Array('showitem' => 'php_tree_stop, editlock'), 00251 '7' => Array('showitem' => 'is_siteroot') 00252 ) 00253 ); 00254 00260 $TCA['be_users'] = Array ( 00261 'ctrl' => Array ( 00262 'label' => 'username', 00263 'tstamp' => 'tstamp', 00264 'title' => 'LLL:EXT:lang/locallang_tca.php:be_users', 00265 'crdate' => 'crdate', 00266 'cruser_id' => 'cruser_id', 00267 'delete' => 'deleted', 00268 'adminOnly' => 1, // Only admin users can edit 00269 'rootLevel' => 1, 00270 'default_sortby' => 'ORDER BY admin, username', 00271 'enablecolumns' => Array ( 00272 'disabled' => 'disable', 00273 'starttime' => 'starttime', 00274 'endtime' => 'endtime' 00275 ), 00276 'type' => 'admin', 00277 'typeicon_column' => 'admin', 00278 'typeicons' => Array ( 00279 '0' => 'be_users.gif', 00280 '1' => 'be_users_admin.gif' 00281 ), 00282 'mainpalette' => '1', 00283 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods', 00284 'dynamicConfigFile' => 'T3LIB:tbl_be.php' 00285 ) 00286 ); 00287 00293 $TCA['be_groups'] = Array ( 00294 'ctrl' => Array ( 00295 'label' => 'title', 00296 'tstamp' => 'tstamp', 00297 'crdate' => 'crdate', 00298 'cruser_id' => 'cruser_id', 00299 'delete' => 'deleted', 00300 'default_sortby' => 'ORDER BY title', 00301 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy', 00302 'adminOnly' => 1, 00303 'rootLevel' => 1, 00304 'type' => 'inc_access_lists', 00305 'typeicon_column' => 'inc_access_lists', 00306 'typeicons' => Array ( 00307 '1' => 'be_groups_lists.gif' 00308 ), 00309 'enablecolumns' => Array ( 00310 'disabled' => 'hidden' 00311 ), 00312 'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups', 00313 'useColumnsForDefaultValues' => 'lockToDomain', 00314 'dynamicConfigFile' => 'T3LIB:tbl_be.php' 00315 ) 00316 ); 00317 00323 $TCA['sys_filemounts'] = Array ( 00324 'ctrl' => Array ( 00325 'label' => 'title', 00326 'tstamp' => 'tstamp', 00327 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy', 00328 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts', 00329 'adminOnly' => 1, 00330 'rootLevel' => 1, 00331 'delete' => 'deleted', 00332 'enablecolumns' => Array ( 00333 'disabled' => 'hidden' 00334 ), 00335 'iconfile' => '_icon_ftp.gif', 00336 'useColumnsForDefaultValues' => 'path,base', 00337 'dynamicConfigFile' => 'T3LIB:tbl_be.php' 00338 ) 00339 ); 00340 00346 $TCA['sys_language'] = Array ( 00347 'ctrl' => Array ( 00348 'label' => 'title', 00349 'tstamp' => 'tstamp', 00350 'default_sortby' => 'ORDER BY title', 00351 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_language', 00352 'adminOnly' => 1, 00353 'rootLevel' => 1, 00354 'enablecolumns' => Array ( 00355 'disabled' => 'hidden' 00356 ), 00357 'dynamicConfigFile' => 'T3LIB:tbl_be.php' 00358 ) 00359 ); 00360 00361 00362 00363 00364 00365 00366 00367 00368 00369 00370 00371 00377 $TBE_MODULES = Array ( 00378 'web' => 'list,info,perm,func', 00379 'file' => 'list', 00380 'doc' => '', // This should always be empty! 00381 'user' => '', 00382 'tools' => 'em', 00383 'help' => 'about,cshmanual' 00384 ); 00385 00386 00391 $TBE_STYLES = array( 00392 'colorschemes' => Array ( 00393 '0' => '#E4E0DB,#CBC7C3,#EDE9E5', 00394 ), 00395 'borderschemes' => Array ( 00396 '0' => array('border:solid 1px black;',5) 00397 ) 00398 ); 00399 00400 00405 t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml'); 00406 t3lib_extMgm::addLLrefForTCAdescr('be_users','EXT:lang/locallang_csh_be_users.xml'); 00407 t3lib_extMgm::addLLrefForTCAdescr('be_groups','EXT:lang/locallang_csh_be_groups.xml'); 00408 t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts','EXT:lang/locallang_csh_sysfilem.xml'); 00409 t3lib_extMgm::addLLrefForTCAdescr('sys_language','EXT:lang/locallang_csh_syslang.xml'); 00410 t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe','EXT:lang/locallang_csh_corebe.xml'); // General Core 00411 t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em','EXT:lang/locallang_csh_em.xml'); // Extension manager 00412 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:lang/locallang_csh_web_info.xml'); // Web > Info 00413 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func','EXT:lang/locallang_csh_web_func.xml'); // Web > Func 00414 00415 00419 $FILEICONS = Array ( 00420 'txt' => 'txt.gif', 00421 'pdf' => 'pdf.gif', 00422 'doc' => 'doc.gif', 00423 'ai' => 'ai.gif', 00424 'bmp' => 'bmp.gif', 00425 'tif' => 'tif.gif', 00426 'htm' => 'htm.gif', 00427 'html' => 'html.gif', 00428 'pcd' => 'pcd.gif', 00429 'gif' => 'gif.gif', 00430 'jpg' => 'jpg.gif', 00431 'jpeg' => 'jpg.gif', 00432 'mpg' => 'mpg.gif', 00433 'mpeg' => 'mpeg.gif', 00434 'exe' => 'exe.gif', 00435 'com' => 'exe.gif', 00436 'zip' => 'zip.gif', 00437 'tgz' => 'zip.gif', 00438 'gz' => 'zip.gif', 00439 'php3' => 'php3.gif', 00440 'php' => 'php3.gif', 00441 'ttf' => 'ttf.gif', 00442 'pcx' => 'pcx.gif', 00443 'png' => 'png.gif', 00444 'tga' => 'tga.gif', 00445 'class' => 'java.gif', 00446 'sxc' => 'sxc.gif', 00447 'sxw' => 'sxw.gif', 00448 'xls' => 'xls.gif', 00449 'swf' => 'swf.gif', 00450 'swa' => 'flash.gif', 00451 'dcr' => 'flash.gif', 00452 'wav' => 'wav.gif', 00453 'mp3' => 'wav.gif', 00454 'avi' => 'avi.gif', 00455 'au' => 'au.gif', 00456 'mov' => 'mov.gif', 00457 '3ds' => '3ds.gif', 00458 'csv' => 'csv.gif', 00459 'ico' => 'ico.gif', 00460 'max' => 'max.gif', 00461 'ps' => 'ps.gif', 00462 'tmpl' => 'tmpl.gif', 00463 'xls' => 'xls.gif', 00464 'fh3' => 'fh3.gif', 00465 'inc' => 'inc.gif', 00466 'mid' => 'mid.gif', 00467 'psd' => 'psd.gif', 00468 'xml' => 'xml.gif', 00469 'rtf' => 'rtf.gif', 00470 't3x' => 't3x.gif', 00471 't3d' => 't3d.gif', 00472 'cdr' => 'cdr.gif', 00473 'dtd' => 'dtd.gif', 00474 'sgml' => 'sgml.gif', 00475 'ani' => 'ani.gif', 00476 'css' => 'css.gif', 00477 'eps' => 'eps.gif', 00478 'js' => 'js.gif', 00479 'wrl' => 'wrl.gif', 00480 'default' => 'default.gif' 00481 ); 00482 00483 00484 00485 00486 ?>