<?



include 'url_amigable.php';


$ID = (int)$_GET['ID'];






$banda_ami = urls_amigables($banda_ami);



include 'concha.php';









$sql = "SELECT * FROM `radios` WHERE ID = '$ID' LIMIT 1";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{

$ID = $row["ID"];

$name	 = $row["name"];
$name_ami = urls_amigables($row["name"]);
$city = $row["city"];
$country = $row["country"];
$dial	 = $row["dial"];
$language = $row["language"];
$band	 = $row["band"];
$website	 = $row["website"];
$genres0	 = $row["genres0"];
$genres1 = $row["genres1"];
$genres2	 = $row["genres2"];
$genres3	 = $row["genres3"];
$genres4	 = $row["genres4"];
$logo  = $row["logo"];
$iframe  = $row["iframe"];
$m3u8  = $row["m3u8"];

}

$consulta->free_result();

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="<?php echo $lang_es ?>">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="<?php echo $lang_es ?>" />
    <meta name="LANGUAGE" content="<?php echo $lang_es ?>" />
    <title>✔ <?php echo $name ?> - <?php echo $band ?> <?php echo $dial ?> - <?php echo $city ?> - Escuchar Radio en Vivo</title>

    <meta http-equiv="description"  content="Escucha <?php echo $name ?> en Vivo, streaming siempre online. Funciona desde cualquier Móvil y con ChromeCast. Desde <?php echo $city ?> por <?php echo $band ?> <?php echo $dial ?>".  />
    


    <meta http-equiv="keywords" content="<?php echo $name ?>, radio, streaming, en vivo, ahora, stream, tunein, streema, <?php echo $band ?> <?php echo $dial ?>, radio <?php echo $city ?>, radio <?php echo $name ?>" />

    <link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">

        <link rel="shortcut icon" href="../../envivo2/favicon.ico" />

    

<meta name="viewport" content="width=device-width, initial-scale=1.0">



<meta property="og:title" content="<?php echo $name ?> - Escucha la Radio en Vivo" />

<meta property="og:type" content="article" />

<meta property="og:description" content="Escucha <?php echo $name ?> en Vivo, streaming siempre online. Funciona desde el Móvil. Desde <?php echo $city ?> por <?php echo $band ?> <?php echo $dial ?>" />

<meta property="og:url" content="<? echo $dom ?>/<?php echo $ID ?>/<?php echo $name_ami ?>" />


<meta property="og:image" content="<?php echo $logo ?>" /> 
<? /* 

$sql23 = "SELECT * FROM `musica_artistas` WHERE `namea` = '$banda_ami' LIMIT 1";



$consulta23 = $conn->query($sql23);

while ($row23 = $consulta23->fetch_assoc())

{ 



$ID_b22  = $row23["ID"];

$code  = $row23["code"];

$real_name  = $row23["real_name"];



$area  = $row23["area"];

$tags  = $row23["tags"];

$face  = $row23["face"];

$home  = $row23["home"];

$youtube  = $row23["youtube"];

$wikipedia  = $row23["wikipedia"];

$spotify  = $row23["spotify"];

$external  = $row23["external"];

$info  = $row23["info"];

$namea  = $row23["namea"];



  $analizado = $row23["analizado"];

  $paisa = $row23["paisa"];

  $lastfm = $row23["lastfm"];

  $imdb = $row23["imdb"];

  $genius = $row23["genius"];

  $discogs = $row23["discogs"];

  $bbcmusic = $row23["bbcmusic"];

  $myspace = $row23["myspace"];

  $allmusic = $row23["allmusic"];

  $rateyourmusic = $row23["rateyourmusic"];

  $itunes = $row23["itunes"];

  $fortyfivecat = $row23["fortyfivecat"];

  $whosampled = $row23["whosampled"];

  $secondhandsongs = $row23["secondhandsongs"];

  $amazon = $row23["amazon"];

  $soundcloud = $row23["soundcloud"];

  $googleplus = $row23["googleplus"];

  $twitter = $row23["twitter"];

  $googleplay = $row23["googleplay"];

  $viaf = $row23["viaf"];

  $wikidata = $row23["wikidata"];

    



?>









<?php }

$consulta23->free_result();?>

<?











$sql23 = "SELECT * FROM `photos_music_bing` WHERE ID_b = '$ID_b22' LIMIT 1";







$consulta23 = $conn->query($sql23);

while ($row23 = $consulta23->fetch_assoc())

{ 



$img  = $row23["img"];



?>





<?php $type= exif_imagetype("/home/music/public_html/img/$img");  



}

$consulta23->free_result();



 */

 ?>



<meta property="og:image" content="<? if ($foto == '') {?><? echo $dom ?>/facebook.png<? } else { ?><? echo $dom ?>/img/<?php echo $foto ?><?php };?>" /> 



    <style>



        body {

           font-family: 'Poppins', sans-serif;







            <?php 

			

			$modo_nocturno=$_GET['modo_nocturno'];

            $size=$_GET['size'];

            $scroll=$_GET['scroll'];



if ($modo_nocturno == '') { $modo_nocturno = 'on'; } else {};



            if ($modo_nocturno=='on') {

                ?>background-color: #000000;

                color: #FFFFFF;



                <?

            }

            ;

            ?>

        }



		body::-webkit-scrollbar {
    width: 0.4em;
}

body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px #fff;
}

body::-webkit-scrollbar-thumb {
  background-color: #333333;
  outline: 1px solid #333333;
}
		

        .menu {



            font-size: 15px;



        }



        ;



        .tema {

            <? if ($size=='') {

                $size=14;

            }

            else {

                ?>font-size: <?php echo $size ?>px;



                <?

            }

            ;

            ?>

        }



        ;



        

        

        

        @media screen and (min-width: 1200px) {

            .logo_tam {

                font-size: 25px;

            }

			

			

			 .logo_img {

                width: 120px;

            }

           



            

        }



        @media screen and (max-width: 1200px) and (min-width: 850px) {

            .logo_tam {

                font-size: 24px;

            }

			

			 .logo_img {

                width: 110px;

            }

           



           

        }





        @media screen and (max-width: 849px) and (min-width: 750px) {



            .logo_tam {

                font-size: 19px;

            }

			

			 .logo_img {

                width: 100px;

            }

           

          

        }



        @media screen and (max-width: 749px) and (min-width: 630px) {



            .logo_tam {

                font-size: 16px;

            }

			

			 .logo_img {

                width: 100px;

            }

           

          

        }



        @media screen and (max-width: 629px) and (min-width: 450px) {







            .logo_tam {

                font-size: 13px;

            }

			

			 .logo_img {

                width: 100px;

            }

           



        }



        @media screen and (max-width: 449px) and (min-width: 350px) {



            .logo_tam {

                font-size: 11px;

            }

			

			 .logo_img {

                width: 70px;

            }

           

           

        }

        

        

    </style>

</head>



<body>

    <div class="menu" style="margin-bottom:20px;">



        

        <div style="width:50%; float:left; text-align:left;">

     <a href="<?php echo $dom ?>/inicio?modo_nocturno=<?php echo $modo_nocturno ?>"> <?php if ($modo_nocturno == 'on') { ?> <img class="logo_img" width="120px" src="<?php echo $dom2 ?>/logo-b.png"><? } else { ?><img class="logo_img" width="120px"  src="<?php echo $dom2 ?>/logo.png"><? };

        ?></a>

<br>

                   </div>

        <div style="width:50%; float:left; text-align:center;">

            <?php if ($modo_nocturno == 'on') { ?><a href="<?php echo $dom2 ?>/radio.php?modo_nocturno=off&size=<? echo $size; ?>&ID=<?php echo $ID ?>"><img width="30" src="<?php echo $dom2 ?>/encender-b.png" /></a>

            <? } else { ?> <a href="<?php echo $dom2 ?>/radio.php?modo_nocturno=on&size=<? echo $size; ?>&ID=<?php echo $ID ?>"><img width="30" src="<?php echo $dom2 ?>/luna.png" /></a>

                <? };        ?>

        </div>







    </div>



<br><br><br>



    <div style="width:100%; text-align:center;">



          <form action="<?php echo $dom ?>/buscar.php?modo_nocturno=<?php echo $modo_nocturno ?>" method="post">

        

<input type="text" placeholder="<?php echo $titulobusqueda001 ?>"  name="buscar" style="width:70%"> 

            

<button type="submit" style="width:20%"><?php echo $search ?></button>

</form>



    </div>





<h1><?php /* <img src="https://acordes.lacuerda.net/IMG/Bndr/<?php echo $pais ?>" /> */?> <?php echo $real_name ?></h1>


<hr />
   
   <div align="center">
   
<img src="<?php echo $logo ?>" width="200" />
<h1><?php echo $name ?></h1>	
<h2><?php echo $band ?> <?php echo $dial	 ?> - <?php echo $city ?></h2> 
<p></p>
	 
<p><a target="_blank" <?php if ($modo_nocturno == 'on') { ?> style="color: #CCCCCC; font-family: 'Poppins', sans-serif;" <?php } else { ?> style="color: #000099; font-family: 'Poppins', sans-serif;" <?php  };?> href="<?php echo $website	 ?>"><?php echo $website	 ?> </a><p>
<?php



if ($genres0 == '') {} else  { echo "/$genres0/ "; };
if ($genres1 == '') {} else  { echo "/$genres1/ "; };
if ($genres2 == '') {} else  { echo "/$genres2/ "; };
if ($genres3 == '') {} else  { echo "/$genres3/ "; };
if ($genres4 == '') {} else  { echo "/$genres4/ "; };
 ?>	

   

   
   
<?







$sql = "SELECT * FROM `streams` WHERE `ID_radio` = $ID AND `container` LIKE 'audio' AND `playlist` = ' ' LIMIT 1";





$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{


$url = $row["url"]; ?>
<hr />
Radio en Vivo (opcion 1)
<br />

<audio style="width:90%; max-width:400px; height:60px;" controls="controls" autoplay><source src="<?php echo $url ?>" type="<?php echo $media_type ?>"></audio>
 

<?


}

$consulta->free_result();

?>



<?








$sql = "SELECT * FROM `streams` WHERE `ID_radio` = $ID AND `container` LIKE 'audio' AND `playlist` = ' ' LIMIT 1,1";





$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{


$url = $row["url"]; ?>
<hr />
Radio en Vivo (opcion 2)
<br />

<audio style="width:90%; height:60px; max-width:400px;" controls="controls"><source src="<?php echo $url ?>" type="<?php echo $media_type ?>"></audio>
 

<?


}

$consulta->free_result();

?>

<br />

<?php if ($iframe == '') {} else {?>
<iframe width="90%" frameborder="0" style="max-width:450px" height="252" src="<?php echo $iframe ?>"></iframe> 
<?php }?>
<br />

<?php if ($m3u8 == '') {} else {?>
<iframe width="90%" frameborder="0" style="max-width:450px" height="254" src="https://radiosnet.com.ar/envivo2/tv/?m3u8=<?php echo $m3u8 ?>"></iframe> 
<?php }?>
<br />

<?








$sql = "SELECT * FROM `streams` WHERE `ID_radio` = $ID AND `is_external` LIKE '1' LIMIT 1";





$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{


$url = $row["url"]; ?>
<hr />


<a <?php if ($modo_nocturno == 'on') { ?> style="color: #CCCCCC; " <?php } else { ?> style="color: #000099;" <?php  };?> target="_blank" href="<?php echo $url ?>"><img src="<?php echo $dom2 ?>/poppup.png" width="20" <?php if ($modo_nocturno == 'on') { ?> style="filter: invert(100%);" <?php } else { ?> <?php  };?> /> Reproductor Externo</a>

 

<?


}

$consulta->free_result();

?>

<hr />
<?






$sql = "SELECT * FROM `streams` WHERE `ID_radio` = '$ID' AND `playlist` != ' '";



$consulta = $conn->query($sql);

while ($row = $consulta->fetch_assoc())

{


$url = $row["url"];

$playlist = $row["playlist"];  ?>

/<a <?php if ($modo_nocturno == 'on') { ?> style="color: #CCCCCC; " <?php } else { ?> style="color: #000099; " <?php  };?> target="_blank" href="<?php echo $url ?>"><img src="<?php echo $dom2 ?>/makefg.png" width="20" height="20" <?php if ($modo_nocturno == 'on') { ?>  <?php } else { ?> style="filter: invert(100%);" <?php  };?> /> Playlist <?php echo $playlist ?></a>/ 

<?


}

$consulta->free_result();

?>
   </div>


     
        
       <?php echo  $analitycs ?>



</body>



</html>

