 <body STYLE="background-color:transparent">
 <style type="text/css">
   .spaced {
       padding-right: 24px;
   }
   .parent {
    position:relative;
    float: left;
    width: 91.5%;
    min-width: 825px;
    height: 20px;
    text-align: left;
    z-index: 1;
    border:solid 1px #19365D;
    margin-left:3.7%;
    margin-right:3.7%;
    padding-left:0.5%;
    padding-right:0.5%;
    width: auto;
text-align: center;
background-url('http://basslinebeats.net/home/uploads/monthly_2016_03/logo.png.93bce0d620292f29d2d05b270edc634b.png.752665dd7139468d9904c0e35eaa69a9.png');
}
.link {
    position:absolute;
    width:100%;
    bottom:0;
    text-align:center;
}
 </style>
 <?php
define('fozradio', TRUE);
 include('config.php');
 $licence = "$licence";
define('REMOTE_LICENCE', 'http://purevolume.ml/licences/purevolume.php');
define('LICENCE', '$licence');
$script = file_get_contents(REMOTE_LICENCE);
$licence = $licence;
if($licence == $script) {
    echo "<div class=success>
<p></p>
</div>";
} else {
    echo "<div class=error>
<p><font color=\"red\"><div align=\"center\">Wrong licence key Please contact foz1983@hotmail.co.uk</font color></p>
</div></div>";
}
$licence = $licence;
if($licence =='0000') {
    echo "<div class=error>
<p><font color=\"red\"><div align=\"center\">Can not use 0000 as a licence key</font color></p>
</div></div>";
} else {
    echo "";
}
$licence = $licence;
if($licence =='') {
    echo "<div class=error>
<p><font color=\"red\"><div align=\"center\">U must put a licence key! If u dont have 1 contact foz</font color></p>
</div></div>";
} else {
    echo "";
}
/*-------------------------------------------------------------------------------------------------------------------------
SHOUTCAST STATS BY FOZ V1
-------------------------------------------------------------------------------------------------------------------------*/

$host = "$host"; # the IP address of your server
$port = "$port"; #the port your server's on
$adminpass = "$adminpass"; #the ADMINISTRATOR password

//end of configuration. You shouldn't change anything beyond this point
$fp = fsockopen ($host, $port, $errno, $errstr, 30);
if (!$fp) {
    echo "Our Radio is currently having problems! Check back soon<br>\n";
} else {
    fputs ($fp, "GET /admin.cgi?pass={$adminpass}&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
    while (!feof($fp)) {
        $content .= fgets ($fp,128);
    }
    fclose ($fp);
}

$status = explode('<STREAMSTATUS>',$content);
$status = explode('</STREAMSTATUS>',$status[1]);
if($status[0] == 0)
    {
        die('<center><img src="images/offline.png"></img></center><br>
        <div class="parent"><span>Radio Code by <a href="http://fb.com/fozforrester" TARGET=_BLANK">Foz</a></span></div>');
    }

$listeners = explode('<CURRENTLISTENERS>',$content);
$listeners = explode('</CURRENTLISTENERS>',$listeners[1]);

$maxlisteners = explode('<MAXLISTENERS>',$content);
$maxlisteners = explode('</MAXLISTENERS>',$maxlisteners[1]);

$peaklisteners = explode('<PEAKLISTENERS>',$content);
$peaklisteners = explode('</PEAKLISTENERS>',$peaklisteners[1]);

$servertitle = explode('<SERVERTITLE>',$content);
$servertitle = explode('</SERVERTITLE>',$servertitle[1]);

$bitrate = explode('<BITRATE>',$content);
$bitrate = explode('</BITRATE>',$bitrate[1]);

$servergenre = explode('<SERVERGENRE>',$content);
$servergenre = explode('</SERVERGENRE>',$servergenre[1]);

$song = explode('<TITLE>',$content);
for($i=1; $i<=10; $i++)
    {
        $song[$i] = explode('</TITLE>',$song[$i]);
        $song[$i] = $song[$i][0];
    }
    echo "<table border=\"0\">";
    echo "<div align=\"center\"><td class=\"spaced\"><img src=\"images/online.png\" title=\"$radioname Radio is Online\"></td><br></div>";
    echo "<td style=\"padding-left: 5px;\"><img src=\"images/dj.png\" title=\"{$servertitle[0]}\" width=\"42px\" height=\"42\"/></td>";
echo "<td class=\"spaced\"><font color=\"blue\"><b>Current DJ:</font color></b><font color=\"green\"> {$servertitle[0]} </font color><br><br></td>";
echo "<td style=\"padding-left: 5px;\"><img src=\"images/song.png\" title=\"{$song[1]}\" width=\"42px\" height=\"42\"/></td>";
echo "<td class=\"spaced\"><font color=\"blue\"><b>Current Song:</font color></b><font color=\"green\"> {$song[1]}</font color></td><br> ";
echo "<td style=\"padding-left: 5px;\"><img src=\"images/genre.png\" title=\"{$genre[0]}\" width=\"42px\" height=\"42\"/></td>";
echo "<td class=\"spaced\"><font color=\"blue\"><b>Genre:</font color></b><font color=\"green\"> {$genre[1]}</font color></td><br> ";
echo "<td style=\"padding-left: 5px;\"><img src=\"images/bitrate.png\" alt=\"\" width=\"42px\" height=\"42\"/></td> ";
echo "<td class=\"spaced\"><font color=\"blue\"><b>Streaming at:</font color></b><font color=\"green\"> {$bitrate[0]} KBPS</span></font color></td><br> ";
echo "<td style=\"padding-left: 5px;\"><img src=\"images/listeners.png\" alt=\"\" width=\"42px\" height=\"42\"/></td> ";
echo "<td class=\"spaced\"><font color=\"blue\"><b>Listners:</font color></b><font color=\"green\">  {$listeners[0]} of {$maxlisteners[0]}</font color></td><br>";
echo "<td style=\"padding-left: 5px;\"><img src=\"images/peak.png\" alt=\"\" width=\"42px\" height=\"42\"/></td> ";
echo "<td class=\"spaced\"><font color=\"blue\"><b>Peak Listners:</font color></b><font color=\"green\">  {$peaklisteners[0]}</font color></td>";
echo "</table>";
echo "</center> ";
echo"<br>";
echo"<br>";
echo "<div class=\"parent\"><span>Radio Code by <a href=\"http://fb.com/fozforrester\" TARGET=_BLANK\">Foz</a></span></div>";
//foreach($song as $id => $value)
    //{
       // if($id != 0 && $id != 1)
            //{
               // $display = $id - 1;
               // echo "<b>{$display}</b>. {$value}<br>";
           // }
    //}
//echo '</center>';
?>