[TASK] Re-work/simplify copyright header in PHP files - Part 2
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / Classes / OpenidReturn.php
1 <?php
2 namespace TYPO3\CMS\Openid;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * This class is the OpenID return script for the TYPO3 Backend.
19 *
20 * @author Dmitry Dulepov <dmitry@typo3.org>
21 */
22 class OpenidReturn {
23
24 /**
25 * Processed Backend session creation and redirect to backend.php
26 *
27 * @return void
28 */
29 public function main() {
30 if ($GLOBALS['BE_USER']->user['uid']) {
31 \TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers();
32 $backendURL = \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir . 'backend.php';
33 \TYPO3\CMS\Core\Utility\HttpUtility::redirect($backendURL);
34 }
35 }
36
37 }