00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com) 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * A copy is found in the textfile GPL.txt and important notices to the license 00017 * from the author is found in LICENSE.txt distributed with these scripts. 00018 * 00019 * 00020 * This script is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * This copyright notice MUST APPEAR in all copies of the script! 00026 ***************************************************************/ 00027 /** 00028 * Login frameset 00029 * 00030 * This script generates a login-frameset used when the user must relogin. 00031 * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj 00032 * XHTML-frames compatible. 00033 * 00034 * $Id: login_frameset.php 4433 2008-11-07 04:13:12Z flyguide $ 00035 * 00036 * @author Kasper Skaarhoj <kasperYYYY@typo3.com> 00037 * @package TYPO3 00038 * @subpackage core 00039 */ 00040 /** 00041 * [CLASS/FUNCTION INDEX of SCRIPT] 00042 * 00043 * 00044 * 00045 * 71: class SC_login_frameset 00046 * 82: function main() 00047 * 108: function printContent() 00048 * 00049 * TOTAL FUNCTIONS: 2 00050 * (This index is automatically created/updated by the extension "extdeveval") 00051 * 00052 */ 00053 define('TYPO3_PROCEED_IF_NO_USER', 1); 00054 require ('init.php'); 00055 require ('template.php'); 00056 00057 00058 00059 00060 00061 00062 00063 00064 /** 00065 * Script Class, putting the frameset together. 00066 * 00067 * @author Kasper Skaarhoj <kasperYYYY@typo3.com> 00068 * @package TYPO3 00069 * @subpackage core 00070 */ 00071 class SC_login_frameset { 00072 00073 // Internal, dynamic 00074 var $content; 00075 00076 /** 00077 * Main function. 00078 * Creates the header code in XHTML, then the frameset for the two frames. 00079 * 00080 * @return void 00081 */ 00082 function main() { 00083 global $TYPO3_CONF_VARS; 00084 00085 // Set doktype: 00086 $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames'; 00087 00088 $title = 'TYPO3 Re-Login ('.$TYPO3_CONF_VARS['SYS']['sitename'].')'; 00089 $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($title); 00090 00091 // Create the frameset for the window: 00092 $this->content.=' 00093 <frameset rows="*,1"> 00094 <frame name="login" src="index.php?loginRefresh=1" marginwidth="0" marginheight="0" scrolling="no" noresize="noresize" /> 00095 <frame name="dummy" src="dummy.php" marginwidth="0" marginheight="0" scrolling="auto" noresize="noresize" /> 00096 </frameset> 00097 '; 00098 00099 $this->content.=' 00100 </html>'; 00101 } 00102 00103 /** 00104 * Outputs the page content. 00105 * 00106 * @return void 00107 */ 00108 function printContent() { 00109 echo $this->content; 00110 } 00111 } 00112 00113 00114 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/login_frameset.php']) { 00115 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/login_frameset.php']); 00116 } 00117 00118 00119 00120 // Make instance: 00121 $SOBE = t3lib_div::makeInstance('SC_login_frameset'); 00122 $SOBE->main(); 00123 $SOBE->printContent(); 00124 00125 ?>
1.4.7