[TASK] Update copyright year to 2013
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / LoginFramesetController.php
1 <?php
2 namespace TYPO3\CMS\Backend\Controller;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 1999-2013 Kasper Skårhøj (kasperYYYY@typo3.com)
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 * A copy is found in the textfile GPL.txt and important notices to the license
19 * from the author is found in LICENSE.txt distributed with these scripts.
20 *
21 *
22 * This script is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * This copyright notice MUST APPEAR in all copies of the script!
28 ***************************************************************/
29
30 /**
31 * Script Class, putting the frameset together.
32 *
33 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
34 */
35 class LoginFramesetController {
36
37 // Internal, dynamic
38 /**
39 * @todo Define visibility
40 */
41 public $content;
42
43 /**
44 * Main function.
45 * Creates the header code in XHTML, then the frameset for the two frames.
46 *
47 * @return void
48 * @todo Define visibility
49 */
50 public function main() {
51 // Set doktype:
52 $GLOBALS['TBE_TEMPLATE']->docType = 'xhtml_frames';
53 $title = 'TYPO3 Re-Login (' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'] . ')';
54 $this->content .= $GLOBALS['TBE_TEMPLATE']->startPage($title);
55 // Create the frameset for the window:
56 $this->content .= '
57 <frameset rows="*,1">
58 <frame name="login" src="index.php?loginRefresh=1" marginwidth="0" marginheight="0" scrolling="no" noresize="noresize" />
59 <frame name="dummy" src="dummy.php" marginwidth="0" marginheight="0" scrolling="auto" noresize="noresize" />
60 </frameset>
61 ';
62 $this->content .= '
63 </html>';
64 }
65
66 /**
67 * Outputs the page content.
68 *
69 * @return void
70 * @todo Define visibility
71 */
72 public function printContent() {
73 echo $this->content;
74 }
75
76 }
77
78
79 ?>