[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 4 * This file is part of the phpBB Forum Software package. 5 * 6 * @copyright (c) phpBB Limited <https://www.phpbb.com> 7 * @license GNU General Public License, version 2 (GPL-2.0) 8 * 9 * For full copyright and license information, please see 10 * the docs/CREDITS.txt file. 11 * 12 */ 13 14 use Symfony\Component\HttpFoundation\RedirectResponse; 15 16 /** 17 * @ignore 18 */ 19 define('IN_PHPBB', true); 20 $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 21 $phpEx = substr(strrchr(__FILE__, '.'), 1); 22 include($phpbb_root_path . 'common.' . $phpEx); 23 24 // Start session management 25 $user->session_begin(); 26 $auth->acl($user->data); 27 28 $post_id = $request->variable('p', 0); 29 $pm_id = $request->variable('pm', 0); 30 31 $redirect_route_name = ($pm_id === 0) ? 'phpbb_report_post_controller' : 'phpbb_report_pm_controller'; 32 33 /** @var \phpbb\controller\helper $controller_helper */ 34 $controller_helper = $phpbb_container->get('controller.helper'); 35 $response = new RedirectResponse( 36 $controller_helper->route($redirect_route_name, array( 37 'id' => ($pm_id === 0) ? $post_id : $pm_id, 38 ), false), 39 301 40 ); 41 $response->send();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |