cron.php 472 B

123456789101112131415161718192021
  1. <?php
  2. define('DS', DIRECTORY_SEPARATOR);
  3. $modulePath = dirname(__DIR__);
  4. $whmcsPath = dirname(dirname(dirname($modulePath)));
  5. require_once $whmcsPath . DS . 'init.php';
  6. require_once $modulePath . DS . 'core' . DS . 'Bootstrap.php';
  7. //cause WHMCS
  8. ini_set('max_execution_time', 0);
  9. $argList = $argv ? $argv : $_SERVER['argv'];
  10. if (count($argList) === 0)
  11. {
  12. $argList = [__FILE__];
  13. }
  14. (new \ModulesGarden\ProxmoxAddon\Core\CommandLine\CronManager())
  15. ->run();