Skip to content

Commit

Permalink
Update contest-check.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Mar 4, 2024
1 parent 6a2d82a commit 4512604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/web/contest-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
}
}

if(str_contains($view_description,"限时")&&isset($_SESSION[$OJ_NAME."_user_id"])){
if(str_contains($view_description,$OJ_CONTEST_LIMIT_KEYWORD)&&isset($_SESSION[$OJ_NAME."_user_id"])){
echo "<!-- 个人限时赛 -->";
$contest_limit_minutes=intval(getPartByMark($view_description,"限时","分钟")); //允许比赛描述中用 "限时xx分钟" 规定个人做题时间。
$contest_limit_minutes=intval(getPartByMark($view_description,$OJ_CONTEST_LIMIT_KEYWORD,"分钟")); //允许比赛描述中用 "限时xx分钟" 规定个人做题时间。
if($contest_limit_minutes==0) $contest_limit_minutes=120;
echo "<!-- $contest_limit_minutes mins -->";
$user_id=$_SESSION[$OJ_NAME."_user_id"];
Expand Down

0 comments on commit 4512604

Please sign in to comment.