2004-01-06 22:09:19 +00:00
|
|
|
<?php
|
|
|
|
// show a result
|
|
|
|
|
|
|
|
require_once("db.inc");
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("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);
|
2004-01-08 00:09:26 +00:00
|
|
|
if (!$result) {
|
2004-01-06 22:09:19 +00:00
|
|
|
echo "No such result";
|
|
|
|
exit();
|
|
|
|
}
|
2004-01-08 00:09:26 +00:00
|
|
|
//if ($result->userid != $user->id) {
|
|
|
|
// echo "No access";
|
|
|
|
// exit();
|
|
|
|
//}
|
2004-01-06 22:09:19 +00:00
|
|
|
show_result($result);
|
|
|
|
page_tail();
|
|
|
|
?>
|