[TASK] Cleanup multiple classes of "localPageTree": EXT:impexp
[Packages/TYPO3.CMS.git] / typo3 / sysext / openid / class.tx_openid_return.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2008-2011 Dmitry Dulepov <dmitry@typo3.org>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 // Fix _GET/_POST values for authentication
26 if (isset($_GET['login_status'])) {
27 $_POST['login_status'] = $_GET['login_status'];
28 }
29
30 define('TYPO3_MOD_PATH', 'sysext/openid/');
31 require_once('../../init.php');
32
33 /**
34 * This class is the OpenID return script for the TYPO3 Backend.
35 *
36 * @author Dmitry Dulepov <dmitry@typo3.org>
37 */
38 class tx_openid_return {
39 /**
40 * Processed Backend session creation and redirect to backend.php
41 *
42 * @return void
43 */
44 public function main() {
45 if ($GLOBALS['BE_USER']->user['uid']) {
46 t3lib_div::cleanOutputBuffers();
47 $backendURL = t3lib_div::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir . 'backend.php';
48 t3lib_utility_Http::redirect($backendURL);
49 }
50 }
51 }
52
53 $module = t3lib_div::makeInstance('tx_openid_return');
54 /* @var tx_openid_return $module */
55 $module->main();
56
57 ?>