MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b2038/dev.studioedam.com/
File Upload :
Current < : /hermes/bosweb/b2038/dev.studioedam.com/site.php

<?php
    include_once "autorisation.php";

    $loc = array(
        'php'  => 'php/',
        'html' => 'html/',
        'staff'=> 'html/personnel/'
    );
    $file = "";
    $dir  = 'html';
    if(count(array_keys($_REQUEST)) >0) {
        $f = array_keys($_REQUEST)[0];
        if(file_exists($loc['html'].$f.".html")) {
                $file = $f.".html";
                $dir  = "html";
        } elseif(file_exists($loc['staff'].$f.".html")) {
                $file = $f.".html";
                $dir  = $loc['staff'];
        } else {
                header("HTTP/1.0 404 Not Found");
                exit;
        }
    } else {
        $file = 'index.html';
    }
?>
<!DOCTYPE html>
<HTML lang="fr">
<!DOCTYPE html>
    <?php include $loc['html'].'header.html';?>
    <BODY>
        <!-- Ask consent for cookies. -->
        <?php include $loc['php'].'cookieconsent.php'; ?>

        <div class="mainview">
        <?php
            include $loc['html'].'menu.html';

            //if($file == 'accueil.html') {
            //    include 'carousel.html';
            //}
            if(substr($file, 0, strlen("personnel/")) === "personnel/") {
?>
            <div class='pure-g center'>
               <div class='pure-u-11-24'>
                   <div class='content bio'>
<?php
            }
            include $loc[$dir].$file;
            if(substr($file, 0, strlen("personnel/")) === "personnel/") {
?>
                   </div>
                </div>
            </div>
<?php
            }

            if($file == 'index.html') {
                include $loc['html'].'accueil.html';
            }
            include $loc['html'].'footer.html';
        ?>
        </div>
    </BODY>
</HTML>
<?php
?>