Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: shoutcast 1.9.8  (gelezen 1001 keer)

shoutcast 1.9.8
« Gepost op: 2013/03/21, 22:25:25 »
hallo ik heb een schoutcast server.
ik wel infomatie door sturen naar een php script maar dat werkt niet.
ik moet een instelling aan pasen in de config van shoutcast maar weet niet wat.
ik hoop dat iemand mij kan helpen .

groeten foxoffire33

PS: ik hoef geen link naar google
waar windows falt is linux

Re: shoutcast 1.9.8
« Reactie #1 Gepost op: 2013/03/21, 22:27:39 »
Met deze summiere informatie kan ik je niet helpen. Welke shoutcastversie? Wat voor informatie? Wat voor PHP-script?

Re: shoutcast 1.9.8
« Reactie #2 Gepost op: 2013/03/21, 22:34:41 »
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($fp500); 
       } 
       
fclose($fp); 
       
$cont substr($contstrpos($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>&nbsp;&nbsp;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">
waar windows falt is linux

Re: shoutcast 1.9.8
« Reactie #3 Gepost op: 2013/03/23, 11:43:17 »
<?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">

*kuch*
Citaat
$scip = "http://deblijepiraten.nl"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)

Dit boek kan je mogelijk helpen bij het opzetten van je server.
I use a Unix-based system, that means I'll get laid as often as I have to reboot.
LibSylph
SeySayux.net