Republishing of FIC2014 challenges
This commit is contained in:
parent
939e6d994d
commit
c54f929846
24 changed files with 329 additions and 117 deletions
|
|
@ -131,7 +131,7 @@ else if ($n && $p[0] == SALT_USER)
|
|||
$page = "teams/list";
|
||||
}
|
||||
|
||||
else if (empty($VAR["start_challenge"]))
|
||||
else if (!empty($p[1]) && empty($VAR["start_challenge"]))
|
||||
{
|
||||
$TEAM = new Team($p[1]);
|
||||
$template->assign("my_team", $TEAM);
|
||||
|
|
@ -141,6 +141,17 @@ else if ($n && $p[0] == SALT_USER)
|
|||
$page = "teams/lobby";
|
||||
}
|
||||
|
||||
else if (!empty($p[1]) && time() > $VAR["end_challenge"])
|
||||
{
|
||||
$TEAM = new Team($p[1]);
|
||||
$template->assign("my_team", $TEAM);
|
||||
$template->assign("themes", Theme::get_themes());
|
||||
$template->assign("rank", Team::get_top());
|
||||
|
||||
require("team/summary.php");
|
||||
$page = "teams/end";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$TEAM = new Team($p[1]);
|
||||
|
|
|
|||
Reference in a new issue