diff --git a/cron/lock_trainings.php b/cron/lock_trainings.php new file mode 100644 index 0000000..9d3cddc --- /dev/null +++ b/cron/lock_trainings.php @@ -0,0 +1,23 @@ +assoc_array("SELECT * FROM training WHERE tr_deleted = 0 AND tr_date LIKE '{$today}%'"); + +foreach ($trainings as $key => $training) { + $sql->update_table("training", array( + "tr_locked" => 1 + ), + array( + "tr_id" => $training["tr_id"] + )); +} + +?> diff --git a/cron/money_check.php b/cron/money_check.php old mode 100755 new mode 100644