echo "</section>" . PHP_EOL; } elseif ($_GET['todo'] == 'format') { generateHTMLHeader('format'); echo "<section id='content'>" . PHP_EOL; require "content/infos/format.php"; echo "</section>" . PHP_EOL; } elseif ($_GET['todo'] == 'deroulement') { generateHTMLHeader('déroulement'); echo "<section id='content'>" . PHP_EOL; require "content/infos/deroulement.php"; echo "</section>" . PHP_EOL; } elseif ($_GET['todo'] == 'lire') { generateHTMLHeader('lire'); echo "<section id='content'>" . PHP_EOL; require "content/lire.php"; echo "</section>" . PHP_EOL; } elseif ($_GET['todo'] == 'partenaires') { generateHTMLHeader('partenaires'); echo "<section id='content'>" . PHP_EOL; require "content/partenaires.php"; echo "</section>" . PHP_EOL; } } else { generateHTMLHeader('accueil'); echo "<section id='content'>" . PHP_EOL; require "content/accueil.php"; echo "</section>" . PHP_EOL; } ?> </html>
<!DOCTYPE html> <?php require 'utilities/utils.php'; if (array_key_exists('page', $_GET)) { $askedPage = $_GET['page']; } else { $askedPage = "accueil"; } $authorized = checkPage($askedPage); if ($authorized) { $pageTitle = getPageTitle($askedPage); } else { $pageTitle = "Cette page n'est pas accessible"; $askedPage = "erreur"; } generateHTMLHeader($pageTitle); ?> <div class="container"> <?php generateMenu($askedPage); ?> <div class="jumbotron"> <?php echo "<h1>{$pageTitle}</h1>"; ?> <p>Ceci est le site du binet photo</p> </div> <div id="content"> <?php if ($authorized) {
<html> <head> <?php if (isset($_GET['page'])) { $askedPage = $_GET['page']; } else { $askedPage = "welcome"; } $authorized = checkPage($askedPage); if ($authorized) { $pageTitle = getPageTitle($askedPage); } else { $pageTitle = "Error"; } $members = checkMember($askedPage); generateHTMLHeader($pageTitle, "css/perso.css"); ?> </head> <body> <nav class="navbar navbar-default navbar-fixed-top"> <?php generateMenu(); $members = checkMember($askedPage); ?> </nav> <div id="content"> <?php if ($authorized && $members) { require "content/content-{$askedPage}.php";