| 1 |
<?php |
<?php |
| 2 |
// $Id: poormanscron.module,v 1.21.2.1 2008/04/27 09:40:29 robloach Exp $ $Name: DRUPAL-6--1 $ |
// $Id: poormanscron.module,v 1.21.2.2 2009/05/06 05:07:08 robloach Exp $ $Name: $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 30 |
|
|
| 31 |
// Calculate when the next poormanscron run is due. |
// Calculate when the next poormanscron run is due. |
| 32 |
$lastrun = variable_get('poormanscron_lastrun', 0); |
$lastrun = variable_get('poormanscron_lastrun', 0); |
| 33 |
$nextrun = $lastrun + 60 * variable_get('poormanscron_interval', 60); |
$nextrun = $lastrun + 60 * variable_get('poormanscron_interval', 180); |
| 34 |
|
|
| 35 |
// If the configured time has passed, start the next poormanscron run. |
// If the configured time has passed, start the next poormanscron run. |
| 36 |
if (time() > $nextrun) { |
if (time() > $nextrun) { |