2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
2004-06-16 19:10:24 +00:00
|
|
|
require_once("../inc/cache.inc");
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2004-06-07 03:34:07 +00:00
|
|
|
$sort_by = $_GET["sort_by"];
|
|
|
|
if (!$sort_by) $sort_by = "expavg_credit";
|
|
|
|
$offset = $_GET["offset"];
|
|
|
|
if (!$offset) $offset=0;
|
2004-06-16 23:06:47 +00:00
|
|
|
$teamid = $_GET["teamid"];
|
2004-06-07 03:34:07 +00:00
|
|
|
|
2004-06-16 23:06:47 +00:00
|
|
|
$cache_args = "teamid=$teamid&sort_by=$sort_by&offset=$offset";
|
2004-06-16 19:10:24 +00:00
|
|
|
start_cache(3600, $cache_args);
|
|
|
|
|
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/team.inc");
|
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
db_init();
|
2003-03-21 04:38:55 +00:00
|
|
|
$user = get_logged_in_user(false);
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2003-03-21 04:38:55 +00:00
|
|
|
$result = mysql_query("select * from team where id=$teamid");
|
2002-08-07 18:56:55 +00:00
|
|
|
if ($result) {
|
|
|
|
$team = mysql_fetch_object($result);
|
|
|
|
}
|
|
|
|
if (!$team) {
|
2003-03-21 04:38:55 +00:00
|
|
|
echo ("Can't find team in database");
|
|
|
|
exit();
|
2002-08-07 18:56:55 +00:00
|
|
|
}
|
|
|
|
|
2004-06-07 03:34:07 +00:00
|
|
|
display_team_page($team, $offset, $sort_by);
|
2003-03-21 04:38:55 +00:00
|
|
|
|
2004-06-16 19:10:24 +00:00
|
|
|
end_cache($cache_args);
|
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
?>
|