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 14use Symfony\Component\HttpFoundation\RedirectResponse; 15 16/** 17*/ 18define('IN_PHPBB', true); 19$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 20$phpEx = substr(strrchr(__FILE__, '.'), 1); 21include($phpbb_root_path . 'common.' . $phpEx); 22 23// Do not update users last page entry 24$user->session_begin(false); 25$auth->acl($user->data); 26 27$cron_type = $request->variable('cron_type', ''); 28 29$get_params_array = $request->get_super_global(\phpbb\request\request_interface::GET); 30 31/** @var \phpbb\controller\helper $controller_helper */ 32$controller_helper = $phpbb_container->get('controller.helper'); 33$response = new RedirectResponse( 34 $controller_helper->route('phpbb_cron_run', $get_params_array, false), 35 301 36); 37$response->send(); 38