Improvements to the process of setting up Moodle the first time, also better interface for adding/removing teachers

This commit is contained in:
martin
2001-12-04 14:02:36 +00:00
parent f3c7560053
commit c88f014ac6
3 changed files with 69 additions and 25 deletions
+10
View File
@@ -32,6 +32,8 @@
$timenow = time();
// Run all cron jobs for each module
if ($mods = get_records_sql("SELECT * FROM modules WHERE cron > 0 AND (($timenow - lastcron) > cron)")) {
foreach ($mods as $mod) {
$cronfile = "$CFG->dirroot/mod/$mod->name/cron.php";
@@ -43,6 +45,14 @@
}
}
}
// Any system-wide Moodle cron jobs should be run here
// Clean up users who never confirmed.
echo "Cron script completed correctly\n";
?>