Autor Tema: [Ayuda]Como hago una radio Stat de Habbo Lee!  (Leído 1925 veces)

Desconectado JosueDj

  • PHPerit@
  • *
  • Mensajes: 4
  • Karma: 1
  • Nuev@ PHPer@
    • Ver Perfil
[Ayuda]Como hago una radio Stat de Habbo Lee!
« en: 17 de Diciembre de 2010, 16:37:10 pm »
Hola,buenas como podría poner una radio stat de habbo qé venga
-DJ-online
-La música qé pone & esas cosas
pero qé no sea de joaquin

puse ese codigo en .php & lo subo a FTP & lo subo a mi web & cuando entro me dice esto entren a http://latino-escuela-dj.co.cc/escuelastat.php& despues entro de dj & me sigue saliendo no hay dj & la radio no está conectas :s ayudenme les doy karmas [La web tarda un poco en entrar a la web]
Un Saludo de Josue
Código: [Seleccionar]
<style type="text/css">
<!--
body,td,th {
color: #FF0000;
}
-->
</style>
<?php
// Shoutcast Server Stats
// Parses shoutcasts xml to make an effective stats thing for any website
// ©2004-2005 Daniel Brown http://www.gmtt.co.uk
// Please refer to the readme file for use.
// 
// Modified for StreamSolutions, by Ramie, email ramieb@ramieb.com, bo updates will be provided
// please refer to original authors website http://www.gmtt.co.uk for original script updates or support.
// By Megacamillo Modificado por hugohp 


//*********** INFO DE LA RADIO AQUI!! ***********//
//Configuration
$scdef  =       "NOMBRE Radio";   //Nombre de la radio
$scip   =       "IP Radio";           // Ip de la radio
$scport =       "PORT Radio";         // PUERTO DE LA RADIO
$scpass =       "Contra Radio";       // Password
$refresh =  "10";                       //TIEMPO DE REFRESCO
$bgcolor =      "White";                  // COLOR DEL BACKGROUND EN HEXAGECIMAL
//*********** FIN CONFIGURACION ***********//
$scfp fsockopen("$scip"$scport, &$errno, &$errstr30);
 if(!
$scfp) {
  
$scsuccs=1;
echo&
#39;
<html>

<
html>

<
head>
<
meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<
meta name="ProgId" content="FrontPage.Editor.document">
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
META HTTP-EQUIV="REFRESH" CONTENT="30">
<
link rel=stylesheet href="" type="text/css">
<
title>Radio Server Is Offline</title>
</
head>
<
body text="" bgcolor="&#39;.$bgcolor.&#39;">

<
p align="center" style="margin-top: 0; margin-bottom: 0">
<
b><font face="Verdana" size="1" color="#3299CC">No Esta la radio conectada o.O!!!!! :O</font></b></p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">
<
b>
<
font face="Verdana" size="1" color="#3299CC"></font></b></p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">
&
nbsp;</p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">
&
nbsp;</p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<
p align="center" style="margin-top: 0; margin-bottom: 0"><b>
<
font color="#3232CD" face="Verdana" size="1">
<
img border="0" src="images/offline.gif" ></font></b></p>
<
b>
<
font face="Verdana" size="1" color="#3299CC">Espera a que el proximo DJ se 
conecte
</font></b></p>
<
p align="left" style="margin-top: 0; margin-bottom: 0">
&
nbsp;</p>
<
p align="left" style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<
p style="margin-top: 0; margin-bottom: 0" align="left">
&
nbsp;<p style="margin-top: 0; margin-bottom: 0" align="left">
    &
nbsp;</p>
<
p style="margin-top: 0; margin-bottom: 0" align="center">
    <
marquee behavior="alternate" width="202"><font face="verdana" size="1" font color="#3299CC" class="Estilo2">
    <
br /><br /><b></b><br />
</
marquee></p>
<
p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<
p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<
p style="margin-top: 0; margin-bottom: 0" align="left">&nbsp;</p>
<
p style="margin-top: 0; margin-bottom: 0" align="center">
</
p>
</
body>

</
html>&#39;;
 
}
if(
$scsuccs!=1){
 
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
 while(!
feof($scfp)) {
  
$page .= fgets($scfp1000);
 }
 
######################################################################################################################
//define ELEMENTOS DEL ESTATUS
 
$loop = array("AVERAGETIME""STREAMSTATUS""STREAMHITS""BITRATE""SERVERTITLE""WEBHITS""SERVERGENRE""SERVERURL""CURRENTLISTENERS""MAXLISTENERS");
 
$y=0;
 while(
$loop[$y]!=&#39;&#39;){
  
$pageed ereg_replace(".*<$loop[$y]>"""$page);
  
$scphp strtolower($loop[$y]);
  $
$scphp ereg_replace("</$loop[$y]>.*"""$pageed);
  if(
$loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)
   $
$scphp urldecode($$scphp);

// VARIABLES
//echo&#39;$&#39;.$scphp.&#39; = &#39;.$$scphp.&#39;<br>&#39;;
  
$y++;
 }
//FIN XML
######################################################################################################################
######################################################################################################################
/////2###PARTE##//
//Info de las canciones
 
$pageed ereg_replace(".*<SONGHISTORY>"""$page);
 
$pageed ereg_replace("<SONGHISTORY>.*"""$pageed);
 
$songatime explode("<SONG>"$pageed);
 
$r=1;
 while(
$songatime[$r]!=""){
  
$t=$r-1;
  
$playedat[$t] = ereg_replace(".*<PLAYEDAT>"""$songatime[$r]);
  
$playedat[$t] = ereg_replace("</PLAYEDAT>.*"""$playedat[$t]);
  
$song[$t] = ereg_replace(".*<TITLE>"""$songatime[$r]);
  
$song[$t] = ereg_replace("</TITLE>.*"""$song[$t]);
  
$song[$t] = urldecode($song[$t]);
  
$dj[$t] = ereg_replace(".*<SERVERTITLE>"""$page);
  
$dj[$t] = ereg_replace("</SERVERTITLE>.*"""$pageed);

$r++;
 }
//FIN///

fclose($scfp);
}

//ECHOS DEL STATUS//
if($streamstatus == "1"){
//SE PUEDE EDITAR EL HTML PERO LAS VARIABLES INTACTAS//
echo&#39;

<html>
<
head>
<
style type="text/css">
<!--
.
Estilo2 {font-size10px;font-familyVerdana}
-->
</
style>
<
meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<
meta name="ProgId" content="FrontPage.Editor.Document">
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
META HTTP-EQUIV="REFRESH" CONTENT="&#39;.$refresh.&#39;">
<
link rel=stylesheet href="" type="text/css">
<
title>&#39;.$scdef.&#39;</title>
</head
<center>
<
body text="" bgcolor="&#39;.$bgcolor.&#39;" >
<
p style="margin-top: 0; margin-bottom: 0" align="center"> <br>
    <
font face="verdana" size="2" font class="Estilo2">
<img border="0" src="http://www.habbo.es/habbo-imaging/avatarimage?user=&#39;.$servergenre.&#39;&action=wav&direction=4&head_direction=123" ><br><br>
  <
font face="verdana" size="2" font color="#3299CC" class="Estilo2">
    <
b>.:.:Dj en linea.:.:</b><br /> 
</
font>
  <
font face="verdana" size="2" font class="Estilo2">
<
marquee width="177"><img src="http://www.habbies.nl/img/text-gen/es/&#39;.$servergenre.&#39;/1/&#39;.$servertitle.&#39;|.gif"/></marquee>
</
font>
  <
font face="verdana" size="2" font color="#3299CC" class="Estilo2">
    <
br /><br /><b>.:.:Oyentes.:.:</b><br />
</
font>
  <
font face="verdana" size="2" font class="Estilo2">
    &
#39;.$currentlisteners.&#39; / &#39;.$maxlisteners.&#39;
</font>
<
font face="verdana" size="2" font color="#3299CC" class="Estilo2">
    <
br /><br /><b>.:.:Canción Actual.:.:</b><br />
</
font>
  <
font face="verdana" size="2" font class="Estilo2">
    &
#39;.$song[0].&#39;
</font>
  <
font face="verdana" size="2" font color="#3299CC" class="Estilo2">
  <
br> <br>
    <
b>.:.:Ultimas Canción.:.:</b>
</
font>
  <
font face="verdana" size="2" font class="Estilo2">
<
div align="left">
  <
p align="center" style="margin-top: 0; margin-bottom: 0">1.- &#39;.$song[1].&#39;
</font>
<
font face="verdana" size="2" font color="#3299CC" class="Estilo2"><br />
<
br />
    <
marquee behavior="alternate" width="202"><font face="verdana" size="1" font color="#3299CC" class="Estilo2">
    <
br /><br /><b>By Junior-R Para HF</b><br />
</
marquee></p>
  <
br> <br
</
div>
</
font>
    </
span>
  <
font face="verdana" size="2" font color="#3299CC" class="Estilo2">
    <
p align="center">
    </
p>
</
font>
<
center>
<
p style="margin-top: 0; margin-bottom: 0">
</
p>
    </
center>
</
body></center>
   

</
html>&#39;;

}
if(
$streamstatus == "0")
{
//EDITAR HTML PERO VARIABLES INTACTAS
echo&#39;
<html>

<
html>

<
head>
<
meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<
meta name="ProgId" content="FrontPage.Editor.document">
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
META HTTP-EQUIV="REFRESH" CONTENT="30">
<
link rel=stylesheet href="" type="text/css">
<
title>Radio Server Is Offline</title>
</
head>


<
body text="" bgcolor="&#39;.$bgcolor.&#39;">

<
p align="center" style="margin-top: 0; margin-bottom: 0">
<
b><font face="Verdana" size="1" color="#3299CC">No Hay Dj En Linea!!!!! :O</font></b></p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">
<
b>
<
font face="Verdana" size="1" color="#3299CC">&nbsp;:.:.::ESPERA A QUE LLEGUE UNO.:.:.:</font></b></p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">
&
nbsp;</p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">
&
nbsp;</p>
<
p align="center" style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<
p align="center" style="margin-top: 0; margin-bottom: 0"><b>
<
font color="#3232CD" face="Verdana" size="1">
<
img border="0" src="images/offline.gif" ><br />

    <
marquee behavior="alternate" width="202"><font face="verdana" size="1" font color="#3299CC" class="Estilo2">
    <
br /><br /><b>By Junior-R Modificarlo a Su gusto pero Denjen los Derechos porfavor :D</b><br />
</
marquee></p>
</
font></b></p></b></p>

</
p>
</
body>

</
html>&#39;;
}
?>
« Última modificación: 17 de Diciembre de 2010, 17:06:31 pm por JosueDj »

Comunidad PHPeros

[Ayuda]Como hago una radio Stat de Habbo Lee!
« en: 17 de Diciembre de 2010, 16:37:10 pm »

Desconectado x.zurox.x

  • PHPero Avanzado
  • ****
  • Mensajes: 276
  • Karma: 11
  • Sexo: Masculino
  • Aprendiendo Php :)
    • Ver Perfil
    • TecnoVagos Tu Foro
Re:[Ayuda]Como hago una radio Stat de Habbo Lee!
« Respuesta #1 en: 17 de Diciembre de 2010, 19:20:30 pm »
mira tu puedes mantener el mismo código original pero lo unico que se debe hacer para q se vea tipo habbo es cambiarle el diseño, lo cual te sale muy facil con cualquier Dreamweaber, ahi ves las variables y según ellas pones las imágenes correspondientes...
Si tienes un problema dificil de arreglar, comienza por hablar con la verdad ♫

Desconectado JosueDj

  • PHPerit@
  • *
  • Mensajes: 4
  • Karma: 1
  • Nuev@ PHPer@
    • Ver Perfil
Re:[Ayuda]Como hago una radio Stat de Habbo Lee!
« Respuesta #2 en: 21 de Diciembre de 2010, 23:42:19 pm »
Ayudarme porfavor se lo agradezco doy karmas  :(

Desconectado Fermin

  • PHPero Experto
  • *****
  • Mensajes: 783
  • Karma: 7
  • Sexo: Masculino
  • Nada que decirte.
    • Ver Perfil

Desconectado -Pituko-

  • PHPero Experto
  • *****
  • Mensajes: 954
  • Karma: 20
  • Sexo: Masculino
  • ¡Hala Madrid!
    • Ver Perfil
Re:[Ayuda]Como hago una radio Stat de Habbo Lee!
« Respuesta #4 en: 26 de Enero de 2011, 23:13:25 pm »
Ayudarme porfavor se lo agradezco doy karmas  :(
¿Darás karmas?, acaso no sabes que el mínimo para dar karmas es 25....
Por cierto, el hipervínculo del tutorial que te paso Habbogold es bastante bueno...

Desconectado Fermin

  • PHPero Experto
  • *****
  • Mensajes: 783
  • Karma: 7
  • Sexo: Masculino
  • Nada que decirte.
    • Ver Perfil
Re:[Ayuda]Como hago una radio Stat de Habbo Lee!
« Respuesta #5 en: 26 de Enero de 2011, 23:33:45 pm »
¿Darás karmas?, acaso no sabes que el mínimo para dar karmas es 25....
Por cierto, el hipervínculo del tutorial que te paso Habbogold es bastante bueno...

No revivas tema con mas de 1 mes sin actividad.

Desconectado -Pituko-

  • PHPero Experto
  • *****
  • Mensajes: 954
  • Karma: 20
  • Sexo: Masculino
  • ¡Hala Madrid!
    • Ver Perfil
Re:[Ayuda]Como hago una radio Stat de Habbo Lee!
« Respuesta #6 en: 27 de Enero de 2011, 00:42:02 am »
No revivas tema con mas de 1 mes sin actividad.
¿Otra vez?, Se supone que el límite es de 90 días, además, de ese trabajo se encarga un moderador, no tú, si quieres advertir, hazlo desde el botón "Reportar al moderador", en vez de creerte un moderador.

Desconectado Fermin

  • PHPero Experto
  • *****
  • Mensajes: 783
  • Karma: 7
  • Sexo: Masculino
  • Nada que decirte.
    • Ver Perfil
Re:[Ayuda]Como hago una radio Stat de Habbo Lee!
« Respuesta #7 en: 27 de Enero de 2011, 01:01:36 am »
¿Otra vez?, Se supone que el límite es de 90 días, además, de ese trabajo se encarga un moderador, no tú, si quieres advertir, hazlo desde el botón "Reportar al moderador", en vez de creerte un moderador.

Man, tu me das risa como te alzas jajajaja.. me limito a decir palabras pero te digo algo: DAS RISA y si vas a decir que yo te doy risa, me vale una mie... ;)

saludos y si ves que casi siempre buscas una discusion