diff --git a/config.php b/config.php index a1886d1..3213833 100644 --- a/config.php +++ b/config.php @@ -1,11 +1,20 @@ '; echo '

Prochains événements monnaie libre

'; + echo '

- Ces événements sont importés automatiquement depuis - + Événements importés automatiquement depuis + l\'Agenda du libre - +  :

'; -$content = file_get_contents(CALENDAR_RSS); +$content = @file_get_contents(CALENDAR_1_FEED); $x = new SimpleXmlElement($content); echo ''; + + + +echo ' +

+ Événements importés automatiquement depuis + + forum.monnaie-libre.fr +  : +

'; + +$content = @file_get_contents(CALENDAR_2_FEED); +$x = json_decode($content); + +echo ''; + + include('footer.php'); diff --git a/mytown.php b/mytown.php index ca0f59d..c350101 100644 --- a/mytown.php +++ b/mytown.php @@ -1,8 +1,6 @@ Événements à '. EVENT_RADIUS .' km autour de '. $_SESSION['location'] . ''; - -$feedUrl = 'https://www.agendadulibre.org/events.rss?tag=monnaie-libre&near[distance]='. EVENT_RADIUS . '&near[location]=['. $_SESSION['lat'] . ','. $_SESSION['lon'] . ']'; + +$feedUrl = sprintf(CALENDAR_1_LOCAL_FEED, EVENT_RADIUS, $_SESSION['lat'], $_SESSION['lon']); $content = @file_get_contents($feedUrl); $x = new SimpleXmlElement($content); @@ -66,12 +64,15 @@ echo ''; echo '

Ces événements sont importés automatiquement depuis - + l\'Agenda du libre

'; + + + echo '

Contacter d\'autres junistes près de '. $_SESSION['location'] . '

'; echo '