| Line 19... |
Line 19... |
| 19 |
// | |
|
19 |
// | |
|
| 20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
| 21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
| 22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
| 24 |
// CVS : $Id: carto.php,v 1.3 2005-02-22 19:35:08 jpm Exp $
|
24 |
// CVS : $Id: carto.php,v 1.4 2006-05-31 14:43:35 jp_milcent Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Fournie une image cartographique.
|
26 |
* Fournie une image cartographique.
|
| 27 |
*
|
27 |
*
|
| 28 |
* Fichier permettant de récupérer l'image d'une carte créer par la bibliothèque cartographique
|
28 |
* Fichier permettant de récupérer l'image d'une carte créer par la bibliothèque cartographique
|
| 29 |
* et de la faire passer dans les entête HTTP.
|
29 |
* et de la faire passer dans les entête HTTP.
|
| Line 33... |
Line 33... |
| 33 |
*@author Nicolas MATHIEU
|
33 |
*@author Nicolas MATHIEU
|
| 34 |
//Autres auteurs :
|
34 |
//Autres auteurs :
|
| 35 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
35 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 36 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
36 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
| 37 |
*@copyright Tela-Botanica 2000-2004
|
37 |
*@copyright Tela-Botanica 2000-2004
|
| 38 |
*@version $Revision: 1.3 $ $Date: 2005-02-22 19:35:08 $
|
38 |
*@version $Revision: 1.4 $ $Date: 2006-05-31 14:43:35 $
|
| 39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
| 40 |
*/
|
40 |
*/
|
| Line 41... |
Line 41... |
| 41 |
|
41 |
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
// | ENTETE du PROGRAMME |
|
43 |
// | ENTETE du PROGRAMME |
|
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
| - |
|
45 |
session_name($_GET['session_name']);
|
| 45 |
session_name($_GET['session']);
|
46 |
session_id($_GET['session_id']);
|
| Line 46... |
Line 47... |
| 46 |
session_start();
|
47 |
session_start();
|
| 47 |
|
48 |
|
| 48 |
// +------------------------------------------------------------------------------------------------------+
|
49 |
// +------------------------------------------------------------------------------------------------------+
|
| 49 |
// | CORPS du PROGRAMME |
|
50 |
// | CORPS du PROGRAMME |
|
| 50 |
// +------------------------------------------------------------------------------------------------------+
|
51 |
// +------------------------------------------------------------------------------------------------------+
|
| - |
|
52 |
$image = imagecreatefrompng($_SESSION['chemin'].$_SESSION['fichier'].'.png');
|
| 51 |
$image = imagecreatefrompng($_SESSION['chemin'].$_SESSION['fichier'].'.png');
|
53 |
if (!$image) {
|
| 52 |
if (!$image) {
|
54 |
echo '<pre>';
|
| - |
|
55 |
echo session_name()."\n";
|
| - |
|
56 |
echo session_id()."\n";
|
| 53 |
echo session_name();
|
57 |
echo $_SESSION['chemin'].$_SESSION['fichier'].'.png'."\n";
|
| 54 |
echo session_id();
|
58 |
echo '</pre>';
|
| 55 |
trigger_error($image);
|
59 |
trigger_error($image);
|
| 56 |
} else {
|
60 |
} else {
|
| 57 |
header("Expires: Wen, 01 Dec 1999 01:00:00 GMT");// Date du passé
|
61 |
header("Expires: Wen, 01 Dec 1999 01:00:00 GMT");// Date du passé
|
| Line 78... |
Line 82... |
| 78 |
exit();
|
82 |
exit();
|
| Line 79... |
Line 83... |
| 79 |
|
83 |
|
| 80 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
84 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 81 |
*
|
85 |
*
|
| - |
|
86 |
* $Log: not supported by cvs2svn $
|
| - |
|
87 |
* Revision 1.3 2005/02/22 19:35:08 jpm
|
| - |
|
88 |
* Fin de gestion des variables via les sessions.
|
| 82 |
* $Log: not supported by cvs2svn $
|
89 |
*
|
| 83 |
* Revision 1.2 2005/02/22 16:35:16 jpm
|
90 |
* Revision 1.2 2005/02/22 16:35:16 jpm
|
| 84 |
* Mise en forme.
|
91 |
* Mise en forme.
|
| 85 |
* Utilisation de constantes pour les chemins d'accès aux fichiers.
|
92 |
* Utilisation de constantes pour les chemins d'accès aux fichiers.
|
| 86 |
* Ajout de commentaires.
|
93 |
* Ajout de commentaires.
|