cron.php

  1. 6.x cron.php
  2. 4.x cron.php
  3. 5.x cron.php

The cron.php file for FlightPath, which should be run periodically.

This file will invoke hook_cron on all available modules. It should be accessed in a similar method as wget http://url/cron.php?t=CRON_TOKEN

You can find your site's cron token (and change it if you wish) in your /custom/settings.php file.

File

cron.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * The cron.php file for FlightPath, which should be run periodically.
  5. *
  6. * This file will invoke hook_cron on all available modules. It should be
  7. * accessed in a similar method as
  8. * wget http://url/cron.php?t=CRON_TOKEN
  9. *
  10. * You can find your site's cron token (and change it if you wish)
  11. * in your /custom/settings.php file.
  12. */
  13. require_once("bootstrap.inc");
  14. $token = $_REQUEST["t"];
  15. if ($token != $GLOBALS["fp_system_settings"]["cron_security_token"]) {
  16. die("Sorry, cron security token does not match. View this file's
  17. source code for instructions on setting up your site's cron.");
  18. }
  19. watchdog("cron", "Cron run started", array(), WATCHDOG_NOTICE);
  20. invoke_hook("cron");
  21. watchdog("cron", "Cron run completed", array(), WATCHDOG_NOTICE);
  22. variable_set("cron_last_run", time());
  23. ?>