changed git call from https to git readonly
[atutor.git] / mods / wiki / tools / cron.d / S30__hourly__.php
1 <?php
2 /*
3    All following actions will be executed every hour. This script just
4    injects a break and halts everything else, if there wasn't an hour
5    between now and the last run.
6 */
7
8
9 #-- stop if no hour elapsed since last activation
10 if ($anacron["hour"]+3575 >= time()) {
11    $GOTO = 50;    //go testing if __daily__ scripts are to be run again
12    echo "[$cron]: overstepping parts\n";
13 }
14
15 #-- proceed, update time
16 else {
17    $anacron["hour"] = EWIKI_CRON;
18    echo "[$cron]: proceeding\n";
19 }
20
21
22 ?>