Tu lis l'exemple, tout y est.
<?php
if (condition) {
blabla1
} else {
blabla2
}
?>
qu'est ce qu'il faut de plus ?
<?
$pageOK = array('accueil' => 'accueil.php',
'aa' => 'aa.php',
'bf2' => 'bf2.php',
'team' => 'team.php',
'tel' => 'tel.php',
'contacts' => 'contacts.php');
if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) {
include($pageOK[$_GET['page']]); // Nous appelons le contenu central de la page
}else{
include("index.html"); //mettre ici l'adresse de la page par defaut
}
?>