[SPIP Zone] r4721 - in /_plugins_/_contenu_editorial_/spipcarto: base/carto.php exec/cartes.php exec/cartes_edit.php exec/cartes_import.php inc/carto.php

Author: bill@adequates.com
Date: Sat Aug 19 12:22:10 2006
New Revision: 4721

Log:
suite de la reorganisation

Modified:
    _plugins_/_contenu_editorial_/spipcarto/base/carto.php
    _plugins_/_contenu_editorial_/spipcarto/exec/cartes.php
    _plugins_/_contenu_editorial_/spipcarto/exec/cartes_edit.php
    _plugins_/_contenu_editorial_/spipcarto/exec/cartes_import.php
    _plugins_/_contenu_editorial_/spipcarto/inc/carto.php

Modified: _plugins_/_contenu_editorial_/spipcarto/base/carto.php

--- _plugins_/_contenu_editorial_/spipcarto/base/carto.php (original)
+++ _plugins_/_contenu_editorial_/spipcarto/base/carto.php Sat Aug 19 12:22:10 2006
@@ -36,6 +36,7 @@
� -
*
\***************************************************************************/
+$GLOBALS['rep_cartes']="spipcarto";
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// PARAMETRAGE

Modified: _plugins_/_contenu_editorial_/spipcarto/exec/cartes.php

--- _plugins_/_contenu_editorial_/spipcarto/exec/cartes.php (original)
+++ _plugins_/_contenu_editorial_/spipcarto/exec/cartes.php Sat Aug 19 12:22:10 2006
@@ -1,23 +1,23 @@
<?php
/*****************************************************************************\
-* SPIP-CARTO, Solution de partage et d’élaboration d’information
+* SPIP-CARTO, Solution de partage et d��laboration d�information
* (Carto)Graphique sous SPIP
*
* Copyright (c) 2005
*
-* Stéphane Laurent, François-Xavier Prunayre, Pierre Giraud, Jean-Claude
+* St�phane Laurent, Fran�ois-Xavier Prunayre, Pierre Giraud, Jean-Claude
* Moissinac et tous les membres du projet SPIP-CARTO V1 (Annie Danzart - Arnaud
-* Fontaine - Arnaud Saint Léger - Benoit Veler - Christine Potier - Christophe
+* Fontaine - Arnaud Saint L�ger - Benoit Veler - Christine Potier - Christophe
* Betin - Daniel Faivre - David Delon - David Jonglez - Eric Guichard - Jacques
-* Chatignoux - Julien Custot - Laurent Jégou - Mathieu Géhin - Michel Briand -
-* Mose - Olivier Frérot - Philippe Fournel - Thierry Joliveau)
+* Chatignoux - Julien Custot - Laurent J�gou - Mathieu G�hin - Michel Briand -
+* Mose - Olivier Fr�rot - Philippe Fournel - Thierry Joliveau)
*
* voir : http://www.geolibre.net/article.php3?id_article=16
*
* Ce programme est un logiciel libre distribue sous licence GNU/GPL.
-* Pour plus de details voir le fichier COPYING.txt ou l’aide en ligne.
+* Pour plus de details voir le fichier COPYING.txt ou l�aide en ligne.
*
-— -
+� -
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License, or
@@ -33,7 +33,7 @@
the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
or check http://www.gnu.org/copyleft/gpl.html
-— -
+� -
*
\***************************************************************************/

@@ -47,7 +47,8 @@

function exec_cartes() {

- include(_DIR_PLUGIN_SPIPCARTO."/inc/carto.php");
+// include(_DIR_PLUGIN_SPIPCARTO."/inc/carto.php");
+ include_spip("inc/carto");
   include_spip ("inc/presentation");
   include_spip ("base/abstract_sql");
// include_spip("inc/objet");

Modified: _plugins_/_contenu_editorial_/spipcarto/exec/cartes_edit.php

--- _plugins_/_contenu_editorial_/spipcarto/exec/cartes_edit.php (original)
+++ _plugins_/_contenu_editorial_/spipcarto/exec/cartes_edit.php Sat Aug 19 12:22:10 2006
@@ -1,24 +1,24 @@
<?php

/*****************************************************************************\
-* SPIP-CARTO, Solution de partage et d’élaboration d’information
+* SPIP-CARTO, Solution de partage et d��laboration d�information
* (Carto)Graphique sous SPIP
*
* Copyright (c) 2005
*
-* Stéphane Laurent, François-Xavier Prunayre, Pierre Giraud, Jean-Claude
+* St�phane Laurent, Fran�ois-Xavier Prunayre, Pierre Giraud, Jean-Claude
* Moissinac et tous les membres du projet SPIP-CARTO V1 (Annie Danzart - Arnaud
-* Fontaine - Arnaud Saint Léger - Benoit Veler - Christine Potier - Christophe
+* Fontaine - Arnaud Saint L�ger - Benoit Veler - Christine Potier - Christophe
* Betin - Daniel Faivre - David Delon - David Jonglez - Eric Guichard - Jacques
-* Chatignoux - Julien Custot - Laurent Jégou - Mathieu Géhin - Michel Briand -
-* Mose - Olivier Frérot - Philippe Fournel - Thierry Joliveau)
+* Chatignoux - Julien Custot - Laurent J�gou - Mathieu G�hin - Michel Briand -
+* Mose - Olivier Fr�rot - Philippe Fournel - Thierry Joliveau)
*
* voir : http://www.geolibre.net/article.php3?id_article=16
*
* Ce programme est un logiciel libre distribue sous licence GNU/GPL.
-* Pour plus de details voir le fichier COPYING.txt ou l’aide en ligne.
+* Pour plus de details voir le fichier COPYING.txt ou l�aide en ligne.
*
-— -
+� -
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License, or
@@ -34,7 +34,7 @@
the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
or check http://www.gnu.org/copyleft/gpl.html
-— -
+� -
*
\***************************************************************************/

@@ -47,7 +47,8 @@
//------------------------la fonction qui fait tout-----------------------------------

function exec_cartes_edit() {
-include(_DIR_PLUGIN_SPIPCARTO."/spipcarto_fonctions.php");
+//include(_DIR_PLUGIN_SPIPCARTO."/spipcarto_fonctions.php");
+include_spip("spipcarto_fonctions");
include_spip ("inc/carto");
include_spip ("inc/carto_import");
include_spip ("inc/presentation");
@@ -171,7 +172,7 @@
if ($id_carte && $flag_editable) {
   // Ajout d'un objet
   if ($selection_type) {
- $geometrie=coords2wkt($selection_type,$selection_coords, worldfile2array($row['callage']), $url_carte); // Si pas de fonction de zoom le callage correspond bien à la valeur. Sinon avec zoom, il faut passer les coordonnées géographiques de la vue en cours ....
+ $geometrie=coords2wkt($selection_type,$selection_coords, worldfile2array($row['callage']), $url_carte); // Si pas de fonction de zoom le callage correspond bien � la valeur. Sinon avec zoom, il faut passer les coordonn�es g�ographiques de la vue en cours ....
     $objet_titre = _T("spipcarto:objet_nouvel");
     $url_objet = "#";
     //TODO : passer tout ca en spip_abstract ...
@@ -325,7 +326,7 @@
     
     //echo "<div style='margin: 10px; padding: 10px; border: 1px dashed $couleur_foncee;'>";
     
- //remplacer id par appel à spip_carte
+ //remplacer id par appel � spip_carte
     //TODO : gerer zoom et position
     //if (intval($url_carte)>0) $leurl_carte="../spip_carto.php?fond_carte=".intval($url_carte);
     //else $leurl_carte=$url_carte;
@@ -344,7 +345,7 @@
     fin_cadre_relief();
   }
   
- //articles liés
+ //articles li�s
   afficher_articles(_T("spipcarto:carte_articles_use"),
         array(
           "FROM"=>"spip_articles AS articles, spip_carto_cartes_articles AS lien",
@@ -552,7 +553,7 @@
// echo "</div>\n";
         echo "</form>";
         
- // Objet géométrique pour l'affichage DHTML
+ // Objet g�om�trique pour l'affichage DHTML
         $mygeom = wkt2coords($geometrie, "JSDHTML", $callage, $url_carte);
         $geoArray= explode(',',$mygeom);
         echo "<script type=\"text/javascript\">/*<![CDATA[*/";

Modified: _plugins_/_contenu_editorial_/spipcarto/exec/cartes_import.php

--- _plugins_/_contenu_editorial_/spipcarto/exec/cartes_import.php (original)
+++ _plugins_/_contenu_editorial_/spipcarto/exec/cartes_import.php Sat Aug 19 12:22:10 2006
@@ -1,23 +1,23 @@
<?php
/*****************************************************************************\
-* SPIP-CARTO, Solution de partage et d’élaboration d’information
+* SPIP-CARTO, Solution de partage et d��laboration d�information
* (Carto)Graphique sous SPIP
*
* Copyright (c) 2005
*
-* Stéphane Laurent, François-Xavier Prunayre, Pierre Giraud, Jean-Claude
+* St�phane Laurent, Fran�ois-Xavier Prunayre, Pierre Giraud, Jean-Claude
* Moissinac et tous les membres du projet SPIP-CARTO V1 (Annie Danzart - Arnaud
-* Fontaine - Arnaud Saint Léger - Benoit Veler - Christine Potier - Christophe
+* Fontaine - Arnaud Saint L�ger - Benoit Veler - Christine Potier - Christophe
* Betin - Daniel Faivre - David Delon - David Jonglez - Eric Guichard - Jacques
-* Chatignoux - Julien Custot - Laurent Jégou - Mathieu Géhin - Michel Briand -
-* Mose - Olivier Frérot - Philippe Fournel - Thierry Joliveau)
+* Chatignoux - Julien Custot - Laurent J�gou - Mathieu G�hin - Michel Briand -
+* Mose - Olivier Fr�rot - Philippe Fournel - Thierry Joliveau)
*
* voir : http://www.geolibre.net/article.php3?id_article=16
*
* Ce programme est un logiciel libre distribue sous licence GNU/GPL.
-* Pour plus de details voir le fichier COPYING.txt ou l’aide en ligne.
+* Pour plus de details voir le fichier COPYING.txt ou l�aide en ligne.
*
-— -
+� -
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License, or
@@ -33,10 +33,11 @@
the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

[... 251 lines stripped ...]