[TASK] Remove unused typo3/alt_* files
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 25 Oct 2011 21:43:04 +0000 (23:43 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 26 Oct 2011 21:49:46 +0000 (23:49 +0200)
Remove files that are scheduled for deletion in 4.7 and not
referenced in the core at any place.

Change-Id: I0b6b70aaaf063111ab4e063d39ca116d1e8a0e3d
Resolves: #31298
Depends: #31296
Releases: 4.7
Reviewed-on: http://review.typo3.org/6339
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Oliver Klee
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/alt_menu.php [deleted file]
typo3/alt_menu_sel.php [deleted file]
typo3/alt_palette.php [deleted file]
typo3/alt_toplogo.php [deleted file]

diff --git a/typo3/alt_menu.php b/typo3/alt_menu.php
deleted file mode 100644 (file)
index 14db2bd..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project 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.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script 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.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- * Displays the vertical menu in the left most frame of TYPO3s backend
- *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML-trans compliant
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @co-author Sebastian Kurfürst <sebastian@garbage-group.de>
- * @deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7.
- *             The TYPO3 backend is using typo3/backend.php with less frames,
- *             which makes this file obsolete.
- */
-
-
-require ('init.php');
-require ('template.php');
-require_once ('class.alt_menu_functions.inc');
-
-
-t3lib_div::deprecationLog('alt_menu.php is deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7. The TYPO3 backend is using typo3/backend.php with less frames, which makes this file obsolete.');
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * Script Class for rendering the vertical menu in the left side of the backend frameset
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @co-author Sebastian Kurfürst <sebastian@garbage-group.de>
- * @package TYPO3
- * @subpackage core
- */
-class SC_alt_menu {
-
-               // Internal, Static: GPvar
-       var $_clearCacheFiles;
-
-       /**
-        * Menu functions object
-        *
-        * @var alt_menu_functions
-        */
-       var $alt_menuObj;
-
-       /**
-        * Initialize
-        * Loads the backend modules available for the logged in user.
-        *
-        * @return      void
-        */
-       function init() {
-                       // Setting GPvars:
-               $this->_clearCacheFiles = t3lib_div::_GP('_clearCacheFiles');
-
-                       // Loads the backend modules available for the logged in user.
-               $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
-               $this->loadModules->observeWorkspaces = TRUE;
-               $this->loadModules->load($GLOBALS['TBE_MODULES']);
-
-                       // Instantiates the menu object which will generate some JavaScript for the goToModule() JS function in this frame.
-               $this->alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-
-               $GLOBALS['TBE_TEMPLATE']->JScodeArray[] = $this->alt_menuObj->generateMenuJScode($this->loadModules->modules);
-       }
-
-       /**
-        * Main content generated
-        *
-        * @return      void
-        */
-       function main() {
-               $GLOBALS['TBE_TEMPLATE']->divClass = 'vertical-menu';
-               $GLOBALS['TBE_TEMPLATE']->bodyTagAdditions = 'onload="top.restoreHighlightedModuleMenuItem()"';
-
-               $this->content .= $GLOBALS['TBE_TEMPLATE']->startPage('Vertical Backend Menu');
-               $backPath = $GLOBALS['BACK_PATH'];
-
-                       // Printing the menu
-               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-               $this->content.= $alt_menuObj->topMenu($this->loadModules->modules);
-
-                       // clear cache commands for Admins and allowed users
-               if($GLOBALS['BE_USER']->isAdmin()
-               || $GLOBALS['BE_USER']->getTSConfigVal('options.clearCache.pages')
-               || $GLOBALS['BE_USER']->getTSConfigVal('options.clearCache.all')) {
-                               //  && $GLOBALS['BE_USER']->workspace===0 NOT used anyway because under a workspace developers might still like to clear cache!
-                       $functionsArray = $alt_menuObj->adminFunctions($backPath);
-
-                       $this->content.='
-
-<!--
-  Menu with admin functions: Clearing cache:
--->
-<div id="typo3-alt-menu-php-adminFunc">';
-
-
-                               // Table with those admin functions
-                       $this->content.='
-                               <table border="0" cellpadding="0" cellspacing="1" width="100%" id="typo3-adminmenu">';
-
-                               // Header: Admin functions
-                       $this->content.='
-                                       <tr class="c-mainitem">
-                                               <td colspan="2"><span class="c-label"><strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.adminFunctions',1).'</strong>&nbsp;</span><span class="c-iconCollapse"></span></td>
-                                       </tr>';
-
-                       $rows=array();
-                       foreach($functionsArray as $functionsArraySetup) {
-                               if(($functionsArraySetup['id'] == 'all' && ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->getTSConfigVal('options.clearCache.all')))
-                               || ($functionsArraySetup['id'] == 'temp_CACHED' && $GLOBALS['BE_USER']->isAdmin())) {
-                                       $rows[]='
-                                               <tr class="c-subitem">
-                                                       <td valign="top" align="center" class="icon">'.$functionsArraySetup['icon'].'</td>
-                                                       <td><a href="'.htmlspecialchars($functionsArraySetup['href']).'">'.htmlspecialchars($functionsArraySetup['title']).'</a></td>
-                                               </tr>';
-                                       }
-                       }
-
-                               // Imploding around the divider table row:
-                       $this->content.=implode('
-                                       <tr>
-                                               <td colspan="2"><img'.t3lib_iconWorks::skinImg($backPath,'gfx/altmenuline.gif','width="105" height="3"').' alt="" /></td>
-                                       </tr>',$rows);
-
-                       $this->content.='
-                               </table>';
-                       $this->content.=t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_adminFunction', $GLOBALS['BACK_PATH']);
-                       $this->content.='
-</div>
-';
-               }
-
-                       // superuser mode
-               if ($GLOBALS['BE_USER']->user['ses_backuserid']) {
-                       $username = '<p id="username" class="typo3-red-background">[' .
-                               $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_misc.xml:switchtousershort') . ' ' .
-                               htmlspecialchars($GLOBALS['BE_USER']->user['username']) . ']</p>';
-               } else {
-                       $username = '<p id="username">[' . htmlspecialchars($GLOBALS['BE_USER']->user['username']) . ']</p>';
-               }
-                       // Printing buttons (logout button)
-               $this->content.='
-
-
-<!--
-  Logout button / username
--->
-<div id="typo3-alt-menu-php-logininfo">'.$alt_menuObj->topButtons().$username.'
-</div>';
-
-                       // End page:
-               $this->content .= $GLOBALS['TBE_TEMPLATE']->endPage();
-       }
-
-       /**
-        * Outputting the accumulated content to screen
-        *
-        * @return      void
-        */
-       function printContent() {
-               echo $this->content;
-       }
-}
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_menu.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_menu.php']);
-}
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_alt_menu');
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
-
-?>
\ No newline at end of file
diff --git a/typo3/alt_menu_sel.php b/typo3/alt_menu_sel.php
deleted file mode 100644 (file)
index bf0997e..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project 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.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script 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.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- * Creates the selector-box menu.
- * The selector-box menu is an alternative to the vertical default menu.
- * If configured to appear it will be displayed in the top-frame.
- *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7.
- *             The TYPO3 backend is using typo3/backend.php with less frames,
- *             which makes this file obsolete.
- */
-
-
-require ('init.php');
-require ('template.php');
-require_once ('class.alt_menu_functions.inc');
-
-
-t3lib_div::deprecationLog('alt_menu_sel.php is deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7. The TYPO3 backend is using typo3/backend.php with less frames, which makes this file obsolete.');
-
-
-
-
-
-
-/**
- * Script Class for rendering the selector box menu
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage core
- */
-class SC_alt_menu_sel {
-       var $content;
-
-       /**
-        * Main function, making the selector box menu
-        *
-        * @return      void
-        */
-       function main() {
-                       // Initialize modules
-               $loadModules = t3lib_div::makeInstance('t3lib_loadModules');
-               $loadModules->observeWorkspaces = TRUE;
-               $loadModules->load($GLOBALS['TBE_MODULES']);
-
-                       // Start page
-               $GLOBALS['TBE_TEMPLATE']->form = '<form action="">';
-
-                       // add menu JS
-               $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
-               $GLOBALS['TBE_TEMPLATE']->JScodeArray[] = $alt_menuObj->generateMenuJScode($loadModules->modules);
-
-               $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage('Selector box menu');
-
-                       // Make menu and add it:
-               $this->content.=$alt_menuObj->topMenu($loadModules->modules,0,'',2);
-
-                       // End page:
-               $this->content.=$GLOBALS['TBE_TEMPLATE']->endPage();
-       }
-
-       /**
-        * Outputting the accumulated content to screen
-        *
-        * @return      void
-        */
-       function printContent() {
-               echo $this->content;
-       }
-}
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_menu_sel.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_menu_sel.php']);
-}
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_alt_menu_sel');
-$SOBE->main();
-$SOBE->printContent();
-
-?>
\ No newline at end of file
diff --git a/typo3/alt_palette.php b/typo3/alt_palette.php
deleted file mode 100644 (file)
index 179577a..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project 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.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script 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.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- * Displays the secondary-options palette for the TCEFORMs wherever they are shown.
- *
- * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
- * XHTML compliant
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7.
- *             The TYPO3 backend is using typo3/backend.php with less frames,
- *             which makes this file obsolete.
- */
-
-
-t3lib_div::deprecationLog('alt_palette.php is deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7. The TYPO3 backend is using typo3/backend.php with less frames, which makes this file obsolete.');
-
-?>
\ No newline at end of file
diff --git a/typo3/alt_toplogo.php b/typo3/alt_toplogo.php
deleted file mode 100644 (file)
index 8e5307a..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*
-*  (c) 1999-2011 Kasper Skårhøj (kasperYYYY@typo3.com)
-*  All rights reserved
-*
-*  This script is part of the TYPO3 project. The TYPO3 project 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.
-*
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-*  This script 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.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/**
- * Top logo frame
- * Displays the logo in the top frame (upper left corner)
- *
- * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
- * XHTML compliant content
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7.
- *             The TYPO3 backend is using typo3/backend.php with less frames,
- *             which makes this file obsolete.
- */
-
-require ('init.php');
-require ('template.php');
-require ('classes/class.typo3logo.php');
-
-t3lib_div::deprecationLog('alt_toplogo.php is deprecated since TYPO3 4.5, this file will be removed in TYPO3 4.7. The TYPO3 backend is using typo3/backend.php with less frames, which makes this file obsolete.');
-
-
-
-
-/**
- * Script Class for rendering of the logo frame content in upper left corner of the TYPO3 backend frameset
- *
- * @author     Kasper Skårhøj <kasperYYYY@typo3.com>
- * @package TYPO3
- * @subpackage core
- */
-class SC_alt_toplogo {
-       var $content;
-
-       /**
-        * Create content with the logo
-        *
-        * @return      void
-        */
-       function main() {
-                       // Start page
-               $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage('Logo frame');
-
-                       // Set logo:
-               $logo = t3lib_div::makeInstance('TYPO3logo');
-               $this->content .= $logo->render();
-
-                       // End page:
-               $this->content.=$GLOBALS['TBE_TEMPLATE']->endPage();
-       }
-
-       /**
-        * Outputting the accumulated content to screen
-        *
-        * @return      void
-        */
-       function printContent() {
-               echo $this->content;
-       }
-}
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_toplogo.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/alt_toplogo.php']);
-}
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance('SC_alt_toplogo');
-$SOBE->main();
-$SOBE->printContent();
-
-?>
\ No newline at end of file