<title>Sitemap - Tim Reeves Internet-Programmierung</title>
<meta name= "description" content= "Tim Reeves Internet-Programmierung - Sitemap" />
<meta name= "date" content= "2007-06-25" />
<?php
include("head.inc.php");
?>
<!-- Individuelle Head-Angaben -->
<style type= "text/css">
/*<![CDATA[*/
/* Klassen für Tabellenzellen des Sitemaps */
td.menu {
font-size: 13px;
margin: 0px;
height: 20px;
vertical-align: middle;
text-align: left;
background-repeat: no-repeat;
background-position: 0px 0px;
}
td.fst { padding: 10px 20px 0px 0px; }
td.sec { padding: 0px 20px 0px 16px; }
td.lst { padding: 0px 20px 0px 16px; }
td.secmid { padding: 0px 20px 0px 32px; }
td.lstmid { padding: 0px 20px 0px 32px; }
td.secend { padding: 0px 20px 0px 32px; }
td.lstend { padding: 0px 20px 0px 32px; }
td.menu a, td.menu a:link, td.menu a:visited, td.menu a:active,
td.menu a:focus, td.menu a:hover {
text-decoration: none;
}
/*]]>*/
</style>
<?php
include("navi.inc.php");
?>
<!-- Hier kommt der Rumpf, bereits in div.main div.contscroll -->
<div class= "content">
<h1>Sitemap</h1>
<table cellpadding= "0" cellspacing= "0">
<?php
$g_siteList = array();
function makeXmlSitemap() {
global $g_siteList;
// Erzeugt eine XML-Sitemap für die Suchmaschinen, s. www.sitemaps.org
$dom = 'http://www.timreeves.de/';
$xml = '<?xml version= "1.0" encoding= "UTF-8"?>'."\n";
$xml .= '<urlset xmlns= "http://www.sitemaps.org/schemas/sitemap/0.9">'."\n";
foreach ($g_siteList as $webPage => $prio) {
// Change all non-alphanumerics except -_. (minus,underbar, dot) to %XX
// Note that entity conversion is also formally required (&'"<>)
// but since we append no GET-Parameters there's nothing left to do
if (strpos($webPage,'/') === false) {
$rawPage = rawurlencode($webPage);
}
else {
$dir = dirname($webPage);
$fil = basename($webPage);
$rawPage = rawurlencode($dir) . '/' . rawurlencode($fil);
}
$xml .= "\t<url>\n\t\t<loc>${dom}${rawPage}</loc>\n";
$xml .= "\t\t<changefreq>monthly</changefreq>\n";
$xml .= "\t\t<priority>${prio}</priority>\n";
|