forked from vergnet/site-accueil-insa
56 lines
No EOL
1 KiB
PHP
56 lines
No EOL
1 KiB
PHP
<?php
|
|
ob_start(); // Start reading html
|
|
|
|
if(isset($_GET['team']))
|
|
{
|
|
$team = htmlspecialchars($_GET['team']);
|
|
} else {
|
|
header('Location: error.php');
|
|
}
|
|
?>
|
|
<main>
|
|
|
|
<?php
|
|
if($team === "boomario") {
|
|
?>
|
|
<div class="box-jaune">
|
|
<span class="corners corners-top"></span>
|
|
<span class="corners corners-bottom"></span>
|
|
|
|
<div class="title">Boomario</div>
|
|
|
|
<span class="circles circles-top"></span>
|
|
<span class="circles circles-bottom"></span>
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
} elseif($team === "pkpeach") {
|
|
?>
|
|
<div class="box-jaune">
|
|
<span class="corners corners-top"></span>
|
|
<span class="corners corners-bottom"></span>
|
|
|
|
<div class="title">PKpeach</div>
|
|
|
|
<span class="circles circles-top"></span>
|
|
<span class="circles circles-bottom"></span>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
} else {
|
|
header('Location: error.php');
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
</main>
|
|
<?php
|
|
$infopage = ["", "team", ob_get_clean(), "", "team"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
|
|
include("structure/template.php");
|
|
?>
|