id_post=intval($infos_post[0]); $auteur=new FclFlux_utilisateur(); $auteur->id_utilisateur=intval($infos_post[1]); $time_crea=intval($infos_post[2]); $ticket=""; if(!empty($page[3])) $ticket=$page[3]; $validation=$post->validation_auteur($time_crea,$auteur,$ticket); $Bd=null; if(!empty($post->erreurs)) $msg=$post->erreurs; elseif($validation===false) $msg[0]=ERREUR_IMPREVUE; else { //$_SESSION["message"]=MSG_UTILISA_ENVOI_POST_VALID; //header("Location:".PAGE_ACCUEIL); // possibilité de télécharger une illustration : header("Location:".PAGE_AJOUT_POST_ILLUSTRATION.$post->id_post); exit(); } } include("../vues/post_validation.php");