<div class="backdrop grunge">&nbsp;</div>

	<img src="<?php 
echo $DOKU_TPL;
?>
images/cornerblack.png" alt="" id="cornerblack" />
	<img src="<?php 
echo $DOKU_TPL;
?>
images/cornerwhite.png" alt="" id="cornerwhite" />

	<div id="content">
		<div class="scrollarea">

			<?php 
if (checkNS('songs')) {
    $songid = getSongID();
    echo '<ul id="nav"><li>';
    tpl_pagelink(':songs:' . $songid, getTitle());
    echo '</li><li>';
    tpl_pagelink(':songs:' . $songid . ':lyrics', 'Lyrics');
    echo '</li><li>';
    tpl_pagelink(':songs:' . $songid . ':tab', 'Tab');
    echo '</li><li>';
    tpl_pagelink(':songs:' . $songid . ':archive', 'Archive');
    echo '</li></ul>';
}
?>

			<div class="xt">&nbsp;</div>
			<div class="content">
    return $output;
}
//Script
//------------------------------------------------------------------------------------------------------
foreach ($records as $record) {
    if (!empty($record)) {
        $record2 = explode('|', $record);
        $server = $record2[0];
        $tld = $record2[1];
        $registerabledomain = $record2[2];
        $ip4 = checkExists($server, false);
        //Query for A record (possibly following a CNAME record to get to the A record)
        $ip6 = checkExists($server, true);
        ////Query for AAAA record (possibly following a CNAME record to get to the AAAA record)
        if ($ip4 || $ip6) {
            $nameservers = checkNS($registerabledomain);
            if (!$nameservers) {
                //The server is orphan
                $ip4addresses = '';
                if ($ip4) {
                    foreach ($ip4 as $ip4address) {
                        if (!filter_var($ip4address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) === false) {
                            //Valid IPv4 address
                            $ip4addresses .= $ip4address . ',';
                        } else {
                            //Invalid IPv4 address (CNAME?)
                        }
                    }
                }
                $ip4addresses = rtrim($ip4addresses, ',');
                $ip6addresses = '';