Exemplo n.º 1
0
<?php

if ($access != 'VALID') {
    header('location:../../index.php');
}
//Contrôleur secondaire affichage admin
$retour = '';
if (!isset($_SESSION['admin'])) {
    header('location:../../index.php');
} else {
    if (isset($_GET['b'])) {
        include_once "model/blog/fonctions_blog.php";
        $article = afficher_article($_GET['b']);
        $title = $article['Articletitle'];
        include_once "view/blog/afficher_article.php";
    }
}
Exemplo n.º 2
0
    <?php 
$title = "MarocTour";
?>
    <?php 
include "includes/header.php";
?>
    <head>
      <link href="includes/css/galerie.css" rel="stylesheet">
    </head>
  	<aside id="contenu">
      <?php 
require "configuration.php";
$action = isset($_GET['action']) ? $_GET['action'] : "";
switch ($action) {
    case 'afficher_article':
        afficher_article();
        break;
    case 'afficher_articles':
        afficher_articles();
        break;
    default:
        echo '
           <div id="galerie">
              <div id="images">
                <div class="slide active-slide">
                     <img src="images/karaweyen.jpg">
                </div>
                <div class="slide slide-feature">
                    <img src="images/menara.jpg">
                </div>
                <div class="slide">