738 |
foreach ($codes_datd as $code) { |
foreach ($codes_datd as $code) { |
739 |
$sql_codes .= " LOWER(dossier_autorisation_type_detaille.code) = '".$this->f->db->escapesimple(strtolower($code))."' OR "; |
$sql_codes .= " LOWER(dossier_autorisation_type_detaille.code) = '".$this->f->db->escapesimple(strtolower($code))."' OR "; |
740 |
} |
} |
741 |
$sql_codes = substr($sql_codes, 0, count($sql_codes) - 4); |
$sql_codes = substr($sql_codes, 0, strlen($sql_codes) - 4); |
742 |
// |
// |
743 |
$query_ct_where_datd_filter = " AND ( ".$sql_codes." ) "; |
$query_ct_where_datd_filter = " AND ( ".$sql_codes." ) "; |
744 |
} |
} |
1736 |
|
|
1737 |
//Pour chaque url |
//Pour chaque url |
1738 |
foreach ($urls as $url) { |
foreach ($urls as $url) { |
|
// Instanciation de la classe DOMDocument |
|
|
$xmlDoc = new DOMDocument(); |
|
|
$xmlDoc->load($url); |
|
1739 |
|
|
1740 |
// Initialise le contenu vide |
// Initialise le contenu vide |
1741 |
$content = ""; |
$content = ""; |
1758 |
</li> |
</li> |
1759 |
"; |
"; |
1760 |
|
|
1761 |
|
// Instanciation de la classe DOMDocument |
1762 |
|
$xmlDoc = new DOMDocument(); |
1763 |
|
@$ret = $xmlDoc->load($url); |
1764 |
|
if ($ret !== true) { |
1765 |
|
printf( |
1766 |
|
$render, |
1767 |
|
"Erreur", |
1768 |
|
"Erreur au chargement de l'URL. Contactez votre administrateur." |
1769 |
|
); |
1770 |
|
continue; |
1771 |
|
} |
1772 |
|
|
1773 |
// Récupération du nom du flux |
// Récupération du nom du flux |
1774 |
$channel_title = $xmlDoc->getElementsByTagName('channel')->item(0)->getElementsByTagName('title')->item(0)->childNodes->item(0)->nodeValue; |
$channel_title = $xmlDoc->getElementsByTagName('channel')->item(0)->getElementsByTagName('title')->item(0)->childNodes->item(0)->nodeValue; |
1775 |
|
|
7015 |
foreach ($codes_datd as $code) { |
foreach ($codes_datd as $code) { |
7016 |
$sql_codes .= " LOWER(dossier_autorisation_type_detaille.code) = '".$this->f->db->escapesimple(strtolower($code))."' OR "; |
$sql_codes .= " LOWER(dossier_autorisation_type_detaille.code) = '".$this->f->db->escapesimple(strtolower($code))."' OR "; |
7017 |
} |
} |
7018 |
$sql_codes = substr($sql_codes, 0, count($sql_codes) - 4); |
$sql_codes = substr($sql_codes, 0, strlen($sql_codes) - 4); |
7019 |
// |
// |
7020 |
$query_ct_where_datd_filter = " AND ( ".$sql_codes." ) "; |
$query_ct_where_datd_filter = " AND ( ".$sql_codes." ) "; |
7021 |
} |
} |
7756 |
foreach ($codes_datd as $code) { |
foreach ($codes_datd as $code) { |
7757 |
$sql_codes .= " LOWER(dossier_autorisation_type_detaille.code) = '".$this->f->db->escapesimple(strtolower($code))."' OR "; |
$sql_codes .= " LOWER(dossier_autorisation_type_detaille.code) = '".$this->f->db->escapesimple(strtolower($code))."' OR "; |
7758 |
} |
} |
7759 |
$sql_codes = substr($sql_codes, 0, count($sql_codes) - 4); |
$sql_codes = substr($sql_codes, 0, strlen($sql_codes) - 4); |
7760 |
// |
// |
7761 |
$query_ct_where_datd_filter = " AND ( ".$sql_codes." ) "; |
$query_ct_where_datd_filter = " AND ( ".$sql_codes." ) "; |
7762 |
} |
} |