// // This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. // // To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/1.0/ // // or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. // // Francais (brouillon): http://creativecommons.org/projects/international/fr/translated-license // ////////////////////////////////////////////////////////////////////////////////////////////////////// // Lecture d'un écrit // v0.2.3 $requiredFiles = array("ecrits","fonctions"); include_once("head.php"); $id = $_GET['id']; if(empty($id)) $id = $_SERVER['argv'][0]; if(empty($id)) header("location: ./?err=".urlencode("Aucun ID d'écrit spécifié.")); $ecrit = $ecrits->lire($journal->courant['id'],$id); if($ecrit == FALSE) { header("location: gestion?err=".urlencode("Cet écrit n'existe pas.")); exit; } $date = date_fr("l j",$ecrit['date']).' '.date_fr("F Y",$ecrit['date']). ' à '.date("G\hi",$ecrit['date']); #$url = $ecrits->get_url($journal->courant['id'],$id,$ecrit['date'],$ecrit['name']); $url = id2url($journal->courant['id']).$ecrit['uri']; $page = '

'.$date.'

'.$ecrit['texte_html'].'
'; page($ecrit['titre'],$page); ?>