-
Notifications
You must be signed in to change notification settings - Fork 1
/
ShowLog.php
51 lines (40 loc) · 1.02 KB
/
ShowLog.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="zh-cn">
<?php require_once('Php/HTML_Head.php') ?>
<?php
$RunID = intval($_GET['RunID']);
if (!can_read_log()) {
header('Location: /Message.php?Msg=您没有权限查看日志');
die();
}
?>
<body>
<?php require_once('Php/Page_Header.php') ?>
<div class="container">
<h3>详细评测信息 ID: <?php echo $RunID ?></h3>
<?php
echo '<div class="panel panel-default animated fadeInLeft">';
echo '<div class="panel-heading">编译日志</div>';
echo '<div class="panel-body">';
echo '<pre class="SlateFix">';
echo '评测日志需要在评测机端查看';
/*
$File_Path = './Judge/log/Judge_' . $RunID . '.log';
if (file_exists($File_Path)) {
$file_arr = file($File_Path);
for ($i = 0; $i < count($file_arr); $i++) {
$str_encode = mb_convert_encoding($file_arr[$i], 'UTF-8', 'GBK');
echo $str_encode;
}
}*/
echo '</pre>';
echo '</div>';
echo '</div>';
?>
</div>
<?php
$PageActive = '#admin';
require_once('Php/Page_Footer.php');
?>
</body>
</html>