boinc/html/user/result.php

26 lines
594 B
PHP

<?php
// show a result
require_once("../inc/db.inc");
require_once("../inc/util.inc");
require_once("../inc/result.inc");
db_init();
$resultid = $_GET["resultid"];
page_head("Result");
$user = get_logged_in_user();
$r = mysql_query("select * from result where id=$resultid");
$result = mysql_fetch_object($r);
mysql_free_result($r);
if (!$result) {
echo "No such result";
exit();
}
//if ($result->userid != $user->id) {
// echo "No access";
// exit();
//}
show_result($result);
page_tail();
?>