<?php
// INFO
if($modview['info']=='yes'){
// info
$infoinq = $db->query("SELECT infotpl
FROM ".$basepref."_info
ORDER BY infotpl DESC LIMIT ".$lastview['info']."");
// WHILE
while($infoitem = $db->fetchrow($infoinq)){
// WHILE
print "<url>\n";
// loc
if($siteglobal['seourl']==1){
print "<loc>http://".$_SERVER['HTTP_HOST']."/".strval($infoitem['infotpl']).".html</loc>\n";
} else {
print "<loc>http://".$_SERVER['HTTP_HOST'].".html".intval($infoitem['infotpl'])."</loc>\n";
}
// loc
print "<changefreq>".$modfreq['info']."</changefreq>\n";
print "<priority>".$modprio['info']."</priority>\n";
print "</url>\n";
// WHILE
}
// WHILE
// info
}
// INFO