diff --git a/core.php b/core.php index 887cbe6..1534a47 100644 --- a/core.php +++ b/core.php @@ -30,7 +30,7 @@ function getCalendrier() $url = $link->getAttribute('href'); $calendrier[] = array( 'node' => $node, - 'url' => 'https://www.sabradou.com/' . $url + 'url' => $url, ); } return ($calendrier); @@ -38,7 +38,7 @@ function getCalendrier() function getCities($html) { // Création d'un objet DOMDocument - $html = file_get_contents($html); + $html = file_get_contents('https://www.sabradou.com/' . $html); $dom = new DOMDocument(); libxml_use_internal_errors(true); // Ignore les erreurs de parsing HTML $dom->loadHTML($html); diff --git a/index.js b/index.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ + diff --git a/index.php b/index.php index 109550f..e75cff0 100644 --- a/index.php +++ b/index.php @@ -5,23 +5,26 @@