function OutMap($pages, $razd, $lev, $inXML) {
global $outrow;
$ltypes=array('disc', 'square', 'circle');
$printhead=false;
foreach($pages as $n => $v) {
if ($v[1]==$razd) {
if (!$inXML && !$printhead) {
$outrow['out'].="
\n";
$printhead=true;
}
if ($v[0]=='') $v[0]='Главная';
if (!$inXML)
$outrow['out'].="- {$v[0]}
\n";
else
$outrow['out'].=" \n".
" http://dimonius.ac3filter.net/?".ParamSafe($n)."\n".
" weekly\n".
" \n";
if ($n!='index')
OutMap($pages, $n, $lev+1, $inXML);
}
}
if (!$inXML && $printhead)
$outrow['out'].="
\n";
}
$inXML=isset($_GET['xml']);
if (!$inXML) {
$outrow['out']="Карта сайта
\n";
OutMap($pages, '', 0, $inXML);
} else {
OutMap($pages, '', 0, $inXML);
echo ''."\n";
echo ''."\n";
echo $outrow['out'];
echo '';
exit;
}
?>
Карта - Dimonius page