We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea97f8 commit 5063d08Copy full SHA for 5063d08
trunk/web/include/login-hustoj.php
@@ -31,7 +31,7 @@ function check_login($user_id,$password){
31
}
32
if(isset($OJ_EXAM_CONTEST_ID)&&intval($OJ_EXAM_CONTEST_ID)>0){ //考试模式
33
$ccid=$OJ_EXAM_CONTEST_ID;
34
- $sql="select min(start_time) from contest where start_time<=now() and end_time>=now() and contest_id>=?";
+ $sql="select min(start_time - INTERVAL 30 MINUTE) from contest where start_time<=now() and end_time>=now() and contest_id>=?";
35
$rows=pdo_query($sql,$ccid);
36
$start_time=$rows[0][0];
37
$sql="select ip from loginlog where user_id=? and time>? order by time desc limit 1";
0 commit comments