mirror of https://github.com/BOINC/boinc.git
35 lines
896 B
PHP
35 lines
896 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();
|
|
$id = $_GET["id"];
|
|
|
|
$query = "select * from team where id = $id";
|
|
$result = mysql_query($query);
|
|
if ($result) {
|
|
$team = mysql_fetch_object($result);
|
|
mysql_free_result($result);
|
|
}
|
|
$team_name = $team->name;
|
|
$team_id = $team->id;
|
|
page_head("Join $team_name");
|
|
echo "<h2>Join $team_name</h2>
|
|
<p><b>Please note:</b>
|
|
<ul>
|
|
<li> Joining a team gives its founder access to your email address.
|
|
<li> Joining a team does not affect your account's credit.
|
|
</ul>
|
|
<hr>
|
|
<form method=post action=team_join_action.php>
|
|
<input type=hidden name=teamid value=$team_id>
|
|
<input type=submit value='Join team'>
|
|
</form>
|
|
";
|
|
page_tail();
|
|
|
|
?>
|