2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("team.inc");
|
2002-11-11 19:40:22 +00:00
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
db_init();
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2003-03-21 04:38:55 +00:00
|
|
|
$id = $_GET["id"];
|
2002-11-11 19:40:22 +00:00
|
|
|
|
|
|
|
$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");
|
2003-03-21 04:38:55 +00:00
|
|
|
echo "<h2>Join $team_name</h2>
|
|
|
|
<p><b>Please note before joining or switching to a team:</b>
|
|
|
|
<ul>
|
|
|
|
<li> Your credit will be transferred from your old team (if any)
|
|
|
|
to the new team.
|
|
|
|
<li> Joining a team does not affect your account's credit.
|
|
|
|
<li> Joining a team gives its founder access to your email address.
|
|
|
|
</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>
|
|
|
|
";
|
2002-11-11 19:40:22 +00:00
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
|
|
|
|
?>
|