2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("team.inc");
|
2002-12-04 19:14:00 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
db_init();
|
|
|
|
$user = get_logged_in_user();
|
|
|
|
|
2003-03-21 04:38:55 +00:00
|
|
|
$teamid = $_GET["teamid"];
|
2002-12-16 21:41:41 +00:00
|
|
|
|
2003-03-21 04:38:55 +00:00
|
|
|
$query = "select * from team where id = $teamid";
|
2002-11-11 19:40:22 +00:00
|
|
|
$result = mysql_query($query);
|
|
|
|
if ($result) {
|
|
|
|
$team = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
}
|
2002-12-16 21:41:41 +00:00
|
|
|
require_founder_login($user, $team);
|
|
|
|
$team_name = ereg_replace("\"", "'", $team->name);
|
|
|
|
$team_name_html = ereg_replace("\"", "'", $team->name_html);
|
|
|
|
$team_url = ereg_replace("\"", "'", $team->url);
|
|
|
|
$team_description = ereg_replace("\"", "'", $team->description);
|
2002-11-11 19:40:22 +00:00
|
|
|
$team_type = $team->type;
|
|
|
|
page_head("Edit $team_name");
|
2003-03-21 04:38:55 +00:00
|
|
|
team_edit_form($team, "Update team info", "team_edit_action.php");
|
2002-11-11 19:40:22 +00:00
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
?>
|