TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
LoginFramesetController.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types = 1);
3
namespace
TYPO3\CMS\Backend\Controller
;
4
5
/*
6
* This file is part of the TYPO3 CMS project.
7
*
8
* It is free software; you can redistribute it and/or modify it under
9
* the terms of the GNU General Public License, either version 2
10
* of the License, or any later version.
11
*
12
* For the full copyright and license information, please read the
13
* LICENSE.txt file that was distributed with this source code.
14
*
15
* The TYPO3 project - inspiring people to share!
16
*/
17
18
use Psr\Http\Message\ResponseInterface;
19
use Psr\Http\Message\ServerRequestInterface;
20
use
TYPO3\CMS\Backend\Routing\UriBuilder
;
21
use
TYPO3\CMS\Backend\Template\DocumentTemplate
;
22
use
TYPO3\CMS\Core\Http\HtmlResponse
;
23
use
TYPO3\CMS\Core\Page\PageRenderer
;
24
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
25
30
class
LoginFramesetController
31
{
35
protected
$content
;
36
40
public
function
__construct
()
41
{
42
trigger_error(__CLASS__ .
' will be removed in TYPO3 v10.0. Request "index.php?loginRefresh=1" directly to work without the frameset.'
, E_USER_DEPRECATED);
43
$GLOBALS
[
'SOBE'
] = $this;
44
}
45
53
public
function
mainAction
(ServerRequestInterface $request): ResponseInterface
54
{
55
$this->
createFrameset
();
56
return
new
HtmlResponse
($this->content);
57
}
58
63
public
function
main
()
64
{
65
$this->
createFrameset
();
66
}
71
protected
function
createFrameset
():
void
72
{
73
$title =
'TYPO3 Re-Login ('
.
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SYS'
][
'sitename'
] .
')'
;
74
$this->
getDocumentTemplate
()->
startPage
($title);
76
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
77
// Create the frameset for the window
78
$this->content = $this->
getPageRenderer
()->
render
(
PageRenderer::PART_HEADER
) .
'
79
<frameset rows="*,1">
80
<frame name="login" src="index.php?loginRefresh=1" marginwidth="0" marginheight="0" scrolling="no" noresize="noresize" />
81
<frame name="dummy" src="'
. htmlspecialchars((
string
)$uriBuilder->buildUriFromRoute(
'dummy'
)) .
'" marginwidth="0" marginheight="0" scrolling="auto" noresize="noresize" />
82
</frameset>
83
</html>'
;
84
}
85
91
protected
function
getDocumentTemplate
():
DocumentTemplate
92
{
93
return
$GLOBALS
[
'TBE_TEMPLATE'
];
94
}
95
99
protected
function
getPageRenderer
():
PageRenderer
100
{
101
return
GeneralUtility::makeInstance(PageRenderer::class);
102
}
103
}
TYPO3\CMS\Backend\Controller\LoginFramesetController\main
main()
Definition:
LoginFramesetController.php:62
TYPO3\CMS\Backend\Controller\LoginFramesetController\__construct
__construct()
Definition:
LoginFramesetController.php:39
TYPO3\CMS\Backend\Controller\LoginFramesetController\getPageRenderer
PageRenderer getPageRenderer()
Definition:
LoginFramesetController.php:98
TYPO3\CMS\Backend\Controller\LoginFramesetController\createFrameset
createFrameset()
Definition:
LoginFramesetController.php:70
TYPO3\CMS\Backend\Controller\LoginFramesetController\getDocumentTemplate
DocumentTemplate getDocumentTemplate()
Definition:
LoginFramesetController.php:90
TYPO3\CMS\Backend\Controller\LoginFramesetController\$content
string $content
Definition:
LoginFramesetController.php:34
TYPO3\CMS\Backend\Template\DocumentTemplate\startPage
string startPage($title)
Definition:
DocumentTemplate.php:445
TYPO3\CMS\Core\Page\PageRenderer
Definition:
PageRenderer.php:35
TYPO3\CMS\Backend\Controller\LoginFramesetController\mainAction
ResponseInterface mainAction(ServerRequestInterface $request)
Definition:
LoginFramesetController.php:52
TYPO3\CMS\Backend\Template\DocumentTemplate
Definition:
DocumentTemplate.php:48
TYPO3\CMS\Backend\Routing\UriBuilder
Definition:
UriBuilder.php:35
TYPO3\CMS\Core\Page\PageRenderer\render
string render($part=self::PART_COMPLETE)
Definition:
PageRenderer.php:1763
TYPO3\CMS\Backend\Controller\LoginFramesetController
Definition:
LoginFramesetController.php:31
$GLOBALS
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition:
ext_localconf.php:5
TYPO3\CMS\Core\Utility\GeneralUtility
Definition:
GeneralUtility.php:45
TYPO3\CMS\Core\Page\PageRenderer\PART_HEADER
const PART_HEADER
Definition:
PageRenderer.php:38
TYPO3\CMS\Backend\Controller
Definition:
AbstractFormEngineAjaxController.php:3
TYPO3\CMS\Core\Http\HtmlResponse
Definition:
HtmlResponse.php:25
doxygen
typo3
sysext
backend
Classes
Controller
LoginFramesetController.php
Generated on Tue Oct 5 2021 01:56:51 for TYPO3CMS by
1.8.18