. //////////////////////////////////////////////////////////////////////////////// // Last modified 21/jul/2012 by cassio@ime.usp.br ob_start(); header ("Expires: " . gmdate("D, d M Y H:i:s") . " GMT"); header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); header ("Content-Type: text/html; charset=utf-8"); session_start(); ob_end_flush(); require_once('../version.php'); require_once("../globals.php"); require_once("../db.php"); $runteam='run.php'; echo "Team's Page\n"; echo "\n"; echo "\n"; //echo ""; if(!ValidSession()) { InvalidSession("team/index.php"); ForceLoad("../index.php"); } if($_SESSION["usertable"]["usertype"] != "team") { IntrusionNotify("team/index.php"); ForceLoad("../index.php"); } echo "\n"; echo "\n"; echo "\n"; echo "
"; echo "\"\""; echo "BOCA"; echo "\n"; echo "Username: " . $_SESSION["usertable"]["userfullname"] . " (site=".$_SESSION["usertable"]["usersitenumber"].")\n"; $ds = DIRECTORY_SEPARATOR; if($ds=="") $ds = "/"; $runtmp = $_SESSION["locr"] . $ds . "private" . $ds . "runtmp" . $ds . "run-contest" . $_SESSION["usertable"]["contestnumber"] . "-site". $_SESSION["usertable"]["usersitenumber"] . "-user" . $_SESSION["usertable"]["usernumber"] . ".php"; $doslow=true; if(file_exists($runtmp)) { if(($strtmp = file_get_contents($runtmp,FALSE,NULL,-1,1000000)) !== FALSE) { $postab=strpos($strtmp,"\t"); $conf=globalconf(); $strcolors = decryptData(substr($strtmp,$postab+1,strpos($strtmp,"\n")-$postab-1),$conf['key'],''); $doslow=false; $rn=explode("\t",$strcolors); $n=count($rn); for($i=1; $i<$n-1;$i++) { echo "\"".$rn[$i]."\"\n"; $i++; } } else unset($strtmp); } if($doslow) { $run = DBUserRunsYES($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"], $_SESSION["usertable"]["usernumber"]); $n=count($run); for($i=0; $i<$n;$i++) { echo "\"".$run[$i]["colorname"]."\"\n"; } } $str = ''; foreach($_SESSION["popups"] as $key => $value) { if($value != null) { $str .= $value; $_SESSION["popups"][$key] = null; } } if($str != '') { MSGError('YOU GOT NEWS:
' . $str); } list($clockstr,$clocktype)=siteclock(); echo "
 ".$clockstr." 
\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
ProblemsRunsScoreClarificationsTasksBackupsOptionsLogout
\n"; ?>