.
////////////////////////////////////////////////////////////////////////////////
// Last modified 05/aug/2012 by cassio@ime.usp.br
require('header.php');
$sitetime = DBAllSiteTime($_SESSION["usertable"]["contestnumber"], $site);
?>
Site Start/Stop Logs
Start date (contest=" . dateconv($ct["conteststartdate"]) . "):";
echo "| " . dateconv($st["sitestartdate"]) . " | \n";
echo "";
if (!$st["siterunning"]) {
echo "
\n";
echo " | Finished at: | \n";
echo " " . dateconv($st["siteendeddate"]);
if($st["siteautoended"]) echo " (auto)";
echo " | \n";
echo "
\n";
if($st["siteautoended"]) {
$w = (int) ($st["siteduration"]/60);
$ww = $st["siteduration"] % 60;
}
else {
$w = (int) ($st["currenttime"]/60);
$ww = $st["currenttime"] % 60;
}
echo " \n";
echo " | Real duration: | \n";
echo " $w minutes";
if($ww != 0) echo " plus $ww seconds";
echo " | \n";
echo "
\n";
}
echo "\n";
echo " | Planned Duration (contest=";
echo $ct["contestduration"]/60;
echo "): | ";
?>
|
Stop answering (contest=";
echo $ct["contestlastmileanswer"]/60;
echo "):";
?>
|
|
Stop scoreboard (contest=";
echo $ct["contestlastmilescore"]/60;
echo "):";
?>
|
|
| Number of Clars: |
|
| Number of Runs: |
|
| Number of Tasks: |
|
| Starting at | Ending at |
";
echo "";
echo dateconv($sitetime[$i]["sitestartdate"]);
echo " | ";
echo "";
if($sitetime[$i]["siteenddate"] == 0) {
if($st["siterunning"])
echo "still open";
else echo "auto-ended";
}
else
echo dateconv($sitetime[$i]["siteenddate"]);
echo " | ";
echo "";
}
?>