error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/index.php");
}
-
/// At this point everything is set up and the user is an admin, so print menu
$stradministration = get_string("administration");
print_spacer(10,10);
}
+/// If no recently cron run
+ $lastcron = get_field_sql('SELECT max(lastcron) FROM ' . $CFG->prefix . 'modules');
+ if (time() - $lastcron > 3600 * 24) {
+ print_simple_box(get_string('cronwarning', 'admin') , 'center');
+ }
+
$table->tablealign = "right";
$table->align = array ("right", "left");
$table->wrap = array ("nowrap", "nowrap");
$string['confirmation'] = 'Confirmation';
$string['confirmdeletedst'] = 'Deleting the preset named <strong>$a</strong> will immediately disable DST for all users of that preset. This could possibly change their perception of time without warning. Are you sure you want to continue?';
$string['confirmdeletedstdefault'] = '<strong>The preset named $a is being used for all users of this site!</strong> Deleting it will change their perception of time without warning. Are you sure you want to continue?';
+$string['cronwarning'] = 'The cron.php maintenance script has not run recently (at least not in the last 24 hs). <br>If you have not configured it yet, check the installation instructions, in the <em>Set up cron</em> section.';
$string['dstisapreference'] = 'Each user can choose which preset to use';
$string['dstisforcedto'] = 'Force all users to use';
$string['dstpresets'] = 'DST Presets';