Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (19 sloc) 0.729 kB
<?PHP // $Id$
// loglive.php - displays different views of the logs.
require("../config.php");
require("lib.php");
require_login($id);
if (! $course = get_record("course", "id", $id) ) {
error("That's an invalid course id");
}
if ( ! isteacher($course->id) && ! isadmin()) {
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)",
"", "", "<META HTTP-EQUIV='Refresh' CONTENT='60; URL=loglive.php?id=$id'>");
$user=0;
$date=time() - 3600;
print_log($course, $user, $date, "ORDER BY l.time DESC");
exit;
?>
Jump to Line
Something went wrong with that request. Please try again.