Your IP : 216.73.217.87
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
$server_name=$_SERVER["SERVER_NAME"];
$server_name_www=str_replace("www","",$server_name);
if ($server_name!=$server_name_www)
{
header("location: https://radio.vlevski.eu/");
}
$lnk_stream="https://radio.vlevski.eu/live/";
$lnk_live="live";
$useragent=$_SERVER['HTTP_USER_AGENT'];
if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4)))
{
$mbl=1;
}
else
{
$mbl=0;
}
?><!DOCTYPE HTML>
<html>
<head>
<link rel="icon" type="image/ico" href="/radio.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/radio.ico" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<meta name="description" content="Радио на СУ "Васил Левски" - Троян" />
<meta http-equiv-"X-UA-Compatible" content="IE=edge" />
<title>Училищно радио на СУ "Васил Левски" - Троян</title>
<style>
html
{
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
}
body
{
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0px;
color: #000000;
font-weight: normal;
}
div, span, input, select
{
font-family: Verdana;
font-size: 20px;
color: #000000;
}
b
{
font-family: Verdana;
font-size: 15px;
font-weight: bold;
color: #000000;
}
a:link, a:active, a:visited
{
font-family: Verdana;
font-size: 20px;
font-weight: bold;
color: #000000;
text-decoration: underline;
}
a:hover
{
text-decoration: none;
}
#cs, #si, #st
{
border: 2px #007700 solid;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
margin: auto;
text-align: center;
font-size: 15px;
}
.h
{
position: absolute;
top: 0px;
left: 0px;
padding-top: 30px;
padding-left: 0px;
text-align: center;
width: 187px;
height: 74px;
text-decoration: none;
font-family: Verdana, serif;
font-size: 12px;
font-weight: bold;
color: #FFFFFF;
}
.css_button
{
width: 240px;
height: 40px;
padding: 0px 0px;
border: 1px solid #5577BB;
background: -webkit-gradient(linear, left top, left bottom, from(#5577BB), to(#335599));
background: -webkit-linear-gradient(top, #5577BB, #335599);
background: -moz-linear-gradient(top, #5577BB, #335599);
background: -ms-linear-gradient(top, #5577BB, #335599);
background: -o-linear-gradient(top, #5577BB, #335599);
background-color: #5577BB;
box-shadow: inset 0px 0px 1px #FFFFFF;
-webkit-box-shadow: inset 0px 0px 1px #FFFFFF;
-moz-box-shadow: inset 0px 0px 1px #FFFFFF;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
color: #FFFFFF;
text-decoration: none;
-webkit-transition: 0.4s;
-moz-transition: 0.4s;
-o-transition: 0.4s;
margin: 0px 0px;
display: block;
text-align: center;
}
.css_button:hover
{
box-shadow: 0px 0px 8px 0px #000000;
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
border: 1px solid #FFFFFF;
}
@keyframes marquee
{
0%
{
transform: translateX(100%);
}
100%
{
transform: translateX(-100%);
}
}
</style>
<script src="/js/jquery.min.js"></script>
<script>
var first_time=1;
var current_song="";
function greetings_send()
{
var yname=document.getElementById("yname").value;
var fname=document.getElementById("fname").value;
yname=yname.replace("Вашето име...","");
fname=fname.replace("Името на Вашия приятел...","");
yname=yname.replace(" ","");
fname=fname.replace(" ","");
if ((yname=="") || (fname==""))
{
document.getElementById("not_fill").style.display="block";
}
else
{
document.getElementById("gfs").submit();
document.getElementById("info").innerHTML="<center><br />Моля, изчакайте...<br />Изпращаме Вашия поздрав!<img src='/images/greetings.png' width='210' height='300' style='position: absolute; top: 150px; left: 80px; width: 210px; height: 300px; border: none;' alt='' /></center>";
}
}
function clear_message()
{
document.getElementById("not_fill").style.display="none";
}
function set_title(ttl)
{
if (first_time==1)
{
document.title="" + ttl + "";
}
else
{
var play_song=document.getElementById("vl_radio_stop").style.display;
if (play_song=="block")
{
document.title="▶ " + ttl + "";
}
else
{
document.title="" + ttl + "";
}
}
}
function init_song()
{
$("#cs").load("/getsong.php", function(response, status, xhr)
{
if (status=="error")
{
$("#cs").html("Сървърът не работи :(<br />Опитайте по-късно!<br /> ");
document.title="Сървърът не работи :(";
}
else
{
var dts=response.split("|");
$("#cs").html(""+dts[0]+""+dts[4]+"");
var ttl = dts[0].replace("в момента:<br /><b>", "");
ttl = ttl.replace("<br /><i>"", " - ");
ttl = ttl.replace("<i>"", "");
ttl = ttl.replace(""</i></b><br /> ", "");
ttl = ttl.replace(""</i></b>", "");
ttl = ttl.replace("<br /> ", "");
ttlch = ttl.replace("Сървърът не работи", "");
sngnumber=dts[1];
if (ttlch!=ttl)
{
$("#cs").html("Сървърът не работи :(<br />Опитайте по-късно!<br /> ");
document.title="Сървърът не работи :(";
}
else
{
set_title(ttl);
}
<?php
if ($mbl==0)
{
?>
if (current_song!=sngnumber)
{
$("#spict").html("<div style=\"border: none; font-size: 26px; line-height: 26px; color: #000000; white-space: nowrap; animation: marquee 10s linear infinite;\">"+dts[2]+"</div>");
$("#spic").css("background-image", "url('/images/artists/"+dts[1]+".jpg')");
$("#spic").css("background-size", "450px 450px");
$("#spic").css("background-repeat", "no-repeat");
current_song=sngnumber;
}
$("#st").html(""+dts[3]+"");
<?php
}
?>
}
});
}
function init_play()
{
check_play=document.getElementById("vl_radio").playState;
if (check_play==3)
{
clearTimeout(intp);
setTimeout(function(){ stop_loading(); }, 3000);
}
}
function listen_play()
{
$("#vl_init_player").html("<audio onloadedmetadata=\"stop_loading()\" id=\"vl_radio\" src=\"<?php print("".$lnk_stream.""); ?>live.ogg\" type=\"audio/ogg\"></audio>");
$("#listen_box").html("<div id=\"vl_loading\" style=\"position: absolute; top: 15px; left: 0px; visibility: hidden; width: 300px; height: 30px; text-align: center;\"><img src=\"/images/note.gif\" width=\"24\" height=\"24\" style=\"width: 24px; height: 24px; border: none;\" alt=\"\" /><span style=\"background-color: transparent; color: #BB0000; font-size: 22px; font-weight: bold;\">ЗАРЕЖДАНЕ</span></div><a href=\"javascript: listen_play();\"><img id=\"vl_radio_play\" src=\"/images/vl_radio_play.png\" width=\"65\" height=\"65\" style=\"position: absolute; top: 0px; left: 5px; width: 65px; height: 65px; border: none;\" alt=\"\" /></a><a href=\"javascript: listen_stop();\"><img id=\"vl_radio_stop\" src=\"/images/vl_radio_stop.png\" width=\"65\" height=\"65\" style=\"position: absolute; top: 0px; left: 5px; width: 65px; height: 65px; border: none; display: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_down();\"><img id=\"vl_radio_volume_down\" src=\"/images/vl_radio_volume_down.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 107px; width: 48px; height: 48px; border: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_mute();\" onmouseover=\"over_volume_mute();\" onmouseout=\"out_volume_mute();\"><img id=\"vl_radio_volume_mute\" src=\"/images/vl_radio_volume_restore.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 165px; width: 48px; height: 48px; border: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_restore();\"><img id=\"vl_radio_volume_restore\" src=\"/images/vl_radio_volume_mute.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 165px; width: 48px; height: 48px; border: none; display: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_up();\"><img id=\"vl_radio_volume_up\" src=\"/images/vl_radio_volume_up.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 223px; width: 48px; height: 48px; border: none;\" alt=\"\" /></a><div id=\"outside_player\" style=\"position: absolute; top: 50px; left: 30px; width: 270px; height: 48px; background-color: transparent; text-align: center;\">с външен плейър - <a href=\"/<?php print("".$lnk_live.""); ?>.m3u\" onclick=\"listen_stop(); return true;\" target=\"_blank\">тук</a></div>");
$("#vl_loading").css("visibility", "visible");
$("#vl_radio_play").css("display", "none");
$("#vl_radio_stop").css("display", "none");
$("#vl_radio_volume_down").css("display", "none");
$("#vl_radio_volume_up").css("display", "none");
$("#vl_radio_volume_mute").css("display", "none");
$("#vl_radio_volume_restore").css("display", "none");
$("#outside_player").css("display", "none");
document.getElementById("vl_radio").play();
}
function listen_play_mobile()
{
$("#vl_init_player").html("<audio onloadedmetadata=\"stop_loading()\" id=\"vl_radio\" src=\"<?php print("".$lnk_stream.""); ?>live.ogg\" type=\"audio/ogg\"></audio>");
$("#listen_box").html("<div id=\"vl_loading\" style=\"position: absolute; top: 15px; left: 0px; visibility: hidden; width: 300px; height: 30px; text-align: center;\"><img src=\"/images/note.gif\" width=\"24\" height=\"24\" style=\"width: 24px; height: 24px; border: none;\" alt=\"\" /><span style=\"background-color: transparent; color: #BB0000; font-size: 22px; font-weight: bold;\">ЗАРЕЖДАНЕ</span></div><a href=\"javascript: listen_play_mobile();\"><img id=\"vl_radio_play\" src=\"/images/vl_radio_play.png\" width=\"65\" height=\"65\" style=\"position: absolute; top: 0px; left: 5px; width: 65px; height: 65px; border: none;\" alt=\"\" /></a><a href=\"javascript: listen_stop();\"><img id=\"vl_radio_stop\" src=\"/images/vl_radio_stop.png\" width=\"65\" height=\"65\" style=\"position: absolute; top: 0px; left: 5px; width: 65px; height: 65px; border: none; display: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_down();\"><img id=\"vl_radio_volume_down\" src=\"/images/vl_radio_volume_down.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 107px; width: 48px; height: 48px; border: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_mute();\" onmouseover=\"over_volume_mute();\" onmouseout=\"out_volume_mute();\"><img id=\"vl_radio_volume_mute\" src=\"/images/vl_radio_volume_restore.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 165px; width: 48px; height: 48px; border: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_restore();\"><img id=\"vl_radio_volume_restore\" src=\"/images/vl_radio_volume_mute.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 165px; width: 48px; height: 48px; border: none; display: none;\" alt=\"\" /></a><a href=\"javascript: listen_volume_up();\"><img id=\"vl_radio_volume_up\" src=\"/images/vl_radio_volume_up.png\" width=\"48\" height=\"48\" style=\"position: absolute; top: 1px; left: 223px; width: 48px; height: 48px; border: none;\" alt=\"\" /></a>");
$("#vl_loading").css("visibility", "visible");
$("#vl_radio_play").css("display", "none");
$("#vl_radio_stop").css("display", "none");
$("#vl_radio_volume_down").css("display", "none");
$("#vl_radio_volume_up").css("display", "none");
$("#vl_radio_volume_mute").css("display", "none");
$("#vl_radio_volume_restore").css("display", "none");
document.getElementById("vl_radio").play();
}
function listen_stop()
{
document.getElementById("vl_radio").src="";
$("#vl_radio_play").css("display", "block");
$("#vl_radio_stop").css("display", "none");
$("#vl_radio_volume_down").css("display", "none");
$("#vl_radio_volume_up").css("display", "none");
$("#vl_radio_volume_mute").css("display", "none");
$("#vl_radio_volume_restore").css("display", "none");
$("#vl_init_player").html("");
play_song=0;
if (document.title.indexOf("▶ ")==0)
{
document.title=document.title.substr(2);
}
}
function listen_volume_down()
{
if (document.getElementById("vl_radio").volume<=0.09)
{
document.getElementById("vl_radio").volume=0;
}
else
{
document.getElementById("vl_radio").volume-=0.1;
}
}
function listen_volume_up()
{
if (document.getElementById("vl_radio").volume>=0.91)
{
document.getElementById("vl_radio").volume=1;
}
else
{
document.getElementById("vl_radio").volume+=0.1;
}
}
function listen_volume_mute()
{
document.getElementById("vl_radio").muted=true;
$("#vl_radio_volume_restore").css("display", "block");
$("#vl_radio_volume_mute").css("display", "none");
}
function listen_volume_restore()
{
document.getElementById("vl_radio").muted=false;
$("#vl_radio_volume_mute").css("display", "block");
$("#vl_radio_volume_restore").css("display", "none");
}
function over_volume_mute()
{
document.getElementById("vl_radio_volume_mute").src="/images/vl_radio_volume_mute.png";
}
function out_volume_mute()
{
document.getElementById("vl_radio_volume_mute").src="/images/vl_radio_volume_restore.png";
}
function stop_loading()
{
$("#vl_loading").css("visibility", "hidden");
$("#vl_radio_play").css("display", "none");
$("#vl_radio_stop").css("display", "block");
$("#vl_radio_volume_down").css("display", "block");
$("#vl_radio_volume_up").css("display", "block");
$("#vl_radio_volume_mute").css("display", "block");
$("#vl_radio_volume_restore").css("display", "none");
$("#outside_player").css("display", "block");
if (document.title.indexOf("▶ ")==-1)
{
document.title="▶ "+document.title;
}
first_time++;
}
function listen_live()
{
<?php
if ($mbl==1)
{
?>
listen_play_mobile();
<?php
}
else
{
?>
listen_play();
<?php
}
?>
}
</script>
</head>
<body>
<?php
if ($mbl==1)
{
?>
<div style="position: relative; margin: 0 auto; width: 100%; min-height: 100%; z-index: 1;">
<div id="main_site" style="position: relative; z-index: 3; text-align: center;">
<img src="/images/logom.png" width="356" height="100" style="position: absolute; width: 356px; height: 100px; top: 0px; left: 0px; z-index: 2; border: none;" alt="Васил Левски" />
<div id="radio_player" style="position: absolute; top: 110px; left: 0px; width: 356px; height: 294px; background-color: transparent; overflow: hidden;">
<div id="vl_init_player" style="position: absolute; left: 0px; top: 0px; width: 1px; height: 1px; overflow: hidden;"></div>
<div id="listen_box" style="position: relative; left: 25px; width: 300px; height: 75px; border: 3px #007700 solid; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px;">
<a href="javascript: listen_live();"><img src="/images/live.png" width="300" height="75" style="width: 300px; height: 75px; border: none;" alt="Слушай онлайн" /></a>
</div>
<div id="cs" style="position: absolute; top: 90px; left: 0px; width: 352px; height: 100px; display: none;"></div>
<div style="position: absolute; top: 200px; left: 0px; width: 352px; height: 90px; background-color: transparent; border: 2px #007700 solid; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; text-align: center; font-style: italic; font-weight: bold; font-size: 14px;"><br />Автори: Гергана и Теодора<br />Обновяване: Николай и Михаил<br />2014-<?php print(date("Y")); ?></div>
</div>
</div>
</div>
<?php
}
else
{
?>
<div style="position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; z-index: 0; background: url('/images/bg.jpg'); background-size: 100% 100%; background-repeat: no-repeat;">
</div>
<div style="position: relative; margin: 0 auto; width: 1000px; min-height: 500px; z-index: 1; opacity: 0.8; filter: alpha(opacity=80);">
<div style="position: fixed; margin: 0 auto; width: 1000px; max-height: 100%; height: 100%; min-height: 100%; background: #EEEEEE; z-index: 2;">
</div>
<div id="main_site" style="position: relative; z-index: 3;">
<div id="radio_player" style="position: absolute; top: 0px; left: 484px; width: 506px; height: 704px; background-color: transparent; overflow: hidden;">
<div id="listen_box" style="position: relative; left: 200px; top: 15px; width: 300px; height: 75px; border: 3px #007700 solid; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px;">
<a href="javascript: listen_live();"><img src="/images/live.png" width="300" height="75" style="width: 300px; height: 75px; border: none;" alt="Слушай онлайн" /></a>
</div>
<div id="vl_init_player" style="position: absolute; left: 0px; top: 0px; width: 1px; height: 1px; overflow: hidden;"></div>
<div id="spic" style="position: absolute; top: 110px; left: 50px; width: 450px; height: 450px; border: 2px #007700 solid; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; background: url('/images/singers/error.jpg') center center no-repeat transparent; text-align: right; font-size: 30px; line-height: 200px; overflow: hidden; color: #FFFFFF;"></div>
<div id="spict" style="position: absolute; top: 570px; left: 50px; width: 450px; height: 30px; border: none; font-size: 30px; line-height: 30px; overflow: hidden;">
</div>
<div style="position: absolute; top: 610px; left: 50px; width: 450px; height: 90px; background-color: transparent; border: 2px #007700 solid; border-radius: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; text-align: center; font-style: italic; font-weight: bold; font-size: 14px;"><br />Автори: Гергана и Теодора<br />Обновяване: Николай и Михаил<br />2014-<?php print(date("Y")); ?></div>
</div>
<img src="/images/logo.png" width="630" height="100" style="position: relative; left: 10px; top: 5px; z-index: 2; border: none;" alt="Васил Левски" />
<div id="cs" style="position: absolute; top: 110px; left: 10px; width: 502px; height: 80px; display: none;"></div>
<div id="si" style="position: absolute; top: 200px; left: 10px; width: 502px; height: 500px;">
<div id="st" style="position: absolute; top: 5px; left: 5px; width: 492px; height: 490px; text-align: center; border: none; overflow-x: hidden; overflow-y: auto;">
</div>
</div>
</div>
</div>
<?php
}
?>
<script>
init_song();
$("#cs").css("display", "block");
var b=setInterval(function(){ init_song(); }, 10000);
</script>
</body>
</html>