blob: 39d2cb3daef61c3e767e17cdc6eac55c15e9da88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
require_once('../../php/status.inc.php');
$subid = json_decode($_POST['subid']);
if(gettype($subid) != 'integer' || $subid < 1){
exit('Esubid');
}
$sqlc = db_connect();
if(!status::subid_is_available($sqlc,$subid)){
exit('Epermission');
}
db_close($sqlc);
$subdir = '/srv/http/toj/center/submit/'.($subid - ($subid % 1000)).'/'.$subid.'/result/';
if(($result = file_get_contents($subdir.'result')) == ''){
exit('Enull');
}
echo($result);
?>
|