id)) { error("Only teachers can view logs"); } print_header("Activity within the last hour (updates every 60 secs)", "Activity within the last hour (updates every 60 secs)", "", "", ""); $user=0; $date=time() - 3600; print_log($course, $user, $date, "ORDER BY l.time DESC"); exit; ?>