changed git call from https to git readonly
[atutor.git] / mods / wiki / tools / cron.d / S70__weekly__.php
1 <?php
2 /*
3    Checks for elapsion of a week, and halts execution of following
4    scripts, if it wasn't over yet.
5 */
6
7 #-- check
8 if ($anacron["week"] + 6.75 * 24 * 3599 >= time()) {
9    $GOTO = 90;    //skews to __monthly__
10    echo "[$cron]: no week elapsed, overstepping\n";
11 }
12
13 #-- update timestamp
14 else {
15    $anacron["week"] = EWIKI_CRON;
16    echo "[$cron]: proceeding\n";
17 }
18
19 ?>