userCanManage(Auth::user()) || UOJResponse::page403(); UOJProblem::info('type') === 'local' || UOJResponse::page404(); $tabs_info = [ 'statement' => [ 'name' => '题面', 'url' => UOJProblem::cur()->getUri('/manage/statement'), ], 'permissions' => [ 'name' => '权限', 'url' => UOJProblem::cur()->getUri('/manage/permissions'), ], 'data' => [ 'name' => '数据', 'url' => UOJProblem::cur()->getUri('/manage/data'), ], ]; $problem = UOJProblem::info(); $problem_extra_config = UOJProblem::cur()->getExtraConfig(); $data_dir = "/var/uoj_data/{$problem['id']}"; function echoFileNotFound($file_name) { echo '
', "\n"; $output_limit = 1000; if (strStartWith($mimetype, 'text/')) { echo htmlspecialchars(uojFilePreview($file_full_name, $output_limit)); } else { echo htmlspecialchars(uojFilePreview($file_full_name, $output_limit, 'binary')); } echo "\n"; } // 上传数据 if ($_POST['problem_data_file_submit'] == 'submit') { crsf_defend(); if ($_FILES["problem_data_file"]["error"] > 0) { $errmsg = "Error: " . $_FILES["problem_data_file"]["error"]; UOJResponse::message('
$esc_submission_requirement
$esc_extra_config