<?php
include_once "autorisation.php";
$file = 'a_venir.html';
$dir = 'html/personnel/';
if(isset($_REQUEST['file'])) {
list($f,$e) = explode('.',basename(strtolower($_REQUEST['file'])));
if(ctype_alnum(str_replace(['-','_'], '', $f))) {
if(file_exists($dir.$f.".html")) {
$file = $f.".html";
} else {
if(file_exists($file.".html")) {
include($file.$e);
} else {
header("Location: https://".$_SERVER["SERVER_NAME"]."/personnel.html");
}
exit;
}
}
}
?>
<!DOCTYPE html>
<HTML lang="fr">
<!DOCTYPE html>
<?php include 'html/header.html';?>
<BODY>
<!-- Ask consent for cookies. -->
<?php include 'php/cookieconsent.php'; ?>
<div class="mainview">
<?php include 'html/menu.html'; ?>
<div class='pure-g center'>
<div class='pure-u-11-24'>
<div class='content bio'>
<?php include $dir.$file; ?>
</div>
</div>
</div>
<?php include 'html/footer.html'; ?>
</div>
</BODY>
</HTML>
<?php
?>