cron.php
Search API
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.phpView source
- <?php
-
- /**
- * @file
- * 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.
- */
-
- require_once("bootstrap.inc");
-
- $token = $_REQUEST["t"];
- if ($token != $GLOBALS["fp_system_settings"]["cron_security_token"]) {
- die("Sorry, cron security token does not match. View this file's
- source code for instructions on setting up your site's cron.");
- }
-
- watchdog("cron", "Cron run started", array(), WATCHDOG_NOTICE);
- invoke_hook("cron");
- watchdog("cron", "Cron run completed", array(), WATCHDOG_NOTICE);
- variable_set("cron_last_run", time());
-
- ?>