. //////////////////////////////////////////////////////////////////////////////// // Last modified 05/aug/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(); $_SESSION["loc"] = dirname($_SERVER['PHP_SELF']); if($_SESSION["loc"]=="/") $_SESSION["loc"] = ""; $_SESSION["locr"] = dirname(__FILE__); if($_SESSION["locr"]=="/") $_SESSION["locr"] = ""; require_once("globals.php"); require_once("db.php"); if (!isset($_GET["name"])) { if (ValidSession()) DBLogOut($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"], $_SESSION["usertable"]["usernumber"], $_SESSION["usertable"]["username"]=='admin'); session_unset(); session_destroy(); session_start(); $_SESSION["loc"] = dirname($_SERVER['PHP_SELF']); if($_SESSION["loc"]=="/") $_SESSION["loc"] = ""; $_SESSION["locr"] = dirname(__FILE__); if($_SESSION["locr"]=="/") $_SESSION["locr"] = ""; } if(isset($_GET["getsessionid"])) { echo session_id(); exit; } $coo = array(); if(isset($_COOKIE['biscoitobocabombonera'])) { $coo = explode('-',$_COOKIE['biscoitobocabombonera']); if(count($coo) != 2 || strlen($coo[1])!=strlen(myhash('xxx')) || !is_numeric($coo[0]) || !ctype_alnum($coo[1])) $coo = array(); } if(count($coo) != 2) setcookie('biscoitobocabombonera',time() . '-' . myhash(time() . rand() . time() . rand()),time() + 240*3600); ob_end_flush(); require_once('version.php'); ?> BOCA Online Contest Administrator <?php echo $BOCAVERSION; ?> - Login \n"; echo "document.location='" . $_SESSION["usertable"]["usertype"] . "/index.php';\n"; echo "\n"; } exit; } } } else { echo "\n"; } ?>
BOCA Login
Name
Password