TYPO3 CMS  TYPO3_6-2
compatibility.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 // If the compat version is less than 4.2, pagetype 2 ("Advanced")
5 // and pagetype 5 ("Not in menu") are added to TCA.
6 if (!\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('4.2')) {
7  // Merging in CMS doktypes
8  array_splice($GLOBALS['TCA']['pages']['columns']['doktype']['config']['items'], 2, 0, array(
9  array(
10  'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.0',
11  '2',
12  'i/pages.gif'
13  ),
14  array(
15  'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.3',
16  '5',
17  'i/pages_notinmenu.gif'
18  )
19  ));
20  // Set the doktype 1 ("Standard") to show less fields
21  $GLOBALS['TCA']['pages']['types'][1] = array(
22  // standard
23  'showitem' => 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle,
24  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
25  starttime, endtime, fe_group, extendToSubpages,
26  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.options,
27  TSconfig;;6;nowrap;4-4-4, storage_pid;;7, l18n_cfg, backend_layout;;8,
28  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
29  '
30  );
31  // Add doktype 2 ("Advanced")
32  $GLOBALS['TCA']['pages']['types'][2] = array(
33  'showitem' => 'doktype;;2;;1-1-1, hidden, nav_hide, title;;3;;2-2-2, subtitle, nav_title,
34  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.metadata,
35  abstract;;5;;3-3-3, keywords, description,
36  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.files,
37  media,
38  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
39  starttime, endtime, fe_login_mode, fe_group, extendToSubpages,
40  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.options,
41  TSconfig;;6;nowrap;6-6-6, storage_pid;;7, l18n_cfg, module, content_from_pid, backend_layout;;8,
42  --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.extended,
43  '
44  );
45 }
46 
47 // Keep old code (pre-FAL) for installations that haven't upgraded yet. please remove this code in TYPO3 6.2
48 // @deprecated since TYPO3 6.0, please remove at earliest in TYPO3 6.2
49 if (
50  (
51  !isset($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['TYPO3\\CMS\\Install\\Updates\\TceformsUpdateWizard'])
52  || !\TYPO3\CMS\Core\Utility\GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['TYPO3\\CMS\\Install\\Updates\\TceformsUpdateWizard'], 'pages:media')
53  )
54  && !\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('6.0')
55 ) {
57  'This installation hasn\'t been migrated to FAL for the field $GLOBALS[TCA][pages][columns][media] yet. Please do so before TYPO3 v7.'
58  );
59  // existing installation and no upgrade wizard was executed - and files haven't been merged: use the old code
60  $GLOBALS['TCA']['pages']['columns']['media']['config'] = array(
61  'type' => 'group',
62  'internal_type' => 'file',
63  'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . ',html,htm,ttf,txt,css',
64  'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
65  'uploadfolder' => 'uploads/media',
66  'show_thumbs' => '1',
67  'size' => '3',
68  'maxitems' => '100',
69  'minitems' => '0'
70  );
71 }
die
Definition: index.php:6
if(isset($ajaxID)) if(in_array( $ajaxID, $noUserAjaxIDs))
Re-apply pairs of single-quotes to the text.
Definition: ajax.php:40
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]