root/carte/trunk/carte.php
| Revision 11, 0.7 kB (checked in by alkahan, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | # |
| 4 | # Ce script récupère l'état des nodes du réseau France Wireless |
| 5 | # et affiche les nodes sur une carte Gmap |
| 6 | # |
| 7 | ########### Variables à modifier ############## |
| 8 | |
| 9 | # Titre de la page |
| 10 | $title = 'Mon titre'; |
| 11 | # Clé Gmap / non utilisé pour le moment |
| 12 | $gmap_key = ''; |
| 13 | # Coordonnées initiales du centre de la carte |
| 14 | $gmap_center = '47.99, 0.19'; |
| 15 | # Niveau de zoom initial de la carte |
| 16 | $gmap_zoom = '13'; |
| 17 | |
| 18 | ########### Fin Variables à modifier ############## |
| 19 | |
| 20 | |
| 21 | |
| 22 | include_once 'parse.inc'; |
| 23 | include_once 'display_map.inc'; |
| 24 | |
| 25 | # chargement du fichier XML |
| 26 | $xml = xmldocfile('http://auth.wireless-fr.org/hotspot_status.php?format=XML'); |
| 27 | # On récupère les marqueurs |
| 28 | $mymarkers = markers($xml); |
| 29 | # On affiche la page |
| 30 | display_page($mymarkers); |
| 31 | |
| 32 | |
| 33 | ?> |
| 34 |
Note: See TracBrowser for help on using the browser.
