maincron.php 1007 B

12345678910111213141516171819202122232425
  1. <?php
  2. /* For license terms, see /license.txt */
  3. exit;
  4. /**
  5. * This script should be called by a properly set cron process on your server.
  6. * For more information, check the installation guide in the documentation
  7. * folder.
  8. * Add your own executable scripts below the inclusion of notification.php
  9. * @package chamilo.cron
  10. */
  11. /**
  12. * Settings that will influence the execution of the cron tasks
  13. */
  14. //ini_set('max_execution_time',300); //authorize execution for up to 5 minutes
  15. //ini_set('memory_limit','100M'); //authorize script to use up to 100M RAM
  16. /**
  17. * Included cron-ed tasks. You might want to turn error-logging off by
  18. * commenting the first and last line of this section.
  19. */
  20. define('CLI_SCRIPT', true); // for chamilo imported code
  21. define('CHAMILO_INTERNAL', true);
  22. error_log('[chamilo][cronjob] Starting cron jobs as process '.getmypid());
  23. require_once(dirname(dirname(dirname(__DIR__))).'/main/cron/notification.php');
  24. error_log('[chamilo][cronjob] Ending cron jobs of process '.getmypid());