| Line 135... |
Line 135... |
| 135 |
$titre = isset($titre) ? htmlentities(rawurldecode($titre)) : '';
|
135 |
$titre = isset($titre) ? htmlentities(rawurldecode($titre)) : '';
|
| 136 |
$icone_rss = (isset($_GET['rss']) && $_GET['rss'] != 1) ? false : true;
|
136 |
$icone_rss = (isset($_GET['rss']) && $_GET['rss'] != 1) ? false : true;
|
| 137 |
$utilise_fancybox = (isset($_GET['mode_zoom']) && $_GET['mode_zoom'] != 'fancybox') ? false : true;
|
137 |
$utilise_fancybox = (isset($_GET['mode_zoom']) && $_GET['mode_zoom'] != 'fancybox') ? false : true;
|
| 138 |
list($colonne, $ligne) = explode(',', $vignette);
|
138 |
list($colonne, $ligne) = explode(',', $vignette);
|
| 139 |
$this->flux_rss_url .= $this->traiterParametres();
|
139 |
$this->flux_rss_url .= $this->traiterParametres();
|
| - |
|
140 |
|
| 140 |
if (@file_get_contents($this->flux_rss_url, false) != false) {
|
141 |
if (@file_get_contents($this->flux_rss_url, false) != false) {
|
| 141 |
$xml = file_get_contents($this->flux_rss_url);
|
142 |
$xml = file_get_contents($this->flux_rss_url);
|
| 142 |
if ($xml) {
|
143 |
if ($xml) {
|
| 143 |
try {
|
144 |
try {
|
| 144 |
$flux = new XmlFeedParser($xml);
|
145 |
$flux = new XmlFeedParser($xml);
|
| Line 213... |
Line 214... |
| 213 |
return $widget;
|
214 |
return $widget;
|
| 214 |
}
|
215 |
}
|
| Line 215... |
Line 216... |
| 215 |
|
216 |
|
| 216 |
private function traiterParametres() {
|
217 |
private function traiterParametres() {
|
| 217 |
$parametres_flux = '?';
|
218 |
$parametres_flux = '?';
|
| 218 |
$criteres = array('utilisateur', 'commune', 'dept', 'taxon', 'commentaire', 'date', 'tag', 'motcle', 'projet', 'num_taxon', 'num_nom', 'groupe_zones_geo');
|
219 |
$criteres = array('utilisateur', 'commune', 'dept', 'taxon', 'commentaire', 'date', 'tag', 'motcle', 'projet', 'num_taxon', 'num_nom', 'referentiel', 'groupe_zones_geo');
|
| 219 |
foreach($this->parametres as $nom_critere => $valeur_critere) {
|
220 |
foreach($this->parametres as $nom_critere => $valeur_critere) {
|
| 220 |
if (in_array($nom_critere, $criteres)) {
|
221 |
if (in_array($nom_critere, $criteres)) {
|
| 221 |
$valeur_critere = str_replace(' ', '%20', $valeur_critere);
|
222 |
$valeur_critere = str_replace(' ', '%20', $valeur_critere);
|
| 222 |
$parametres_flux .= $nom_critere.'='.$valeur_critere.'&';
|
223 |
$parametres_flux .= $nom_critere.'='.$valeur_critere.'&';
|