boinc/html/user/team_display.php

23 lines
407 B
PHP

<?php
require_once("../inc/db.inc");
require_once("../inc/util.inc");
require_once("../inc/team.inc");
db_init();
$user = get_logged_in_user(false);
$teamid = $_GET["teamid"];
$result = mysql_query("select * from team where id=$teamid");
if ($result) {
$team = mysql_fetch_object($result);
}
if (!$team) {
echo ("Can't find team in database");
exit();
}
display_team_page($team, $user);
?>