$path="src/"; // On filtre la langue. $language = $_GET['language']; $languageOK = array( 'fr' => 'fr/', 'en' => 'en/' ); if (isset($language)) { $languagepath = $languageOK[$language]; if (isset($language)) { $path = $path.$languagepath; } else { $path = $path."fr/"; } } else { $path = $path."fr/"; } $path = $path."index.php"; $page = $_GET['page']; include($path); ?>