-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontest-header.php
More file actions
executable file
·37 lines (33 loc) · 1.43 KB
/
contest-header.php
File metadata and controls
executable file
·37 lines (33 loc) · 1.43 KB
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
<?php
require_once('./include/cache_start.php');
require_once('./include/db_info.inc.php');
if(isset($OJ_LANG)){
require_once("./lang/$OJ_LANG.php");
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel=stylesheet href='./include/<?php echo isset($OJ_CSS)?$OJ_CSS:"hoj.css" ?>' type='text/css'>
</head>
<?php if(isset($_GET['cid']))
$cid=intval($_GET['cid']);
if (isset($_GET['pid']))
$pid=intval($_GET['pid']);
?>
<table width=100% class=toprow><tr align=center>
<td width=15%><a class=hd href='./'><?php echo $MSG_HOME?></a>
<td width=15%><a class=hd href='./bbs.php?cid=<?php echo $cid?>'><?php echo $MSG_BBS?></a>
<td width=15%><a class=hd href='./contest.php?cid=<?php echo $cid?>'><?php echo $MSG_PROBLEMS?></a>
<td width=15%><a class=hd href='./contestrank.php?cid=<?php echo $cid?>'><?php echo $MSG_STANDING?></a>
<td width=15%><a class=hd href='./status.php?cid=<?php echo $cid?>'><?php echo $MSG_STATUS?></a>
<td width=15%><a class=hd href='./conteststatistics.php?cid=<?php echo $cid?>'><?php echo $MSG_STATISTICS?></a>
</tr></table>
<?php
$view_marquee_msg=file_get_contents($OJ_SAE?"saestor://web/msg.txt":"./admin/msg.txt");
?>
<div id=broadcast>
<marquee id=broadcast scrollamount=1 direction=up scrolldelay=250 onMouseOver='this.stop()' onMouseOut='this.start()';>
<?php echo $view_marquee_msg?>
</marquee>
</div><!--end broadcast-->