New router and associated pages
This commit is contained in:
parent
68dcb996c9
commit
bed471d75a
12 changed files with 133 additions and 114 deletions
|
|
@ -2,16 +2,7 @@
|
|||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$t = Team::get_teams();
|
||||
foreach ($t as $tt){
|
||||
var_dump ($tt->get_username());
|
||||
}
|
||||
|
||||
if ($SESS->level < 1)
|
||||
{
|
||||
$page = "public/home";
|
||||
}
|
||||
else
|
||||
{
|
||||
$page = "users/home";
|
||||
}
|
||||
$template->assign("teams", Team::get_teams());
|
||||
$template->assign("top", Team::get_top());
|
||||
|
||||
return "public/home";
|
||||
|
|
|
|||
16
onyx/include/public/team.php
Normal file
16
onyx/include/public/team.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
try
|
||||
{
|
||||
$team = new Team($TEAM);
|
||||
|
||||
$template->assign("team", $team);
|
||||
|
||||
return "public/team";
|
||||
}
|
||||
catch($e)
|
||||
{
|
||||
return "404";
|
||||
}
|
||||
Reference in a new issue