mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 14:08:41 +00:00
chore(submission): disable hack for remote submissions
This commit is contained in:
parent
8b6ce05198
commit
04ab18076b
@ -109,6 +109,7 @@ function handleUpload($zip_file_name, $content, $tot_size) {
|
||||
|
||||
if (UOJProblem::info('type') == 'remote') {
|
||||
$submit_type = in_array($_POST['answer_remote_submit_type'], $remote_provider['submit_type']) ? $_POST['answer_remote_submit_type'] : $remote_provider['submit_type'][0];
|
||||
$content['remote_judge'] = true;
|
||||
$content['config'][] = ['remote_submit_type', $submit_type];
|
||||
|
||||
if ($submit_type != 'bot') {
|
||||
|
@ -480,6 +480,10 @@ class UOJSubmission {
|
||||
}
|
||||
|
||||
public function preHackCheck(array $user = null) {
|
||||
if ($this->getContent('remote_judge')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->info['score'] == 100 && $this->problem->preHackCheck($user);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user