id); require_capability('coursereport/log:viewlive', $context); add_to_log($course->id, "course", "report live", "report/log/live.php?id=$course->id", $course->id); session_write_close(); // we override the default framename so header/footer // links open in a new window if (empty($CFG->framename) || $CFG->framename==='_top') { $CFG->framename = '_blank'; } $strlivelogs = get_string("livelogs"); $strupdatesevery = get_string("updatesevery", "moodle", COURSE_LIVELOG_REFRESH); print_header("$strlivelogs ($strupdatesevery)", "$strlivelogs", "", "", ''); $user=0; $date=time() - 3600; print_log($course, $user, $date, "l.time DESC", $page, 500, "live.php?id=$course->id&user=$user&date=$date"); print_footer('none'); exit; ?>