[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/phpbb/cron/controller/ -> 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  namespace phpbb\cron\controller;
  15  
  16  use Symfony\Component\HttpFoundation\Response;
  17  
  18  /**
  19   * Controller for running cron jobs
  20   */
  21  class cron
  22  {
  23      /**
  24       * Handles CRON requests
  25       *
  26       * @param string $cron_type
  27       *
  28       * @return Response
  29       */
  30  	public function handle($cron_type)
  31      {
  32          $response = new Response();
  33          $response->headers->set('Cache-Control', 'no-cache');
  34          $response->headers->set('Content-type', 'image/gif');
  35          $response->headers->set('Content-length', '43');
  36          $response->setContent(base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='));
  37  
  38          return $response;
  39      }
  40  }


Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1