3165465b88bab22eb6173eeeb96bc9e9317e391d
[atutor.git] / mods / wiki / tools / cron.d / S50__daily__.php
1 <?php
2 /*
3    Checks if a day has elapsed since last run, and stops following
4    script parts if not.
5 */
6
7 #-- stop processing
8 if ($anacron["day"] + 24 * 3575 >= time()) {
9    $GOTO = 70;    //skips to __weekly__ parts, instead of doing hard $HALT
10    echo "[$cron]: not running again\n";
11 }
12
13 #-- or update time
14 else {
15    $anacron["day"] = EWIKI_CRON;
16    echo "[$cron]: proceeding\n";
17 }
18
19 ?>