$filenameDest = $imageManager->fileDestManagement( $source, $_POST[ "id" ] ); // ---- Image -------- // $destination = $_SERVER[ "DOCUMENT_ROOT" ] . '/photos/produit' . $filenameDest; if ( $debug ) echo "Destination : " . $destination . "<br>"; $imageManager->imageResize( $source, $destination, 637, null, ZEBRA_IMAGE_CROP_CENTER ); $_POST[ "image" ] = $filenameDest; } } $imageManager = null; // ---------------------------------------------- // // ---- Traitement des donn�es ------------------ // if ( 1 == 1 ) { $id = $produit->gererDonnees( $_POST, $debug ); } // ---------------------------------------------- // // ---- Redirection apr�s traitement ------------ // if ( 1 == 1 ) { // ---- Modification... ---- // if ( $_POST[ "id" ] != '' ) $page_redirection = "/admin/produit/edition.php?id=" . $id; // ---- Ajout... ----------- // else $page_redirection = "/admin/produit/liste.php"; if ( $debug ) echo "Redirection vers " . $page_redirection; else header( "Location: " . $page_redirection ); exit();