[!!!][TASK] Move EXT:info_pagetsconfig into EXT:info 32/53532/9
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 16 Jul 2017 14:13:49 +0000 (16:13 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 2 Oct 2017 11:32:12 +0000 (13:32 +0200)
Migrate the extension info_pagetsconfig into the extension
info where also all other controllers are.

Resolves: #82505
Releases: master
Change-Id: I916d2ef6c00f6a5fa2cfca9c6b3f340aa4aefb44
Reviewed-on: https://review.typo3.org/53532
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
34 files changed:
composer.json
composer.lock
typo3/sysext/core/Documentation/Changelog/master/Breaking-82505-MergedEXTinfo_pagetsconfigToEXTinfo.rst [new file with mode: 0644]
typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php [new file with mode: 0644]
typo3/sysext/info/Migrations/Code/ClassAliasMap.php
typo3/sysext/info/Migrations/Code/LegacyClassesForIde.php
typo3/sysext/info/Resources/Private/Language/InfoPageTsConfig.xlf [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Language/locallang_csh_tsconfigInfo.xlf [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Partials/PageTsConfig/EditIcon.html [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Partials/PageTsConfig/Menu.html [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Partials/PageTsConfig/Page.html [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Partials/PageTsConfig/PageZero.html [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Partials/PageTsConfig/PageZeroTableRow.html [new file with mode: 0644]
typo3/sysext/info/Resources/Private/Templates/PageTsConfig.html [new file with mode: 0644]
typo3/sysext/info/ext_tables.php
typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php [deleted file]
typo3/sysext/info_pagetsconfig/LICENSE.txt [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Language/locallang.xlf [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Language/locallang_csh_webinfo.xlf [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Partials/EditIcon.html [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Menu.html [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Partials/PageZero.html [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Partials/PageZeroTableRow.html [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Private/Templates/Main.html [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Public/Icons/Extension.png [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_1.png [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_2.png [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_3.png [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_4.png [deleted file]
typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_5.png [deleted file]
typo3/sysext/info_pagetsconfig/composer.json [deleted file]
typo3/sysext/info_pagetsconfig/ext_emconf.php [deleted file]
typo3/sysext/info_pagetsconfig/ext_tables.php [deleted file]

index e3ae34b..bdc14fb 100644 (file)
                "typo3/cms-impexp": "self.version",
                "typo3/cms-indexed-search": "self.version",
                "typo3/cms-info": "self.version",
-               "typo3/cms-info-pagetsconfig": "self.version",
                "typo3/cms-install": "self.version",
                "typo3/cms-lang": "self.version",
                "typo3/cms-linkvalidator": "self.version",
                        "TYPO3\\CMS\\Impexp\\": "typo3/sysext/impexp/Classes/",
                        "TYPO3\\CMS\\IndexedSearch\\": "typo3/sysext/indexed_search/Classes/",
                        "TYPO3\\CMS\\Info\\": "typo3/sysext/info/Classes/",
-                       "TYPO3\\CMS\\InfoPagetsconfig\\": "typo3/sysext/info_pagetsconfig/Classes/",
                        "TYPO3\\CMS\\Install\\": "typo3/sysext/install/Classes/",
                        "TYPO3\\CMS\\Lang\\": "typo3/sysext/lang/Classes/",
                        "TYPO3\\CMS\\Linkvalidator\\": "typo3/sysext/linkvalidator/Classes/",
index 105f18d..7030323 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "content-hash": "b054fb89baff8fbce0b4822829f871f3",
+    "content-hash": "c4f44e0a5b85cfeaec793167eb75853c",
     "packages": [
         {
             "name": "cogpowered/finediff",
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-82505-MergedEXTinfo_pagetsconfigToEXTinfo.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-82505-MergedEXTinfo_pagetsconfigToEXTinfo.rst
new file mode 100644 (file)
index 0000000..15b1838
--- /dev/null
@@ -0,0 +1,33 @@
+.. include:: ../../Includes.txt
+
+===========================================================
+Breaking: #82505 - Merged EXT:info_pagetsconfig to EXT:info
+===========================================================
+
+See :issue:`82505`
+
+Description
+===========
+
+The extension `info_pagetsconfig` has been merged into the extension `info`.
+
+
+Impact
+======
+
+The extension `info` now contains the `PageTSconfig` analysis as well, without the possibility to disable this submodule
+function on a per-system functionality.
+
+
+Affected Installations
+======================
+
+Installations with extensions with checks for extension `info_pagetsconfig` being installed.
+
+
+Migration
+=========
+
+Change the extensions to check for `info` instead of `info_pagetsconfig`.
+
+.. index:: Backend, NotScanned
diff --git a/typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php b/typo3/sysext/info/Classes/Controller/InfoPageTyposcriptConfigController.php
new file mode 100644 (file)
index 0000000..9ad52de
--- /dev/null
@@ -0,0 +1,393 @@
+<?php
+namespace TYPO3\CMS\Info\Controller;
+
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Database\ConnectionPool;
+use TYPO3\CMS\Core\Database\Query\Restriction\BackendWorkspaceRestriction;
+use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
+use TYPO3\CMS\Core\Imaging\Icon;
+use TYPO3\CMS\Core\Imaging\IconFactory;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Core\Utility\MathUtility;
+use TYPO3\CMS\Fluid\View\StandaloneView;
+
+/**
+ * Page TSconfig viewer
+ */
+class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\AbstractFunctionModule
+{
+    /**
+     * @var IconFactory
+     */
+    protected $iconFactory;
+
+    /**
+     * @var StandaloneView
+     */
+    protected $view;
+
+    /**
+     * Constructor
+     */
+    public function __construct()
+    {
+        $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
+        $this->getLanguageService()->includeLLFile('EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf');
+
+        $this->view = $this->getFluidTemplateObject();
+    }
+
+    /**
+     * Function menu initialization
+     *
+     * @return array Menu array
+     */
+    public function modMenu()
+    {
+        $lang = $this->getLanguageService();
+        $modMenuAdd = [
+            'tsconf_parts' => [
+                0 => $lang->getLL('tsconf_parts_0'),
+                1 => $lang->getLL('tsconf_parts_1'),
+                '1a' => $lang->getLL('tsconf_parts_1a'),
+                '1b' => $lang->getLL('tsconf_parts_1b'),
+                '1c' => $lang->getLL('tsconf_parts_1c'),
+                '1d' => $lang->getLL('tsconf_parts_1d'),
+                '1e' => $lang->getLL('tsconf_parts_1e'),
+                '1f' => $lang->getLL('tsconf_parts_1f'),
+                '1g' => $lang->getLL('tsconf_parts_1g'),
+                2 => 'RTE.',
+                5 => 'TCEFORM.',
+                6 => 'TCEMAIN.',
+                3 => 'TSFE.',
+                4 => 'user.',
+                99 => $lang->getLL('tsconf_configFields')
+            ],
+            'tsconf_alphaSort' => '1'
+        ];
+        if (!$this->getBackendUser()->isAdmin()) {
+            unset($modMenuAdd['tsconf_parts'][99]);
+        }
+        return $modMenuAdd;
+    }
+
+    /**
+     * Main function of class
+     *
+     * @return string HTML output
+     */
+    public function main()
+    {
+        $pageId = (int)(GeneralUtility::_GP('id'));
+
+        if ($pageId === 0) {
+            $this->view->assign('pageZero', 1);
+            $pagesUsingTSConfig = $this->getOverviewOfPagesUsingTSConfig();
+            if (count($pagesUsingTSConfig) > 0) {
+                $this->view->assign('overviewOfPagesUsingTSConfig', $pagesUsingTSConfig);
+            }
+        } else {
+            if ($this->pObj->MOD_SETTINGS['tsconf_parts'] == 99) {
+                $TSparts = BackendUtility::getPagesTSconfig($this->pObj->id, null, true);
+                $lines = [];
+                $pUids = [];
+
+                foreach ($TSparts as $k => $v) {
+                    if ($k !== 'uid_0') {
+                        $line = [];
+                        if ($k === 'defaultPageTSconfig') {
+                            $line['defaultPageTSconfig'] = 1;
+                        } else {
+                            $editIdList = substr($k, 4);
+                            $pUids[] = $editIdList;
+                            $row = BackendUtility::getRecordWSOL('pages', $editIdList);
+
+                            $icon = $this->iconFactory->getIconForRecord('pages', $row, Icon::SIZE_SMALL);
+                            $urlParameters = [
+                                'edit' => [
+                                    'pages' => [
+                                        $editIdList => 'edit',
+                                    ]
+                                ],
+                                'columnsOnly' => 'TSconfig',
+                                'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
+                            ];
+                            $line['editIcon'] = BackendUtility::getModuleUrl('record_edit', $urlParameters);
+                            $line['editTitle'] = 'editTSconfig';
+                            $line['title'] = BackendUtility::wrapClickMenuOnIcon($icon, 'pages', $row['uid'])
+                                . ' ' . htmlspecialchars(BackendUtility::getRecordTitle('pages', $row));
+                        }
+                        $tsparser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class);
+                        $tsparser->lineNumberOffset = 0;
+                        $line['content'] = $tsparser->doSyntaxHighlight(trim($v) . LF);
+                        $lines[] = $line;
+                    }
+                }
+
+                if (!empty($pUids)) {
+                    $urlParameters = [
+                        'edit' => [
+                            'pages' => [
+                                implode(',', $pUids) => 'edit',
+                            ]
+                        ],
+                        'columnsOnly' => 'TSconfig',
+                        'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
+                    ];
+                    $url = BackendUtility::getModuleUrl('record_edit', $urlParameters);
+                    $editIcon = htmlspecialchars($url);
+                    $editTitle = 'editTSconfig_all';
+                } else {
+                    $editIcon = '';
+                    $editTitle = '';
+                }
+
+                $this->view->assign('tsconfParts99', 1);
+                $this->view->assign('csh', BackendUtility::cshItem('_MOD_web_info', 'tsconfig_edit', null, '|'));
+                $this->view->assign('lines', $lines);
+                $this->view->assign('editIcon', $editIcon);
+                $this->view->assign('editTitle', $editTitle);
+            } else {
+                $this->view->assign('tsconfParts99', 0);
+                // Defined global here!
+                $tmpl = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\ExtendedTemplateService::class);
+                $tmpl->ext_expandAllNotes = 1;
+                $tmpl->ext_noPMicons = 1;
+
+                $beUser = $this->getBackendUser();
+                switch ($this->pObj->MOD_SETTINGS['tsconf_parts']) {
+                    case '1':
+                        $modTSconfig = BackendUtility::getModTSconfig($this->pObj->id, 'mod');
+                        break;
+                    case '1a':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_layout', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '1b':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_view', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '1c':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_modules', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '1d':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_list', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '1e':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_info', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '1f':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_func', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '1g':
+                        $modTSconfig = $beUser->getTSConfig('mod.web_ts', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '2':
+                        $modTSconfig = $beUser->getTSConfig('RTE', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '5':
+                        $modTSconfig = $beUser->getTSConfig('TCEFORM', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '6':
+                        $modTSconfig = $beUser->getTSConfig('TCEMAIN', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '3':
+                        $modTSconfig = $beUser->getTSConfig('TSFE', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    case '4':
+                        $modTSconfig = $beUser->getTSConfig('user', BackendUtility::getPagesTSconfig($this->pObj->id));
+                        break;
+                    default:
+                        $modTSconfig['properties'] = BackendUtility::getPagesTSconfig($this->pObj->id);
+                }
+
+                $modTSconfig = $modTSconfig['properties'];
+                if (!is_array($modTSconfig)) {
+                    $modTSconfig = [];
+                }
+
+                $this->view->assign('csh', BackendUtility::cshItem('_MOD_web_info', 'tsconfig_hierarchy', null, '|'));
+                $this->view->assign('tree', $tmpl->ext_getObjTree($modTSconfig, '', '', '', '', $this->pObj->MOD_SETTINGS['tsconf_alphaSort']));
+            }
+            $this->view->assign('alphaSort', BackendUtility::getFuncCheck($this->pObj->id, 'SET[tsconf_alphaSort]', $this->pObj->MOD_SETTINGS['tsconf_alphaSort'], '', '', 'id="checkTsconf_alphaSort"'));
+            $this->view->assign('dropdownMenu', BackendUtility::getDropdownMenu($this->pObj->id, 'SET[tsconf_parts]', $this->pObj->MOD_SETTINGS['tsconf_parts'], $this->pObj->MOD_MENU['tsconf_parts']));
+        }
+        return $this->view->render();
+    }
+
+    /**
+     * Renders table rows of all pages containing TSConfig together with its rootline
+     *
+     * @return array
+     */
+    protected function getOverviewOfPagesUsingTSConfig()
+    {
+        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
+        $queryBuilder->getRestrictions()
+            ->removeAll()
+            ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
+            ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));
+
+        $res = $queryBuilder
+            ->select('uid', 'TSconfig')
+            ->from('pages')
+            ->where(
+                $queryBuilder->expr()->neq(
+                    'TSconfig',
+                    $queryBuilder->createNamedParameter('', \PDO::PARAM_STR)
+                )
+            )
+            ->groupBy('uid')
+            ->execute();
+
+        $pageArray = [];
+
+        while ($row = $res->fetch()) {
+            $this->setInPageArray($pageArray, BackendUtility::BEgetRootLine($row['uid'], 'AND 1=1'), $row);
+        }
+        return $this->getList($pageArray);
+    }
+
+    /**
+     * Set page in array
+     * This function is called recursively and builds a multi-dimensional array that reflects the page
+     * hierarchy.
+     *
+     * @param array $hierarchicArray The hierarchic array (passed by reference)
+     * @param array $rootlineArray The rootline array
+     * @param array $row The row from the database containing the uid and TSConfig fields
+     */
+    protected function setInPageArray(&$hierarchicArray, $rootlineArray, $row)
+    {
+        ksort($rootlineArray);
+        reset($rootlineArray);
+        if (!$rootlineArray[0]['uid']) {
+            array_shift($rootlineArray);
+        }
+        $currentElement = current($rootlineArray);
+        $hierarchicArray[$currentElement['uid']] = htmlspecialchars($currentElement['title']);
+        array_shift($rootlineArray);
+        if (!empty($rootlineArray)) {
+            if (!isset($hierarchicArray[$currentElement['uid'] . '.'])) {
+                $hierarchicArray[$currentElement['uid'] . '.'] = [];
+            }
+            $this->setInPageArray($hierarchicArray[$currentElement['uid'] . '.'], $rootlineArray, $row);
+        } else {
+            $hierarchicArray[$currentElement['uid'] . '_'] = $this->extractLinesFromTSConfig($row);
+        }
+    }
+
+    /**
+     * Extract the lines of TSConfig from a given pages row
+     *
+     * @param array $row The row from the database containing the uid and TSConfig fields
+     * @return array
+     */
+    protected function extractLinesFromTSConfig(array $row)
+    {
+        $out = [];
+        $includeLines = 0;
+        $out['uid'] = $row['uid'];
+        $lines = GeneralUtility::trimExplode("\r\n", $row['TSconfig']);
+        foreach ($lines as $line) {
+            if (strpos($line, '<INCLUDE_TYPOSCRIPT:') !== false) {
+                $includeLines++;
+            }
+        }
+        $out['includeLines'] = $includeLines;
+        $out['writtenLines'] = (count($lines) - $includeLines);
+        return $out;
+    }
+
+    /**
+     * Get the list of pages to show.
+     * This function is called recursively
+     *
+     * @param array $pageArray The Page Array
+     * @param array $lines Lines that have been processed up to this point
+     * @param int $pageDepth The level of the current $pageArray being processed
+     * @return array
+     */
+    protected function getList($pageArray, $lines = [], $pageDepth = 0)
+    {
+        if (!is_array($pageArray)) {
+            return $lines;
+        }
+
+        foreach ($pageArray as $identifier => $_) {
+            if (!MathUtility::canBeInterpretedAsInteger($identifier)) {
+                continue;
+            }
+            $line = [];
+            $line['padding'] = ($pageDepth * 20) + 10;
+            if (isset($pageArray[$identifier . '_'])) {
+                $line['link'] = GeneralUtility::linkThisScript(['id' => $identifier]);
+                $line['icon'] = $this->iconFactory->getIconForRecord('pages', BackendUtility::getRecordWSOL('pages', $identifier), Icon::SIZE_SMALL)->render();
+                $line['title'] = 'ID: ' . $identifier;
+                $line['pageTitle'] = GeneralUtility::fixed_lgd_cs($pageArray[$identifier], 30);
+                $line['includedFiles'] = ($pageArray[$identifier . '_']['includeLines'] === 0 ? '' : $pageArray[($identifier . '_')]['includeLines']);
+                $line['lines'] = ($pageArray[$identifier . '_']['writtenLines'] === 0 ? '' : $pageArray[$identifier . '_']['writtenLines']);
+            } else {
+                $line['link'] = '';
+                $line['icon'] = $this->iconFactory->getIconForRecord('pages', BackendUtility::getRecordWSOL('pages', $identifier), Icon::SIZE_SMALL)->render();
+                $line['title'] = '';
+                $line['pageTitle'] = GeneralUtility::fixed_lgd_cs($pageArray[$identifier], 30);
+                $line['includedFiles'] = '';
+                $line['lines'] = '';
+            }
+            $lines[] = $line;
+            $lines = $this->getList($pageArray[$identifier . '.'], $lines, $pageDepth + 1);
+        }
+        return $lines;
+    }
+
+    /**
+     * Returns LanguageService
+     *
+     * @return \TYPO3\CMS\Core\Localization\LanguageService
+     */
+    protected function getLanguageService()
+    {
+        return $GLOBALS['LANG'];
+    }
+
+    /**
+     * Returns the current BE user.
+     *
+     * @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication
+     */
+    protected function getBackendUser()
+    {
+        return $GLOBALS['BE_USER'];
+    }
+
+    /**
+     * returns a new standalone view, shorthand function
+     *
+     * @return StandaloneView
+     */
+    protected function getFluidTemplateObject()
+    {
+        /** @var StandaloneView $view */
+        $view = GeneralUtility::makeInstance(StandaloneView::class);
+        $view->setLayoutRootPaths([GeneralUtility::getFileAbsFileName('EXT:info/Resources/Private/Layouts')]);
+        $view->setPartialRootPaths([GeneralUtility::getFileAbsFileName('EXT:info/Resources/Private/Partials')]);
+        $view->setTemplateRootPaths([GeneralUtility::getFileAbsFileName('EXT:info/Resources/Private/Templates')]);
+
+        $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:info/Resources/Private/Templates/PageTsConfig.html'));
+
+        $view->getRequest()->setControllerExtensionName('info');
+        return $view;
+    }
+}
index 314dc79..b7a09cc 100644 (file)
@@ -2,4 +2,5 @@
 return [
     'TYPO3\\CMS\\Frontend\\Controller\\PageInformationController' => \TYPO3\CMS\Info\Controller\PageInformationController::class,
     'TYPO3\\CMS\\Frontend\\Controller\\TranslationStatusController' => \TYPO3\CMS\Info\Controller\TranslationStatusController::class,
+    'TYPO3\\CMS\\InfoPagetsconfig\\Controller\\InfoPageTyposcriptConfigController' => \TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::class,
 ];
index 5e476fb..cf870e8 100644 (file)
@@ -11,3 +11,9 @@ namespace TYPO3\CMS\Frontend\Controller {
     {
     }
 }
+
+namespace TYPO3\CMS\InfoPagetsconfig\Controller {
+    class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController
+    {
+    }
+}
diff --git a/typo3/sysext/info/Resources/Private/Language/InfoPageTsConfig.xlf b/typo3/sysext/info/Resources/Private/Language/InfoPageTsConfig.xlf
new file mode 100644 (file)
index 0000000..78ed91b
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1415814840" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:33Z" product-name="info_pagetsconfig">
+               <header/>
+               <body>
+                       <trans-unit id="tsconf_title">
+                               <source>Page TSconfig</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_0">
+                               <source>All</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1">
+                               <source>Module key ('mod') with overruling user settings</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1a">
+                               <source>Module: Web&gt;Page</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1b">
+                               <source>Module: Web&gt;View</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1c">
+                               <source>Module: Web&gt;Modules</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1d">
+                               <source>Module: Web&gt;List</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1e">
+                               <source>Module: Web&gt;Info</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1f">
+                               <source>Module: Web&gt;Func</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_parts_1g">
+                               <source>Module: Web&gt;Template</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_configFields">
+                               <source>View TSconfig fields content</source>
+                       </trans-unit>
+                       <trans-unit id="editThisColumn">
+                               <source>Edit the field '%s' for all listed pages</source>
+                       </trans-unit>
+                       <trans-unit id="editTSconfig">
+                               <source>Edit TSconfig for this page</source>
+                       </trans-unit>
+                       <trans-unit id="editTSconfig_all">
+                               <source>Edit TSconfig for all shown pages</source>
+                       </trans-unit>
+                       <trans-unit id="editTSconfig_default">
+                               <source>Default Configuration from TYPO3_CONF_VARS</source>
+                       </trans-unit>
+                       <trans-unit id="mod_pagetsconfig">
+                               <source>Page TSconfig</source>
+                       </trans-unit>
+                       <trans-unit id="sort_alphabetic">
+                               <source>Sort alphabetically</source>
+                       </trans-unit>
+                       <trans-unit id="pagetitle">
+                               <source>Pagetitle:</source>
+                       </trans-unit>
+                       <trans-unit id="included_tsconfig_files">
+                               <source>Included Files:</source>
+                       </trans-unit>
+                       <trans-unit id="written_tsconfig_lines">
+                               <source>Lines:</source>
+                       </trans-unit>
+                       <trans-unit id="tsconf_noPageTSconfig">
+                               <source>There are no pages containing custom Page TSconfig settings in the page configuration.</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
diff --git a/typo3/sysext/info/Resources/Private/Language/locallang_csh_tsconfigInfo.xlf b/typo3/sysext/info/Resources/Private/Language/locallang_csh_tsconfigInfo.xlf
new file mode 100644 (file)
index 0000000..9a68e58
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
+       <file t3:id="1415814841" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:33Z" product-name="info_pagetsconfig">
+               <header/>
+               <body>
+                       <trans-unit id="tsconfig_hierarchy.alttitle">
+                               <source>Page TSconfig hierarchy viewer</source>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_hierarchy.description">
+                               <source>Allows the user to view the compiled Page TSconfig structure for a branch of the pagetree.</source>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_hierarchy.details" xml:space="preserve">
+                               <source>This viewer is indispensable for getting an overview of Page TSconfig settings as they apply to various branches in the page tree. You can see the configuration structure of any page where all inherited Page TSconfig is parsed and the result shown. This helps you to evaluate that the settings you have applied are actually found at the correct position in the configuration tree.
+You can also see the Page TSconfig TypoScript code for each page in the root line with the viewer.
+
+See the links for more information about what Page TSconfig is.</source>
+                       </trans-unit>
+                       <trans-unit id="_tsconfig_hierarchy.seeAlso" xml:space="preserve">
+                               <source>_MOD_web_info:tsconfig_edit,
+pages:TSconfig,
+Page TSconfig objects | https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/Index.html</source>
+                               <note from="developer">A part of this string is an internal text, which must not be changed. Just copy this part into the translation field and do not change it. For more information have a look at the Tutorial.</note>
+                       </trans-unit>
+                       <trans-unit id="_tsconfig_hierarchy.image" xml:space="preserve">
+                               <source>EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_1.png,
+EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_2.png,</source>
+                               <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_hierarchy.image_descr" xml:space="preserve">
+                               <source>This is how the parsed Page TSconfig tree can look. It contains the "sum" of all the configuration code from the root line and any default settings. This shows the whole tree but you can also select other top level objects (TLO) in the selector box in the top if you want to limit the view to a single branch
+One of the branches in Page TSconfig has the special property that it is overridden with any User TSconfig in the same object path given for the current backend user. When you view only the "mod" TLO any user settings for the current backend user are applied as well. Here it is evident that some additional settings must apply for the user since only "mod.SHARED.colPos_list" was actually found in Page TSconfig (according to the "All" view in the first image).</source>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_edit.alttitle">
+                               <source>Page TSconfig content viewer</source>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_edit.description">
+                               <source>Displays the raw TSconfig code of all pages in the current root line including any default code.</source>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_edit.details" xml:space="preserve">
+                               <source>The parsed Page TSconfig tree you see in the default view is actually compiled from this TSconfig code in the order it appears here. This view lets you see how the parsed version came to be.
+You can also click the edit-icons of the various pages to go directly to the TSconfig fields of the pages.</source>
+                       </trans-unit>
+                       <trans-unit id="_tsconfig_edit.seeAlso">
+                               <source>_MOD_web_info:tsconfig_hierarchy</source>
+                               <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
+                       </trans-unit>
+                       <trans-unit id="_tsconfig_edit.image" xml:space="preserve">
+                               <source>EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_3.png,
+EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_4.png,
+EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_5.png</source>
+                               <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
+                       </trans-unit>
+                       <trans-unit id="tsconfig_edit.image_descr" xml:space="preserve">
+                               <source>Shows the raw Page TSconfig code. First you see the default content from TYPO3_CONF_VARS (probably added by extensions), then the content from the "TSconfig" field of the first page in the root line ("Intro") and then for each root line page up to the current page (not shown in screenshot).
+In the bottom of the page you will see a link which will open editing forms for all of the TSconfig fields shown in the list!
+Here you see specifically the TSconfig fields of the first and second page in the rootline being edited. Notice the "TS" icon next to the first field - this will bring up a wizard that helps you to select among available Page TSconfig properties.</source>
+                       </trans-unit>
+               </body>
+       </file>
+</xliff>
diff --git a/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/EditIcon.html b/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/EditIcon.html
new file mode 100644 (file)
index 0000000..164ec38
--- /dev/null
@@ -0,0 +1,8 @@
+<f:if condition="{editIcon}">
+    <a href="{editIcon -> f:format.raw()}" title="{f:translate(key: 'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:{editTitle}')}" class="btn btn-default">
+        <core:icon identifier="actions-document-open" />
+        <f:if condition="{editAll}">
+            <f:translate key="LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:editTSconfig_all" />
+        </f:if>
+    </a>
+</f:if>
diff --git a/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/Menu.html b/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/Menu.html
new file mode 100644 (file)
index 0000000..09687cf
--- /dev/null
@@ -0,0 +1,9 @@
+<div class="form-inline form-inline-spaced">
+    <f:format.raw>{dropdownMenu}</f:format.raw>
+    <div class="checkbox">
+        <label for="checkTsconf_alphaSort">
+            <f:format.raw>{alphaSort}</f:format.raw>
+            {f:translate(key: 'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:sort_alphabetic')}
+        </label>
+    </div>
+</div>
diff --git a/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/Page.html b/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/Page.html
new file mode 100644 (file)
index 0000000..cacbce2
--- /dev/null
@@ -0,0 +1,35 @@
+<h1>{f:translate(key: 'LLL:EXT:info/Resources/Private/Language/locallang.xlf:tsconf_title')}</h1>
+<f:if condition="{csh}">
+  <span class="btn btn-default btn-sm"><f:format.raw>{csh}</f:format.raw></span>
+</f:if>
+<f:render partial="PageTsConfig/Menu" arguments="{_all}"/>
+<f:if condition="{tsconfParts99}">
+    <f:then>
+        <f:for each="{lines}" as="line">
+            <div class="panel panel-default">
+                <div class="panel-heading">
+                    <f:if condition="{line.defaultPageTSconfig}">
+                        <f:then>
+                          <f:translate key="LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:editTSconfig_default" />
+                        </f:then>
+                        <f:else>
+                            <f:format.raw>{line.title}</f:format.raw>
+                        </f:else>
+                    </f:if>
+                </div>
+                <div class="panel-body">
+                    <f:if condition="{line.content -> f:format.stripTags() -> f:spaceless()}">
+                        <f:format.raw>{line.content}</f:format.raw>
+                    </f:if>
+                    <f:render partial="PageTsConfig/EditIcon" arguments="{editIcon: line.editIcon, editTitle: line.editTitle}" />
+                </div>
+            </div>
+        </f:for>
+        <f:render partial="PageTsConfig/EditIcon" arguments="{editIcon: editIcon, editTitle: editTitle, editAll: 1}" />
+    </f:then>
+    <f:else>
+        <div class="nowrap">
+            <f:format.raw>{tree}</f:format.raw>
+        </div>
+    </f:else>
+</f:if>
diff --git a/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/PageZero.html b/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/PageZero.html
new file mode 100644 (file)
index 0000000..daf3946
--- /dev/null
@@ -0,0 +1,25 @@
+<div class="nowrap">
+    <f:if condition="{overviewOfPagesUsingTSConfig}">
+        <f:then>
+            <div class="table-fit">
+                <table class="table table-striped table-hover" id="tsconfig-overview">
+                    <thead>
+                        <tr>
+                            <th>{f:translate(key: 'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:pagetitle')}</th>
+                            <th>{f:translate(key: 'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:included_tsconfig_files')}</th>
+                            <th>{f:translate(key: 'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:written_tsconfig_lines')}</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        <f:for each="{overviewOfPagesUsingTSConfig}" as="line">
+                            <f:render partial="PageTsConfig/PageZeroTableRow" arguments="{line: line}" />
+                        </f:for>
+                    </tbody>
+                </table>
+            </div>
+        </f:then>
+        <f:else>
+            <f:be.infobox message="{f:translate(key: 'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:tsconf_noPageTSconfig')}" state="-1" />
+        </f:else>
+    </f:if>
+</div>
diff --git a/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/PageZeroTableRow.html b/typo3/sysext/info/Resources/Private/Partials/PageTsConfig/PageZeroTableRow.html
new file mode 100644 (file)
index 0000000..5a75911
--- /dev/null
@@ -0,0 +1,18 @@
+<tr>
+    <td class="nowrap" style="padding-left: {line.padding}px">
+        <f:if condition="{line.link}">
+            <f:then>
+                <a href="{line.link}" title="{line.title}">
+                    <f:format.raw>{line.icon}</f:format.raw>
+                    <f:format.raw>{line.pageTitle}</f:format.raw>
+                </a>
+            </f:then>
+            <f:else>
+                <f:format.raw>{line.icon}</f:format.raw>
+                <f:format.raw>{line.pageTitle}</f:format.raw>
+            </f:else>
+        </f:if>
+    </td>
+    <td>{line.includedFiles}</td>
+    <td>{line.lines}</td>
+</tr>
diff --git a/typo3/sysext/info/Resources/Private/Templates/PageTsConfig.html b/typo3/sysext/info/Resources/Private/Templates/PageTsConfig.html
new file mode 100644 (file)
index 0000000..6b1953a
--- /dev/null
@@ -0,0 +1,8 @@
+<f:if condition="{pageZero}">
+    <f:then>
+        <f:render partial="PageTsConfig/PageZero" arguments="{_all}" />
+    </f:then>
+    <f:else>
+        <f:render partial="PageTsConfig/Page" arguments="{_all}" />
+    </f:else>
+</f:if>
index 9296b23..7715a91 100644 (file)
@@ -16,6 +16,7 @@ if (TYPO3_MODE === 'BE') {
         ]
     );
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:info/Resources/Private/Language/locallang_csh_web_info.xlf');
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_infotsconfig', 'EXT:info/Resources/Private/Language/locallang_csh_tsconfigInfo.xlf');
 
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
         'web_info',
@@ -29,4 +30,10 @@ if (TYPO3_MODE === 'BE') {
         null,
         'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:mod_tx_cms_webinfo_lang'
     );
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+        'web_info',
+        \TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::class,
+        null,
+        'LLL:EXT:info/Resources/Private/Language/InfoPageTsConfig.xlf:mod_pagetsconfig'
+    );
 }
diff --git a/typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php b/typo3/sysext/info_pagetsconfig/Classes/Controller/InfoPageTyposcriptConfigController.php
deleted file mode 100644 (file)
index 3e6c8e2..0000000
+++ /dev/null
@@ -1,393 +0,0 @@
-<?php
-namespace TYPO3\CMS\InfoPagetsconfig\Controller;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-use TYPO3\CMS\Backend\Utility\BackendUtility;
-use TYPO3\CMS\Core\Database\ConnectionPool;
-use TYPO3\CMS\Core\Database\Query\Restriction\BackendWorkspaceRestriction;
-use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
-use TYPO3\CMS\Core\Imaging\Icon;
-use TYPO3\CMS\Core\Imaging\IconFactory;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Core\Utility\MathUtility;
-use TYPO3\CMS\Fluid\View\StandaloneView;
-
-/**
- * Page TSconfig viewer
- */
-class InfoPageTyposcriptConfigController extends \TYPO3\CMS\Backend\Module\AbstractFunctionModule
-{
-    /**
-     * @var IconFactory
-     */
-    protected $iconFactory;
-
-    /**
-     * @var StandaloneView
-     */
-    protected $view;
-
-    /**
-     * Constructor
-     */
-    public function __construct()
-    {
-        $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
-        $this->getLanguageService()->includeLLFile('EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf');
-
-        $this->view = $this->getFluidTemplateObject();
-    }
-
-    /**
-     * Function menu initialization
-     *
-     * @return array Menu array
-     */
-    public function modMenu()
-    {
-        $lang = $this->getLanguageService();
-        $modMenuAdd = [
-            'tsconf_parts' => [
-                0 => $lang->getLL('tsconf_parts_0'),
-                1 => $lang->getLL('tsconf_parts_1'),
-                '1a' => $lang->getLL('tsconf_parts_1a'),
-                '1b' => $lang->getLL('tsconf_parts_1b'),
-                '1c' => $lang->getLL('tsconf_parts_1c'),
-                '1d' => $lang->getLL('tsconf_parts_1d'),
-                '1e' => $lang->getLL('tsconf_parts_1e'),
-                '1f' => $lang->getLL('tsconf_parts_1f'),
-                '1g' => $lang->getLL('tsconf_parts_1g'),
-                2 => 'RTE.',
-                5 => 'TCEFORM.',
-                6 => 'TCEMAIN.',
-                3 => 'TSFE.',
-                4 => 'user.',
-                99 => $lang->getLL('tsconf_configFields')
-            ],
-            'tsconf_alphaSort' => '1'
-        ];
-        if (!$this->getBackendUser()->isAdmin()) {
-            unset($modMenuAdd['tsconf_parts'][99]);
-        }
-        return $modMenuAdd;
-    }
-
-    /**
-     * Main function of class
-     *
-     * @return string HTML output
-     */
-    public function main()
-    {
-        $pageId = (int)(GeneralUtility::_GP('id'));
-
-        if ($pageId === 0) {
-            $this->view->assign('pageZero', 1);
-            $pagesUsingTSConfig = $this->getOverviewOfPagesUsingTSConfig();
-            if (count($pagesUsingTSConfig) > 0) {
-                $this->view->assign('overviewOfPagesUsingTSConfig', $pagesUsingTSConfig);
-            }
-        } else {
-            if ($this->pObj->MOD_SETTINGS['tsconf_parts'] == 99) {
-                $TSparts = BackendUtility::getPagesTSconfig($this->pObj->id, null, true);
-                $lines = [];
-                $pUids = [];
-
-                foreach ($TSparts as $k => $v) {
-                    if ($k !== 'uid_0') {
-                        $line = [];
-                        if ($k === 'defaultPageTSconfig') {
-                            $line['defaultPageTSconfig'] = 1;
-                        } else {
-                            $editIdList = substr($k, 4);
-                            $pUids[] = $editIdList;
-                            $row = BackendUtility::getRecordWSOL('pages', $editIdList);
-
-                            $icon = $this->iconFactory->getIconForRecord('pages', $row, Icon::SIZE_SMALL);
-                            $urlParameters = [
-                                'edit' => [
-                                    'pages' => [
-                                        $editIdList => 'edit',
-                                    ]
-                                ],
-                                'columnsOnly' => 'TSconfig',
-                                'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
-                            ];
-                            $line['editIcon'] = BackendUtility::getModuleUrl('record_edit', $urlParameters);
-                            $line['editTitle'] = 'editTSconfig';
-                            $line['title'] = BackendUtility::wrapClickMenuOnIcon($icon, 'pages', $row['uid'])
-                                . ' ' . htmlspecialchars(BackendUtility::getRecordTitle('pages', $row));
-                        }
-                        $tsparser = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser::class);
-                        $tsparser->lineNumberOffset = 0;
-                        $line['content'] = $tsparser->doSyntaxHighlight(trim($v) . LF);
-                        $lines[] = $line;
-                    }
-                }
-
-                if (!empty($pUids)) {
-                    $urlParameters = [
-                        'edit' => [
-                            'pages' => [
-                                implode(',', $pUids) => 'edit',
-                            ]
-                        ],
-                        'columnsOnly' => 'TSconfig',
-                        'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
-                    ];
-                    $url = BackendUtility::getModuleUrl('record_edit', $urlParameters);
-                    $editIcon = htmlspecialchars($url);
-                    $editTitle = 'editTSconfig_all';
-                } else {
-                    $editIcon = '';
-                    $editTitle = '';
-                }
-
-                $this->view->assign('tsconfParts99', 1);
-                $this->view->assign('csh', BackendUtility::cshItem('_MOD_web_info', 'tsconfig_edit', null, '|'));
-                $this->view->assign('lines', $lines);
-                $this->view->assign('editIcon', $editIcon);
-                $this->view->assign('editTitle', $editTitle);
-            } else {
-                $this->view->assign('tsconfParts99', 0);
-                // Defined global here!
-                $tmpl = GeneralUtility::makeInstance(\TYPO3\CMS\Core\TypoScript\ExtendedTemplateService::class);
-                $tmpl->ext_expandAllNotes = 1;
-                $tmpl->ext_noPMicons = 1;
-
-                $beUser = $this->getBackendUser();
-                switch ($this->pObj->MOD_SETTINGS['tsconf_parts']) {
-                    case '1':
-                        $modTSconfig = BackendUtility::getModTSconfig($this->pObj->id, 'mod');
-                        break;
-                    case '1a':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_layout', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '1b':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_view', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '1c':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_modules', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '1d':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_list', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '1e':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_info', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '1f':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_func', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '1g':
-                        $modTSconfig = $beUser->getTSConfig('mod.web_ts', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '2':
-                        $modTSconfig = $beUser->getTSConfig('RTE', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '5':
-                        $modTSconfig = $beUser->getTSConfig('TCEFORM', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '6':
-                        $modTSconfig = $beUser->getTSConfig('TCEMAIN', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '3':
-                        $modTSconfig = $beUser->getTSConfig('TSFE', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    case '4':
-                        $modTSconfig = $beUser->getTSConfig('user', BackendUtility::getPagesTSconfig($this->pObj->id));
-                        break;
-                    default:
-                        $modTSconfig['properties'] = BackendUtility::getPagesTSconfig($this->pObj->id);
-                }
-
-                $modTSconfig = $modTSconfig['properties'];
-                if (!is_array($modTSconfig)) {
-                    $modTSconfig = [];
-                }
-
-                $this->view->assign('csh', BackendUtility::cshItem('_MOD_web_info', 'tsconfig_hierarchy', null, '|'));
-                $this->view->assign('tree', $tmpl->ext_getObjTree($modTSconfig, '', '', '', '', $this->pObj->MOD_SETTINGS['tsconf_alphaSort']));
-            }
-            $this->view->assign('alphaSort', BackendUtility::getFuncCheck($this->pObj->id, 'SET[tsconf_alphaSort]', $this->pObj->MOD_SETTINGS['tsconf_alphaSort'], '', '', 'id="checkTsconf_alphaSort"'));
-            $this->view->assign('dropdownMenu', BackendUtility::getDropdownMenu($this->pObj->id, 'SET[tsconf_parts]', $this->pObj->MOD_SETTINGS['tsconf_parts'], $this->pObj->MOD_MENU['tsconf_parts']));
-        }
-        return $this->view->render();
-    }
-
-    /**
-     * Renders table rows of all pages containing TSConfig together with its rootline
-     *
-     * @return array
-     */
-    protected function getOverviewOfPagesUsingTSConfig()
-    {
-        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages');
-        $queryBuilder->getRestrictions()
-            ->removeAll()
-            ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
-            ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));
-
-        $res = $queryBuilder
-            ->select('uid', 'TSconfig')
-            ->from('pages')
-            ->where(
-                $queryBuilder->expr()->neq(
-                    'TSconfig',
-                    $queryBuilder->createNamedParameter('', \PDO::PARAM_STR)
-                )
-            )
-            ->groupBy('uid')
-            ->execute();
-
-        $pageArray = [];
-
-        while ($row = $res->fetch()) {
-            $this->setInPageArray($pageArray, BackendUtility::BEgetRootLine($row['uid'], 'AND 1=1'), $row);
-        }
-        return $this->getList($pageArray);
-    }
-
-    /**
-     * Set page in array
-     * This function is called recursively and builds a multi-dimensional array that reflects the page
-     * hierarchy.
-     *
-     * @param array $hierarchicArray The hierarchic array (passed by reference)
-     * @param array $rootlineArray The rootline array
-     * @param array $row The row from the database containing the uid and TSConfig fields
-     */
-    protected function setInPageArray(&$hierarchicArray, $rootlineArray, $row)
-    {
-        ksort($rootlineArray);
-        reset($rootlineArray);
-        if (!$rootlineArray[0]['uid']) {
-            array_shift($rootlineArray);
-        }
-        $currentElement = current($rootlineArray);
-        $hierarchicArray[$currentElement['uid']] = htmlspecialchars($currentElement['title']);
-        array_shift($rootlineArray);
-        if (!empty($rootlineArray)) {
-            if (!isset($hierarchicArray[$currentElement['uid'] . '.'])) {
-                $hierarchicArray[$currentElement['uid'] . '.'] = [];
-            }
-            $this->setInPageArray($hierarchicArray[$currentElement['uid'] . '.'], $rootlineArray, $row);
-        } else {
-            $hierarchicArray[$currentElement['uid'] . '_'] = $this->extractLinesFromTSConfig($row);
-        }
-    }
-
-    /**
-     * Extract the lines of TSConfig from a given pages row
-     *
-     * @param array $row The row from the database containing the uid and TSConfig fields
-     * @return array
-     */
-    protected function extractLinesFromTSConfig(array $row)
-    {
-        $out = [];
-        $includeLines = 0;
-        $out['uid'] = $row['uid'];
-        $lines = GeneralUtility::trimExplode("\r\n", $row['TSconfig']);
-        foreach ($lines as $line) {
-            if (strpos($line, '<INCLUDE_TYPOSCRIPT:') !== false) {
-                $includeLines++;
-            }
-        }
-        $out['includeLines'] = $includeLines;
-        $out['writtenLines'] = (count($lines) - $includeLines);
-        return $out;
-    }
-
-    /**
-     * Get the list of pages to show.
-     * This function is called recursively
-     *
-     * @param array $pageArray The Page Array
-     * @param array $lines Lines that have been processed up to this point
-     * @param int $pageDepth The level of the current $pageArray being processed
-     * @return array
-     */
-    protected function getList($pageArray, $lines = [], $pageDepth = 0)
-    {
-        if (!is_array($pageArray)) {
-            return $lines;
-        }
-
-        foreach ($pageArray as $identifier => $_) {
-            if (!MathUtility::canBeInterpretedAsInteger($identifier)) {
-                continue;
-            }
-            $line = [];
-            $line['padding'] = ($pageDepth * 20) + 10;
-            if (isset($pageArray[$identifier . '_'])) {
-                $line['link'] = GeneralUtility::linkThisScript(['id' => $identifier]);
-                $line['icon'] = $this->iconFactory->getIconForRecord('pages', BackendUtility::getRecordWSOL('pages', $identifier), Icon::SIZE_SMALL)->render();
-                $line['title'] = 'ID: ' . $identifier;
-                $line['pageTitle'] = GeneralUtility::fixed_lgd_cs($pageArray[$identifier], 30);
-                $line['includedFiles'] = ($pageArray[$identifier . '_']['includeLines'] === 0 ? '' : $pageArray[($identifier . '_')]['includeLines']);
-                $line['lines'] = ($pageArray[$identifier . '_']['writtenLines'] === 0 ? '' : $pageArray[$identifier . '_']['writtenLines']);
-            } else {
-                $line['link'] = '';
-                $line['icon'] = $this->iconFactory->getIconForRecord('pages', BackendUtility::getRecordWSOL('pages', $identifier), Icon::SIZE_SMALL)->render();
-                $line['title'] = '';
-                $line['pageTitle'] = GeneralUtility::fixed_lgd_cs($pageArray[$identifier], 30);
-                $line['includedFiles'] = '';
-                $line['lines'] = '';
-            }
-            $lines[] = $line;
-            $lines = $this->getList($pageArray[$identifier . '.'], $lines, $pageDepth + 1);
-        }
-        return $lines;
-    }
-
-    /**
-     * Returns LanguageService
-     *
-     * @return \TYPO3\CMS\Core\Localization\LanguageService
-     */
-    protected function getLanguageService()
-    {
-        return $GLOBALS['LANG'];
-    }
-
-    /**
-     * Returns the current BE user.
-     *
-     * @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication
-     */
-    protected function getBackendUser()
-    {
-        return $GLOBALS['BE_USER'];
-    }
-
-    /**
-     * returns a new standalone view, shorthand function
-     *
-     * @return StandaloneView
-     */
-    protected function getFluidTemplateObject()
-    {
-        /** @var StandaloneView $view */
-        $view = GeneralUtility::makeInstance(StandaloneView::class);
-        $view->setLayoutRootPaths([GeneralUtility::getFileAbsFileName('EXT:info_pagetsconfig/Resources/Private/Layouts')]);
-        $view->setPartialRootPaths([GeneralUtility::getFileAbsFileName('EXT:info_pagetsconfig/Resources/Private/Partials')]);
-        $view->setTemplateRootPaths([GeneralUtility::getFileAbsFileName('EXT:info_pagetsconfig/Resources/Private/Templates')]);
-
-        $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:info_pagetsconfig/Resources/Private/Templates/Main.html'));
-
-        $view->getRequest()->setControllerExtensionName('info_pagetsconfig');
-        return $view;
-    }
-}
diff --git a/typo3/sysext/info_pagetsconfig/LICENSE.txt b/typo3/sysext/info_pagetsconfig/LICENSE.txt
deleted file mode 100644 (file)
index 95d36a7..0000000
+++ /dev/null
@@ -1,345 +0,0 @@
-Some icons used in the TYPO3 project are retrieved from the "Silk" icon set of
-Mark James, which can be found at http://famfamfam.com/lab/icons/silk/. This
-set is distributed under a Creative Commons Attribution 2.5 License. The
-license can be found at http://creativecommons.org/licenses/by/2.5/.
----------------------------------
-
-                    GNU GENERAL PUBLIC LICENSE
-                       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-                            NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License along
-    with this program; if not, write to the Free Software Foundation, Inc.,
-    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Language/locallang.xlf b/typo3/sysext/info_pagetsconfig/Resources/Private/Language/locallang.xlf
deleted file mode 100644 (file)
index 78ed91b..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
-       <file t3:id="1415814840" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:33Z" product-name="info_pagetsconfig">
-               <header/>
-               <body>
-                       <trans-unit id="tsconf_title">
-                               <source>Page TSconfig</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_0">
-                               <source>All</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1">
-                               <source>Module key ('mod') with overruling user settings</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1a">
-                               <source>Module: Web&gt;Page</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1b">
-                               <source>Module: Web&gt;View</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1c">
-                               <source>Module: Web&gt;Modules</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1d">
-                               <source>Module: Web&gt;List</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1e">
-                               <source>Module: Web&gt;Info</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1f">
-                               <source>Module: Web&gt;Func</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_parts_1g">
-                               <source>Module: Web&gt;Template</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_configFields">
-                               <source>View TSconfig fields content</source>
-                       </trans-unit>
-                       <trans-unit id="editThisColumn">
-                               <source>Edit the field '%s' for all listed pages</source>
-                       </trans-unit>
-                       <trans-unit id="editTSconfig">
-                               <source>Edit TSconfig for this page</source>
-                       </trans-unit>
-                       <trans-unit id="editTSconfig_all">
-                               <source>Edit TSconfig for all shown pages</source>
-                       </trans-unit>
-                       <trans-unit id="editTSconfig_default">
-                               <source>Default Configuration from TYPO3_CONF_VARS</source>
-                       </trans-unit>
-                       <trans-unit id="mod_pagetsconfig">
-                               <source>Page TSconfig</source>
-                       </trans-unit>
-                       <trans-unit id="sort_alphabetic">
-                               <source>Sort alphabetically</source>
-                       </trans-unit>
-                       <trans-unit id="pagetitle">
-                               <source>Pagetitle:</source>
-                       </trans-unit>
-                       <trans-unit id="included_tsconfig_files">
-                               <source>Included Files:</source>
-                       </trans-unit>
-                       <trans-unit id="written_tsconfig_lines">
-                               <source>Lines:</source>
-                       </trans-unit>
-                       <trans-unit id="tsconf_noPageTSconfig">
-                               <source>There are no pages containing custom Page TSconfig settings in the page configuration.</source>
-                       </trans-unit>
-               </body>
-       </file>
-</xliff>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Language/locallang_csh_webinfo.xlf b/typo3/sysext/info_pagetsconfig/Resources/Private/Language/locallang_csh_webinfo.xlf
deleted file mode 100644 (file)
index 9a68e58..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xliff version="1.0" xmlns:t3="http://typo3.org/schemas/xliff">
-       <file t3:id="1415814841" source-language="en" datatype="plaintext" original="messages" date="2011-10-17T20:22:33Z" product-name="info_pagetsconfig">
-               <header/>
-               <body>
-                       <trans-unit id="tsconfig_hierarchy.alttitle">
-                               <source>Page TSconfig hierarchy viewer</source>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_hierarchy.description">
-                               <source>Allows the user to view the compiled Page TSconfig structure for a branch of the pagetree.</source>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_hierarchy.details" xml:space="preserve">
-                               <source>This viewer is indispensable for getting an overview of Page TSconfig settings as they apply to various branches in the page tree. You can see the configuration structure of any page where all inherited Page TSconfig is parsed and the result shown. This helps you to evaluate that the settings you have applied are actually found at the correct position in the configuration tree.
-You can also see the Page TSconfig TypoScript code for each page in the root line with the viewer.
-
-See the links for more information about what Page TSconfig is.</source>
-                       </trans-unit>
-                       <trans-unit id="_tsconfig_hierarchy.seeAlso" xml:space="preserve">
-                               <source>_MOD_web_info:tsconfig_edit,
-pages:TSconfig,
-Page TSconfig objects | https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/Index.html</source>
-                               <note from="developer">A part of this string is an internal text, which must not be changed. Just copy this part into the translation field and do not change it. For more information have a look at the Tutorial.</note>
-                       </trans-unit>
-                       <trans-unit id="_tsconfig_hierarchy.image" xml:space="preserve">
-                               <source>EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_1.png,
-EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_2.png,</source>
-                               <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_hierarchy.image_descr" xml:space="preserve">
-                               <source>This is how the parsed Page TSconfig tree can look. It contains the "sum" of all the configuration code from the root line and any default settings. This shows the whole tree but you can also select other top level objects (TLO) in the selector box in the top if you want to limit the view to a single branch
-One of the branches in Page TSconfig has the special property that it is overridden with any User TSconfig in the same object path given for the current backend user. When you view only the "mod" TLO any user settings for the current backend user are applied as well. Here it is evident that some additional settings must apply for the user since only "mod.SHARED.colPos_list" was actually found in Page TSconfig (according to the "All" view in the first image).</source>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_edit.alttitle">
-                               <source>Page TSconfig content viewer</source>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_edit.description">
-                               <source>Displays the raw TSconfig code of all pages in the current root line including any default code.</source>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_edit.details" xml:space="preserve">
-                               <source>The parsed Page TSconfig tree you see in the default view is actually compiled from this TSconfig code in the order it appears here. This view lets you see how the parsed version came to be.
-You can also click the edit-icons of the various pages to go directly to the TSconfig fields of the pages.</source>
-                       </trans-unit>
-                       <trans-unit id="_tsconfig_edit.seeAlso">
-                               <source>_MOD_web_info:tsconfig_hierarchy</source>
-                               <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
-                       </trans-unit>
-                       <trans-unit id="_tsconfig_edit.image" xml:space="preserve">
-                               <source>EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_3.png,
-EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_4.png,
-EXT:info_pagetsconfig/Resources/Public/Images/cshimages/img_5.png</source>
-                               <note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
-                       </trans-unit>
-                       <trans-unit id="tsconfig_edit.image_descr" xml:space="preserve">
-                               <source>Shows the raw Page TSconfig code. First you see the default content from TYPO3_CONF_VARS (probably added by extensions), then the content from the "TSconfig" field of the first page in the root line ("Intro") and then for each root line page up to the current page (not shown in screenshot).
-In the bottom of the page you will see a link which will open editing forms for all of the TSconfig fields shown in the list!
-Here you see specifically the TSconfig fields of the first and second page in the rootline being edited. Notice the "TS" icon next to the first field - this will bring up a wizard that helps you to select among available Page TSconfig properties.</source>
-                       </trans-unit>
-               </body>
-       </file>
-</xliff>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/EditIcon.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/EditIcon.html
deleted file mode 100644 (file)
index 7feddc5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<f:if condition="{editIcon}">
-    <a href="{editIcon -> f:format.raw()}" title="{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:{editTitle}')}" class="btn btn-default">
-        <span class="t3js-icon icon icon-size-small icon-state-default icon-actions-document-open" data-identifier="actions-document-open">
-            <span class="icon-markup">
-                <img width="16" height="16" src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/actions/actions-document-open.svg">
-            </span>
-        </span>
-        <f:if condition="{editAll}">
-            <f:translate key="LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:editTSconfig_all" />
-        </f:if>
-    </a>
-</f:if>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Menu.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Menu.html
deleted file mode 100644 (file)
index d72224c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="form-inline form-inline-spaced">
-    <f:format.raw>{dropdownMenu}</f:format.raw>
-    <div class="checkbox">
-        <label for="checkTsconf_alphaSort">
-            <f:format.raw>{alphaSort}</f:format.raw>
-            {f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:sort_alphabetic')}
-        </label>
-    </div>
-</div>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html
deleted file mode 100644 (file)
index 079519e..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<h1>{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:tsconf_title')}</h1>
-<f:if condition="{csh}">
-  <span class="btn btn-default btn-sm"><f:format.raw>{csh}</f:format.raw></span>
-</f:if>
-<f:render partial="Menu" arguments="{_all}"/>
-<f:if condition="{tsconfParts99}">
-    <f:then>
-        <f:for each="{lines}" as="line">
-            <div class="panel panel-default">
-                <div class="panel-heading">
-                    <f:if condition="{line.defaultPageTSconfig}">
-                        <f:then>
-                          <f:translate key="LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:editTSconfig_default" />
-                        </f:then>
-                        <f:else>
-                            <f:format.raw>{line.title}</f:format.raw>
-                        </f:else>
-                    </f:if>
-                </div>
-                <div class="panel-body">
-                    <f:if condition="{line.content -> f:format.stripTags() -> f:spaceless()}">
-                        <f:format.raw>{line.content}</f:format.raw>
-                    </f:if>
-                    <f:render partial="EditIcon" arguments="{editIcon: line.editIcon, editTitle: line.editTitle}" />
-                </div>
-            </div>
-        </f:for>
-        <f:render partial="EditIcon" arguments="{editIcon: editIcon, editTitle: editTitle, editAll: 1}" />
-    </f:then>
-    <f:else>
-        <div class="nowrap">
-            <f:format.raw>{tree}</f:format.raw>
-        </div>
-    </f:else>
-</f:if>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/PageZero.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/PageZero.html
deleted file mode 100644 (file)
index fbeafd8..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="nowrap">
-    <f:if condition="{overviewOfPagesUsingTSConfig}">
-        <f:then>
-            <div class="table-fit">
-                <table class="table table-striped table-hover" id="tsconfig-overview">
-                    <thead>
-                        <tr>
-                            <th>{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:pagetitle')}</th>
-                            <th>{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:included_tsconfig_files')}</th>
-                            <th>{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:written_tsconfig_lines')}</th>
-                        </tr>
-                    </thead>
-                    <tbody>
-                        <f:for each="{overviewOfPagesUsingTSConfig}" as="line">
-                            <f:render partial="PageZeroTableRow" arguments="{line: line}" />
-                        </f:for>
-                    </tbody>
-                </table>
-            </div>
-        </f:then>
-        <f:else>
-            <f:be.infobox message="{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:tsconf_noPageTSconfig')}" state="-1" />
-        </f:else>
-    </f:if>
-</div>
\ No newline at end of file
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/PageZeroTableRow.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/PageZeroTableRow.html
deleted file mode 100644 (file)
index 5a75911..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<tr>
-    <td class="nowrap" style="padding-left: {line.padding}px">
-        <f:if condition="{line.link}">
-            <f:then>
-                <a href="{line.link}" title="{line.title}">
-                    <f:format.raw>{line.icon}</f:format.raw>
-                    <f:format.raw>{line.pageTitle}</f:format.raw>
-                </a>
-            </f:then>
-            <f:else>
-                <f:format.raw>{line.icon}</f:format.raw>
-                <f:format.raw>{line.pageTitle}</f:format.raw>
-            </f:else>
-        </f:if>
-    </td>
-    <td>{line.includedFiles}</td>
-    <td>{line.lines}</td>
-</tr>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Templates/Main.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Templates/Main.html
deleted file mode 100644 (file)
index ad585b8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<f:if condition="{pageZero}">
-    <f:then>
-        <f:render partial="PageZero" arguments="{_all}" />
-    </f:then>
-    <f:else>
-        <f:render partial="Page" arguments="{_all}" />
-    </f:else>
-</f:if>
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Public/Icons/Extension.png b/typo3/sysext/info_pagetsconfig/Resources/Public/Icons/Extension.png
deleted file mode 100644 (file)
index 07e8c1c..0000000
Binary files a/typo3/sysext/info_pagetsconfig/Resources/Public/Icons/Extension.png and /dev/null differ
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_1.png b/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_1.png
deleted file mode 100644 (file)
index 7c3b179..0000000
Binary files a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_1.png and /dev/null differ
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_2.png b/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_2.png
deleted file mode 100644 (file)
index b039f42..0000000
Binary files a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_2.png and /dev/null differ
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_3.png b/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_3.png
deleted file mode 100644 (file)
index a9dd936..0000000
Binary files a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_3.png and /dev/null differ
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_4.png b/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_4.png
deleted file mode 100644 (file)
index a9016c4..0000000
Binary files a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_4.png and /dev/null differ
diff --git a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_5.png b/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_5.png
deleted file mode 100644 (file)
index 7bbc563..0000000
Binary files a/typo3/sysext/info_pagetsconfig/Resources/Public/Images/cshimages/img_5.png and /dev/null differ
diff --git a/typo3/sysext/info_pagetsconfig/composer.json b/typo3/sysext/info_pagetsconfig/composer.json
deleted file mode 100644 (file)
index fa9ab2d..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-{
-       "name": "typo3/cms-info-pagetsconfig",
-       "type": "typo3-cms-framework",
-       "description": "Displays the compiled Page TSconfig values relative to a page.",
-       "homepage": "https://typo3.org",
-       "license": ["GPL-2.0+"],
-       "authors": [{
-                       "name": "TYPO3 Core Team",
-                       "email": "typo3cms@typo3.org",
-                       "role": "Developer"
-               }],
-
-       "require": {
-               "typo3/cms-core": ">=9.0.0 <=9.0.99",
-               "typo3/cms-info": ">=9.0.0 <=9.0.99"
-       },
-       "conflict": {
-               "typo3/cms": "*"
-       },
-       "replace": {
-               "info_pagetsconfig": "*"
-       },
-       "extra": {
-               "branch-alias": {
-                       "dev-master": "9.x-dev"
-               },
-               "typo3/cms": {
-                       "Package": {
-                               "partOfFactoryDefault": true
-                       },
-                       "extension-key": "info_pagetsconfig"
-               }
-       },
-       "autoload": {
-               "psr-4": {
-                       "TYPO3\\CMS\\InfoPagetsconfig\\": "Classes/"
-               }
-       }
-}
diff --git a/typo3/sysext/info_pagetsconfig/ext_emconf.php b/typo3/sysext/info_pagetsconfig/ext_emconf.php
deleted file mode 100644 (file)
index 4f0dcc5..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-$EM_CONF[$_EXTKEY] = [
-    'title' => 'Web>Info, Page TSconfig',
-    'description' => 'Displays the compiled Page TSconfig values relative to a page.',
-    'category' => 'module',
-    'state' => 'stable',
-    'uploadfolder' => 0,
-    'createDirs' => '',
-    'clearCacheOnLoad' => 0,
-    'author' => 'TYPO3 Core Team',
-    'author_email' => 'typo3cms@typo3.org',
-    'author_company' => '',
-    'version' => '9.0.0',
-    'constraints' => [
-        'depends' => [
-            'typo3' => '9.0.0-9.0.99',
-            'info' => '9.0.0-9.0.99',
-        ],
-        'conflicts' => [],
-        'suggests' => [],
-    ],
-];
diff --git a/typo3/sysext/info_pagetsconfig/ext_tables.php b/typo3/sysext/info_pagetsconfig/ext_tables.php
deleted file mode 100644 (file)
index abfe6cc..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-defined('TYPO3_MODE') or die();
-
-if (TYPO3_MODE === 'BE') {
-    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
-        'web_info',
-        \TYPO3\CMS\InfoPagetsconfig\Controller\InfoPageTyposcriptConfigController::class,
-        null,
-        'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:mod_pagetsconfig'
-    );
-}
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:info_pagetsconfig/Resources/Private/Language/locallang_csh_webinfo.xlf');