. # # }}} # include("defs.php3"); # # Only known and logged in users. # $this_user = CheckLoginOrDie(); $uid = $this_user->uid(); $isadmin = ISADMIN(); # This will not return if its a sajax request. include("showlogfile_sup.php3"); $reqargs = RequiredPageArguments("experiment", PAGEARG_EXPERIMENT); # Need these below. $pid = $experiment->pid(); $eid = $experiment->eid(); if (! $experiment->AccessCheck($this_user, $TB_EXPT_READINFO)) { USERERROR("You do not have permission to view the log for $pid/$eid!", 1); } # # Check for a logfile. This file is transient, so it could be gone by # the time we get to reading it. # $logfile = $experiment->GetLogfile(); if (! $logfile) { USERERROR("Experiment $pid/$eid is no longer in transition!", 1); } # # Standard Testbed Header # PAGEHEADER("Experiment Activity Log"); echo $experiment->PageHeader(); echo "

\n"; STARTWATCHER($experiment); # This spits out the frame. STARTLOG($logfile); # # Standard Testbed Footer # PAGEFOOTER(); ?>