Historisation Exemple

Exemple test historisé
This commit is contained in:
2018-10-21 18:37:25 +02:00
commit ba3d8f06f6
153 changed files with 32155 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
// On demande les 5 derniers billets (mod<6F>le)
include_once('modele/blog/get_billets.php');
$billets = get_billets(0, 5);
// On effectue du traitement sur les donn<6E>es (contr<74>leur)
// Ici, on doit surtout s<>curiser l'affichage
foreach($billets as $cle => $billet)
{
$billets[$cle]['titre'] = htmlspecialchars($billet['titre']);
$billets[$cle]['contenu'] = nl2br(htmlspecialchars($billet['contenu']));
}
// On affiche la page (vue)
include_once('vue/blog/index.php');