'; ?> ".echolink($l, $p)." weekly 1 "; } $langs=array("en", "lv"); /* foreach ($langs as $lang) { foreach ($pages[$lang] as $k=>$v) echo sitemaplink($k); $r=mq("select id, title, metatitle from news where lang='$lang' and dat<=curdate() and active=1"); echo $r->num_rows; while ($rec=$r->fetch_assoc()) echo sitemaplink("news", "$rec[id]-".makelink($rec["id"]<205?$rec["title"]:$rec["metatitle"])); }*/ ?>