Compare commits

...

2 commits

Author SHA1 Message Date
18a555e14a clubs.php chargement 2022-06-11 12:43:31 +02:00
6250aefacc get boomario/pkpeach 2022-06-11 00:35:52 +02:00
5 changed files with 55 additions and 14 deletions

View file

@ -1,13 +1,5 @@
section {
display: block;
}
.box-jaune {
position: absolute;
z-index: 3;
top: 0;
left: 0;
margin: 0;
body {
text-align: center;
}
.iframe_amicale {

BIN
assets/img/error.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View file

@ -2,17 +2,15 @@
ob_start(); // Start reading html
?>
<main>
<!--<section>
<div class="box-jaune">
<span class="corners corners-top"></span>
<span class="corners corners-bottom"></span>
<div class="title"><a href="https://amicale-insat.fr/clubs" target="_NEWWWWW" class="link_in_yellow_box">amicale-insat.fr/clubs</a></div>
<div class="title">Chargement en cours ...<br><a href="https://amicale-insat.fr/clubs" target="_NEWWWWW" class="link_in_yellow_box">amicale-insat.fr/clubs</a></div>
<span class="circles circles-top"></span>
<span class="circles circles-bottom"></span>
</div>
</section>-->
<section>
<iframe src="https://amicale-insat.fr/clubs" class="iframe_amicale" allow="fullscreen" scrolling="auto"></iframe>
</section>

10
error.php Normal file
View file

@ -0,0 +1,10 @@
<?php
ob_start(); // Start reading html
?>
<main>
<img src="assets/img/error.JPG" style="margin-top: 50px;width:50vw;">
</main>
<?php
$infopage = ["", "Erreur 404", ob_get_clean(), "", "erreur"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
include("structure/template.php");
?>

View file

@ -1,11 +1,52 @@
<?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>
<!-- pkpeach vs boomario il faudra changer $infopage avec pour pagetitle boomario ou pkpeach et le contenu selon un GET-->
<?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>