-
Notifications
You must be signed in to change notification settings - Fork 1
/
table.php
33 lines (32 loc) · 850 Bytes
/
table.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?
if(isset($_GET["lid"]))
{
$params = explode("/", htmlspecialchars($_GET["lid"]));
$lid = explode("-", htmlspecialchars($params[0]));
$lid=$lid[0];
if(!isset($params[1])) $params[1]="";
if(!isset($params[2])) $params[2]="";
if($params[1]!="")
{
if($params[1]=="division" || $params[1]=="conference" || $params[1]=="league" || $params[1]=="simulation" || $params[1]=="groups" || $params[1]=="playoff" || $params[1]=="roundrobin") $table_type=htmlspecialchars($params[1]);
}
if($params[2]!="")
{
if($params[2]=="simulation") $sim=1;
}
}
$content = "";
$table_type = $table_type ?? null;
$sim = $sim ?? null;
// tabulka timov
if($lid)
{
$active_league = $lid;
$content .= Get_Table($lid, $params, $table_type, $sim);
}
// nebola vybrana ziadna liga
else
{
$content .= "Neexistujúca liga";
}
?>