-
Notifications
You must be signed in to change notification settings - Fork 11
/
scores.php
95 lines (72 loc) · 1.89 KB
/
scores.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/*
* @copyright (c) 2008 Nicolo John Davis
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
session_start();
if(!isset($_SESSION['isloggedin']))
{
echo "<meta http-equiv='Refresh' content='0; URL=login.php' />";
exit(0);
}
else
{
$username = $_SESSION['username'];
$userid = $_SESSION['userid'];
}
include('settings.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="Keywords" content="programming, contest, coding, judge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="images/Envision.css" type="text/css" />
<title>Programming Contest</title>
<script type="text/javascript" src="jquery-1.3.1.js"></script>
<?php include('timer.php'); ?>
<script type="text/javascript">
<!--
$(document).ready(
function()
{
dispTime();
getLeaders();
getDetails();
getScores();
setInterval("dispTime()", 1000);
setInterval("getLeaders()", getLeaderInterval);
setInterval("getDetails()", getLeaderInterval);
setInterval("getScores()", getLeaderInterval);
}
);
-->
</script>
</head>
<body class="menu4">
<!-- wrap starts here -->
<div id="wrap">
<!--header -->
<?php include('header.php'); ?>
<!-- menu -->
<?php include('menu.php'); ?>
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="main">
<table id="scores"> </table>
</div>
<div id="sidebar">
<?php include('sidebar.php'); ?>
</div>
<!-- content-wrap ends here -->
</div>
<!--footer starts here-->
<div id="footer">
<?php include('footer.php'); ?>
</div>
<!-- wrap ends here -->
</div>
</body>
</html>