', htmlspecialchars($file_name), ' ', '文件未找到', ''; } function echoFilePre($file_name) { global $data_dir; $file_full_name = $data_dir . '/' . $file_name; $finfo = finfo_open(FILEINFO_MIME); $mimetype = finfo_file($finfo, $file_full_name); if ($mimetype === false) { echoFileNotFound($file_name); return; } finfo_close($finfo); 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'){ if ($_FILES["problem_data_file"]["error"] > 0){ $errmsg = "Error: ".$_FILES["problem_data_file"]["error"]; becomeMsgPage('
$esc_submission_requirement
$esc_extra_config
key | '; echo 'value | '; echo '
---|---|
', htmlspecialchars($key), ' | '; echo '', htmlspecialchars($info['val']), ' | '; echo '
', htmlspecialchars($key), ' | '; echo '', htmlspecialchars($info['val']), ' ', ' | '; echo '