예제 #1
0
if (defined('ANALYSIS_MODE')) {
    echo '<h2>ANALYSIS MODE</h2>';
    // put anything you want to show on analysis mode
    echo "<br>\n";
}
?>


<?php 
if ($_SESSION['type'] == USERTYPE_ADMIN) {
    listadmintools();
}
?>

<?php 
displaymessage();
?>

<?php 
if ($_SESSION['type'] == USERTYPE_ADMIN || $_SESSION['type'] == USERTYPE_CONTESTANT) {
    listprob($id);
    echo "<hr>\n";
    displaysubmitbox($id, $proboption);
    if (defined("PRINTERNAME")) {
        displayprintingbox();
    }
} else {
    listteam($_SESSION['group']);
}
?>
예제 #2
0
			<div id="login-heading">WIZARDS OF BIZ</div>
<?php 
//the following code handles login errors
if ($_GET['feedback'] == 2) {
    displaymessage('Missing username or password.');
}
if ($_GET['feedback'] == 3) {
    displaymessage('Username or password incorrect.');
}
//display success message on logout
if (isset($_GET['ref']) && $_GET['ref'] == "logout") {
    displaymessage('You have logged out successfully.');
}
//display error if someone tries to access a protected page
if ($_GET['errorcode'] == 1) {
    displaymessage('You must signup to view this page.');
}
?>
			<div class="grid_5">&nbsp;</div>
			<div class="grid_6" id="loginbox">
				<form action="checklogin.php" method="post">
				  	<fieldset>
				   	<legend style="color:white;">&nbsp;Login Here&nbsp;</legend>
							<div id="team-div">Team:<br/><input autofocus type="text" name="name" class="wideinput inputstyle" /></div>
							<div id="password-div">Password:<br /><input type="password" name="password" /></div>
							<input id="login-button" type="submit" name="submit" value="Login" />
					</fieldset>
				</form>
			</div>
			<div class="grid_5"></div>
			<div class="clear"></div>