| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* $Id: cronplus.module,v 1.8.2.2 2008/12/19 04:35:25 syscrusher Exp $ |
* $Id: cronplus.module,v 1.8.2.3 2008/12/19 04:45:24 syscrusher Exp $ |
| 4 |
* |
* |
| 5 |
* CronPlus enhances the Drupal cron feature to provide specific calls to |
* CronPlus enhances the Drupal cron feature to provide specific calls to |
| 6 |
* other modules at hourly, daily, weekly, monthly, and yearly intervals. |
* other modules at hourly, daily, weekly, monthly, and yearly intervals. |
| 190 |
// Gather information... |
// Gather information... |
| 191 |
$last_cron = intval(variable_get('cronplus_last_cron', 0)); |
$last_cron = intval(variable_get('cronplus_last_cron', 0)); |
| 192 |
$now = time(); |
$now = time(); |
| 193 |
$now_wkdy = intval(gmdate('w'), $now); // 0=Sunday |
$now_wkdy = intval(gmdate('w', $now)); // 0=Sunday |
| 194 |
// For the $now_week, weeks start on Monday, not Sunday. This is a mismatch |
// For the $now_week, weeks start on Monday, not Sunday. This is a mismatch |
| 195 |
// against $now_wkdy, but it doesn't matter because all we are looking for |
// against $now_wkdy, but it doesn't matter because all we are looking for |
| 196 |
// in $now_week is a *change* -- we don't care about the actual value. |
// in $now_week is a *change* -- we don't care about the actual value. |