Mappa
load($thisbasedir . "sitemap.xml");
$data = $dom->getElementsByTagName('loc');
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo ("");
foreach ($data as $node)
{
echo '
");
echo '';
echo '';
function get_description_from_htmlpage($ahtmlfile)
{
$tags = get_meta_tags($ahtmlfile);
$thisdescription = $tags['description'];
if (isset($thisdescription))
return $thisdescription;
else
return 'No description';
}
function get_title_tag_from_htmlpage($ahtmlfile)
{
$thisfilecontents = file_get_contents($ahtmlfile);
if (preg_match('/(.+)<\/title>/', $thisfilecontents, $matches) && isset ($matches[1]))
return $matches[1];
else
return "No Title";
}
?>
" . '' . $thistitle . ' (' . $thisdescription . ')' . '' . " | "); echo '