Skip to content

Commit

Permalink
Update reinfo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Apr 19, 2023
1 parent 73cb29a commit a40dad2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trunk/web/reinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ function is_valid($str2){
else if(strpos($row['error'],"PASS")!==false) $view_reinfo = "error3";
else if($OJ_SHOW_DIFF && $row && ($ok||$isRE) && ($OJ_TEST_RUN||is_valid($row['error'])||$ok)){
$view_reinfo = htmlentities(str_replace("\n\r","\n",$row['error']),ENT_QUOTES,"UTF-8");
$sql="select pass_rate*100 from solution where solution_id=?";
$result = pdo_query($sql,$id);
if(count($result)>0) $mark=$result[0][0];
$view_reinfo .="<br>$MSG_MARK : $mark";

}
else{
$view_errors = $MSG_WARNING_ACCESS_DENIED;
Expand Down

0 comments on commit a40dad2

Please sign in to comment.