Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
report.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * 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();
42