*@author Jean-Pascal MILCENT *@copyright Tela-Botanica 2000-2003 *@version 01 juillet 2002 // +-----------------------------------------------------------------------------------------------+ // // $Id: lib.carto.extractimg.php,v 1.1 2005-09-22 14:02:49 ddelon Exp $ // FICHIER : $RCSfile: lib.carto.extractimg.php,v $ // AUTEUR : $Author: ddelon $ // VERSION : $Revision: 1.1 $ // DATE : $Date: 2005-09-22 14:02:49 $ // // +-----------------------------------------------------------------------------------------------+ // A FAIRE : // */ $image = imagecreatefrompng('tmp/carto/'.$fichier.'.png'); chmod ('tmp/carto/'.$fichier.'.png', 755) ; header('Expires: Wen, 01 Dec 1999 01:00:00 GMT');// Date du passé header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');// toujours modifié header('Cache-Control: no-cache, must-revalidate');// HTTP/1.1 header('Pragma: no-cache'); // HTTP/1.0 header ('content-type:image/png'); imagepng($image); unlink('tmp/carto/'.$fichier.'.png'); //Nous nettoyons le dossier tmp des fichiers qu'il contient: $poignet_de_dossier = opendir('tmp/carto/'); while ($fichier_dechet = readdir($poignet_de_dossier)) { if ($fichier_dechet != '.' && $fichier_dechet != '..') { unlink(CAR_CHEMIN_TMP.$fichier_dechet); } } closedir($poignet_de_dossier); exit(); //-- Fin du code source ------------------------------------------------------------ /* * $Log: not supported by cvs2svn $ * Revision 1.2 2005/09/22 13:30:49 florian * modifs pour compatibilité XHTML Strict + corrections de bugs (mais ya encore du boulot!!) * * Revision 1.1 2004/12/15 13:30:20 alex * version initiale * * Revision 1.7 2003/03/04 08:09:39 jpm * Ajout suppression des fichiers carto du dossier carto temporaire. * * Revision 1.6 2003/02/21 13:50:57 jpm * Mise à jour nouvel objet Carto_Carte. * * Revision 1.5 2003/02/14 07:56:45 jpm * Ajout d'un entête. * Ajout de requêtes HTTP pour éviter le cache. * * * */ ?>