}
/// enable stats
+if (empty($CFG->disablestatsprocessing)) {
$stats['enablestats'] = new configvar (get_string('configenablestats','admin'),
choose_from_menu($noyesoptions, 'enablestats', $config->enablestats, '', '', '', true) );
$stats['statsuserthreshold'] = new configvar (get_string('configstatsuserthreshold','admin'),
'<input type="text" name="statsuserthreshold" size="4" value="'.$config->statsuserthreshold.'" />');
-
+}
////////////////////////////////////////////////////////////////////
$configvars['permissions'] = $permissions;
$configvars['requestedcourse'] = $reqcourse;
$configvars['misc'] = $misc;
+if (empty($CFG->disablestatsprocessing)) {
$configvars['stats'] = $stats;
+}
?>
unset($enrol);
}
- if (!empty($CFG->enablestats)) {
+ if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) {
// check we're not before our runtime
$timetocheck = strtotime("$CFG->statsruntimestarthour:$CFG->statsruntimestartminute today");
// Useful for webhost operators who have alternate methods of backups
// $CFG->disablescheduledbackups = true;
//
+// Prevent stats processing and hide the GUI
+// $CFG->disablestatsprocessing = true;
+//
// Set global password for "Login as", teacher is prompted only once in each session.
// Set your own password and tell it only to teachers that should have access to this feature.
// $CFG->loginaspassword = 'yoursharedpassword';