cron.php 828 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. * PHP Pro Bid $Id$ 2C9QZlkOFq0z69+RO+5yOmQF5s9doBba/Y3dnGRdOWA=
  5. *
  6. * @link http://www.phpprobid.com
  7. * @copyright Copyright (c) 2017 Online Ventures Software & CodeCube SRL
  8. * @license http://www.phpprobid.com/license Commercial License
  9. *
  10. * @version 7.9 [rev.7.9.01]
  11. */
  12. ini_set('display_errors', 0);
  13. error_reporting(0);
  14. define('APPLICATION_PATH', realpath(__DIR__));
  15. set_include_path(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'library');
  16. require_once 'Cube/Application.php';
  17. $application = Cube\Application::init(array_merge(
  18. include 'config/global.config.php',
  19. include 'config/cache.config.php'));
  20. $application->bootstrap();
  21. $request = new \Cube\Controller\Request();
  22. $command = $request->getParam('command', null);
  23. $service = new \Ppb\Service\Cron();
  24. $service->run($command);