<?php echo $MSG_RANKLIST; if ($url == "ranklist.php") { echo "</span>"; } ?> </a> </div> <div class=menu_item > <a href="contest.php"><?php if ($url == "contest.php") { echo "<span style='color:orange'>"; } ?> <?php echo checkcontest($MSG_CONTEST); if ($url == "contest.php") { echo "</span>"; } ?> </a> </div> <div class=menu_item > <a href="recent-contest.php"><?php if ($url == "recent-contest.php") { echo "<span style='color:orange'>"; } ?> <?php echo $MSG_RECENT_CONTEST; if ($url == "recent-contest.php") {
<body> <center> <h2><font color="red">Welcome To <?php echo $OJ_NAME; ?> ACM-ICPC Online Judge</font></h2> <table width=96%> <tr align="center" class='hd' valign="top"> <th><a href="./faqs.php">F.A.Qs</a></th> <th><a href="./bbs.php">BBS</a></th> <th><a href="http://acm.zj.cn/wiki/en">HOME</a></th> <th><a href="./problemset.php">PROBLEMS</a></th> <th><a href="./status.php">STATUS</a></th> <th><a href="./ranklist.php">RANKLIST</a></th> <th><a href="./contest.php"><?php echo checkcontest(); ?> </a></th> <?php $sid = $_SESSION['user_id']; if (isset($_SESSION['user_id'])) { print "<th><a href=./modifypage.php><b>U</b></a> <a href='userinfo.php?user={$sid}'><font color=red>{$sid}</font></a></th>"; print "<th><a href=logout.php>LOGOUT</a></th>"; } else { print "<th><a href=loginpage.php>LOGIN</a></th>"; print "<th><a href=registerpage.php>REGISTER</a></th>"; } if (isset($_SESSION['administrator'])) { print "<th><a href=admin>Admin</a></th>"; } ?>