[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/ -> cron.php (source)

   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  */
  18  define('IN_PHPBB', true);
  19  $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
  20  $phpEx = substr(strrchr(__FILE__, '.'), 1);
  21  include($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();


Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1