예제 #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";
    }
}
예제 #2
0
파일: index.php 프로젝트: hamidos/MarocTour
    <?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">