het gaat om versie 1.9.8
<body bgcolor="#000000"><?php
function getcontent($server, $port, $file)
{
$cont = "";
$ip = gethostbyname($server);
$fp = fsockopen($ip, $port);
if (!$fp)
{
return "0";
}
else
{
$com = "GET $file HTTP/1.0\r\nAccept: */*\r\nAccept-Language: de-ch\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 5.0)\r\nHost: $server:$port\r\nConnection: Keep-Alive\r\n\r\n";
fputs($fp, $com);
while (!feof($fp))
{
$cont .= fread($fp, 500);
}
fclose($fp);
$cont = substr($cont, strpos($cont, "\r\n\r\n") + 4);
return $cont;
}
}
include ("config_radio.php");
$basecontent = getcontent($scip, $scport, "/7.html");
$pieces = explode(",", $basecontent);
// Check if someone is currently broadcasting on the server
if ($pieces[1] == "0")
{
$status = "Momenteel Offline of een storing sorry voor het ongemak";
}
elseif ($pieces[1] == "1")
{
$status = "<font face='Verdana' color='#23CB12'><b>Online!</font>";
}
else
{
$status = "<font face='Verdana' color='#3FB513'><b>Helaas </b>op dit moment niet, Bezig met onderhoud of er is een storing.";
}
//Als er geen snelheid is gevonden legt hij er een 0
if ($pieces[5] == "")
{
$pieces[5]= "0";
}
{
$pieces[3]= "200";
}
//Als het liedje dat afspeelde niet gevonden kon worden dan legt hij het woord, Geen
if ($pieces[6] == "")
{
$pieces[6]= "Geen";
}
//Als er enkele gegevens niet kloppen, dan poept hij de errors eruit
if ($pieces[3] == "")
{
$uitleg= "<b>Server is Off-line.</b>";
}
//Als de radio uit is, moeten de gegevens niet meer getoond worden
//hier wordt het aantal luisteraars geleegt
if ($status == "Nee Helaas!")
{
$pieces[0]= "0";
}
//Hier wordt de balk liedje geleegt
if ($status == "Nee")
{
$pieces[6]= "Geen";
}
//uiteindelijk wordt de snelheid op 0 gezet
if ($status == "Nee")
{
$pieces[5]= "0";
}
?>
<html>
<head>
<SCRIPT LANGUAGE=JAVASCRIPT>
<!-- hide
function go()
{
window.location.href="parse.php"
}
-->
</SCRIPT>
<script>
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>
<SCRIPT language=JavaScript>
<!--
<!--
//Disable right mouse click Script
//By BK
//Dit is een code zonder poppup!!!
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("return false")
// -->
function MM_popupMsg(msg) { //v1.0
alert;
}
//-->
</SCRIPT>
<table border="1" bordercolor=#0099FF width="100%" id="table1">
<tr><td align="center" width="100%" height="85" bgcolor="#000000" bordercolordark="#0099FF" bordercolor="#0099FF" bordercolorlight="#0099FF">
<b><marquee onmouseover = 'this.stop()' onmouseout = 'this.start()' width = '100%' scrollamount = '2' style="color: #FFFFFF; font-size: 11px; font-family: Verdana,Tahoma,Arial,Helvetica" bgcolor="#0099FF" behavior="alternate" height="15">* * * * * * * * * * * U Hoor <img src='progressbar_microsoft1.gif' width='30' height='6'> nu Bij Het <img src='progressbar_microsoft1.gif' width='30' height='6'> de-blije-piraten* * * * * * * * * * </marquee></b>
<link rel="stylesheet" href="http://www.de-blije-piraten.nl.nl/radio/stylebox.css" type="text/css" />
</head><body bgcolor="#000000">
<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"><p></p><p></p>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><b><font face="Verdana" color="#FF0000">Server-status :</td>
<td><? echo $status; ?></td>
</tr>
</tr>
<tr>
<td><b><font face='Verdana' color='#FF0000'>Nu Speelt :</td>
<td><? echo $pieces[6]; ?></td>
</tr>
<tr>
<td><b><font face='Verdana' color='#FF0000'>Snelheid :</td>
<td><? echo $pieces[5]; ?> kbps</td>
</tr>
<tr>
<td><? echo $uitleg; ?></td>
</tr>
</td>
</table>
</center><br><body bgcolor="#000000"><font face="Verdana" color="#FFFFFF" size="1px">
Over <b id="countDownText"></b> seconden word dit scherm vernieuwd.
</font><script language="JavaScript">
var countDownInterval = 30;
var countDownTime = countDownInterval + 1;
if (document.all||document.getElementById)
countDown();
else
window.onload = countDown;
function countDown() {
countDownTime--;
if (countDownTime == 0) {
countDownTime = countDownInterval;
window.location.reload();
return;
}
else if (countDownTime < 0)
countDownTime = 30;
if (document.all)
document.all.countDownText.innerText = secsToMins(countDownTime);
else if (document.getElementById)
document.getElementById("countDownText").innerHTML = secsToMins(countDownTime);
counter = setTimeout("countDown()", 1000);
}
function secsToMins(theValue) {
var theMin = Math.floor(theValue / 60);
var theSec = (theValue % 60);
if (theSec < 10)
theSec = "0" + theSec;
return(theMin + ":" + theSec);
}
</script></body></html>
<?php
// Configuratie
$scip = "http://deblijepiraten.nl"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "8010"; // port of shoutcast server
//End configuration
?><body bgcolor="#000000">