X-Git-Url: https://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/59900b6682cc043d7541b3e26380cb3dd843d14b..5b9e6b818b0a3f0d518665529c883f452e2ce21b:/typo3/login_frameset.php?ds=sidebyside diff --git a/typo3/login_frameset.php b/typo3/login_frameset.php index 5649f9f..473c30a 100644 --- a/typo3/login_frameset.php +++ b/typo3/login_frameset.php @@ -1,123 +1,32 @@ - * @package TYPO3 - * @subpackage core - */ -/** - * [CLASS/FUNCTION INDEX of SCRIPT] - * +/* + * 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. * - * 71: class SC_login_frameset - * 82: function main() - * 108: function printContent() - * - * TOTAL FUNCTIONS: 2 - * (This index is automatically created/updated by the extension "extdeveval") + * 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! */ -define('TYPO3_PROCEED_IF_NO_USER', 1); -require ('init.php'); -require ('template.php'); - - - - - - - /** - * Script Class, putting the frameset together. + * Login frameset + * + * This script generates a login-frameset used when the user must relogin. * - * @author Kasper Skårhøj - * @package TYPO3 - * @subpackage core + * @author Kasper Skårhøj */ -class SC_login_frameset { - - // Internal, dynamic - var $content; - - /** - * Main function. - * Creates the header code in XHTML, then the frameset for the two frames. - * - * @return void - */ - function main() { - global $TYPO3_CONF_VARS; - - // Set doktype: - $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames'; - - $title = 'TYPO3 Re-Login ('.$TYPO3_CONF_VARS['SYS']['sitename'].')'; - $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($title); - - // Create the frameset for the window: - $this->content.=' - - - - - '; - - $this->content.=' -'; - } - - /** - * Outputs the page content. - * - * @return void - */ - function printContent() { - echo $this->content; - } -} - - -if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/login_frameset.php'])) { - include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/login_frameset.php']); -} - +define('TYPO3_PROCEED_IF_NO_USER', 1); +require __DIR__ . '/init.php'; +\TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog( + 'Login frameset is moved to an own module. Please use BackendUtility::getModuleUrl(\'login_frameset\') to link to login_frameset.php. This script will be removed in TYPO3 CMS 8.' +); // Make instance: -$SOBE = t3lib_div::makeInstance('SC_login_frameset'); -$SOBE->main(); -$SOBE->printContent(); - -?> +$loginFramesetController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\LoginFramesetController::class); +$loginFramesetController->main(); +$loginFramesetController->printContent();