cron.php 774 B

12345678910111213141516171819202122232425
  1. <?php
  2. use Symfony\Component\Console\Input\InputInterface;
  3. use Symfony\Component\Console\Input\InputOption;
  4. use Symfony\Component\Console\Output\OutputInterface;
  5. use Symfony\Component\Console\Style\SymfonyStyle;
  6. define('DS', DIRECTORY_SEPARATOR);
  7. $modulePath = dirname(__DIR__);
  8. $whmcsPath = dirname(dirname(dirname($modulePath)));
  9. require_once $whmcsPath . DS . 'init.php';
  10. require_once $modulePath . DS . 'core' . DS . 'Bootstrap.php';
  11. require_once $whmcsPath . DS .'modules'. DS .'addons'. DS .'proxmoxAddon'.DS. 'core' . DS . 'Bootstrap.php';
  12. //cause WHMCS
  13. ini_set('max_execution_time', 0);
  14. $argList = $argv ? $argv : $_SERVER['argv'];
  15. if (count($argList) === 0)
  16. {
  17. $argList = [__FILE__];
  18. }
  19. (new \ModulesGarden\Servers\ProxmoxVps\App\Cron\MainCron())->run();