-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoj-header.php
More file actions
executable file
·35 lines (26 loc) · 1013 Bytes
/
oj-header.php
File metadata and controls
executable file
·35 lines (26 loc) · 1013 Bytes
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
<?php function checkcontest($MSG_CONTEST){
require_once("./include/db_info.inc.php");
$now=strftime("%Y-%m-%d %H:%M",time());
$sql="SELECT count(*) FROM `contest` WHERE `end_time`>'$now' AND `defunct`='N'";
$result=mysql_query($sql);
$row=mysql_fetch_row($result);
if (intval($row[0])==0) $retmsg=$MSG_CONTEST;
else $retmsg=$row[0]."<span class=red> $MSG_CONTEST</span>";
mysql_free_result($result);
return $retmsg;
}
$OJ_FAQ_LINK="faqs.php";
if(isset($OJ_LANG)){
require_once("./lang/$OJ_LANG.php");
if(file_exists("./faqs.$OJ_LANG.php")){
$OJ_FAQ_LINK="faqs.$OJ_LANG.php";
}
}
if($OJ_ONLINE){
require_once('./include/online.php');
$on = new online();
}
$url=basename($_SERVER['REQUEST_URI']);
$view_marquee_msg=file_get_contents($OJ_SAE?"saestor://web/msg.txt":"./admin/msg.txt");
//require("template/".$OJ_TEMPLATE."/oj-header.php");
?>