force location

This commit is contained in:
thaaoblues 2023-07-05 08:32:19 +02:00
parent 6e702daa09
commit e1a8336d48
2 changed files with 19 additions and 9 deletions

View file

@ -44,6 +44,8 @@ ob_start(); // Start reading html
include "assets/fonts/color.php";
include "assets/scripts/globals.php";
header("Location: construction.php")
?>
<main>

View file

@ -12,14 +12,17 @@ include "assets/scripts/globals.php"
<ul>
<?php
for($i = 0; $i <= 17; $i++){
echo "<li><a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a></li>";
if(!($_SERVER['REQUEST_URI'] == "/construction.php")){
for($i = 0; $i <= 17; $i++){
echo "<li><a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a></li>";
}
}
?>
</ul>
@ -43,12 +46,17 @@ for($i = 0; $i <= 17; $i++){
<?php
for($i = 0; $i <= 17; $i = $i + 2){
if(!($_SERVER['REQUEST_URI'] == "/construction.php")){
for($i = 0; $i <= 17; $i = $i + 2){
// affiche les liens 2 par 2
echo "<li><a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a>
<a href=\"".$SITE_MAP[$i+1][0]."\">".$SITE_MAP[$i+1][1]."</a></li>";
}
// affiche les liens 2 par 2
echo "<li><a href=\"".$SITE_MAP[$i][0]."\">".$SITE_MAP[$i][1]."</a>
<a href=\"".$SITE_MAP[$i+1][0]."\">".$SITE_MAP[$i+1][1]."</a></li>";
}
?>