// // 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 // ////////////////////////////////////////////////////////////////////////////////////////////////////// // Suppression d'un/des écrit/s // v0.2.0 $requiredFiles = array("cache","ecrits"); include_once("head.php"); if($_POST['supprimer'] && $_POST['oui']) { $ecrits->supprimer($journal->courant['id'],$_POST['supprimer']); header("location: gestion?err=".urlencode("Le(s) écrit(s) ont bien été supprimé(s).")); exit; } elseif($_POST['supprimer'] && $_POST['non']) { header("location: gestion"); exit; } if($_POST['supprimer'] && is_array($_POST['supprimer'])) $supprimer = $_POST['supprimer']; elseif($_GET['id'] && is_numeric($_GET['id'])) $supprimer = $_GET['id']; else header("location: gestion?err=".urlencode("Aucun écrit sélectionné à supprimer.")); $page = '
'; page("Supprimer un écrit",$page); ?>