<ul> <li><a href="config.php">Configuration settings</a></li> <li><a href="checkconfig.php">Config checker</a></li> <li><a href="impexp.php">Import / export</a></li> <li><a href="genpasswds.php">Manage team passwords</a></li> <li><a href="refresh_cache.php">Refresh scoreboard cache</a></li> <li><a href="check_judgings.php">Judging verifier</a></li> <li><a href="auditlog.php">Activity log</a></li> </ul> <?php } ?> <h3>Documentation:</h3> <ul> <li><a href="doc/judge/judge-manual.html">Judge manual</a> (also <a href="doc/judge/judge-manual.pdf">PDF</a>)</li> <li><a href="doc/admin/admin-manual.html">Administrator manual</a> (also <a href="doc/admin/admin-manual.pdf">PDF</a>)</li> <li><a href="doc/team/team-manual.pdf">Team manual</a> (PDF only)</li> </ul> <p><br /><br /><br /><br /></p> <?php putDOMjudgeVersion(); require LIBWWWDIR . '/footer.php';
function show_loginpage() { global $ip, $pagename; switch (AUTH_METHOD) { case 'EXTERNAL': if (empty($_SERVER['REMOTE_USER'])) { show_failed_login("No authentication information provided by Apache."); } else { show_failed_login("User '" . htmlspecialchars($_SERVER['REMOTE_USER']) . "' not authorized."); } case 'IPADDRESS': case 'PHP_SESSIONS': case 'LDAP': $title = 'Not Authenticated'; $menu = false; include LIBWWWDIR . '/header.php'; ?> <h1>Not Authenticated</h1> <p> Please supply your credentials below, or contact a staff member for assistance. </p> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post"> <input type="hidden" name="cmd" value="login" /> <table> <tr><td><label for="login">Login:</label></td><td><input type="text" id="login" name="login" value="" size="15" maxlength="15" accesskey="l" autofocus /></td></tr> <tr><td><label for="passwd">Password:</label></td><td><input type="password" id="passwd" name="passwd" value="" size="15" maxlength="255" accesskey="p" /></td></tr> <tr><td></td><td><input type="submit" value="Login" /></td></tr> </table> </form> <?php if (dbconfig_get('allow_registration', false)) { ?> <p>If you do not have an account, you can register for one below: </p> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post"> <input type="hidden" name="cmd" value="register" /> <table> <tr><td><label for="login">Username:</label></td><td><input type="text" id="login" name="login" value="" size="15" maxlength="15" accesskey="l" /></td></tr> <tr><td><label for="passwd">Password:</label></td><td><input type="password" id="passwd" name="passwd" value="" size="15" maxlength="255" accesskey="p" /></td></tr> <tr><td><label for="passwd2">Retype password:</label></td><td><input type="password" id="passwd2" name="passwd2" value="" size="15" maxlength="255" accesskey="r" /></td></tr> <tr><td></td><td><input type="submit" value="Register" /></td></tr> </table> </form> <?php } // endif allow_registration ?> <?php putDOMjudgeVersion(); include LIBWWWDIR . '/footer.php'; break; default: error("Unknown authentication method '" . AUTH_METHOD . "' requested, or login not supported."); } exit; }