Browse Source

-dubtechno.com.br | + Anima Amoris [DubTech Mix]

master
ivan 5 years ago
parent
commit
08b86039ac
  1. 77
      id.php
  2. 117
      index.html

77
id.php

@ -7,18 +7,43 @@ function getID($radioip,$radioport,$postfix = "GET /7.html HTTP/1.1\nUser-Agent:
{
$open = fsockopen($radioip,$radioport,$errno,$errstr,'.5');
if ($open) {
fputs($open,$postfix);
stream_set_timeout($open,'1');
$read = fread($open,255);
$exploded = explode(",",$read);
if($exploded[6] == '' || $exploded[6] == '</body></html>')
{ $text = 'streaming'; } else { $text = $exploded[6]; }
$id = str_replace("</body></html>","",$text);
fputs($open,$postfix);
stream_set_timeout($open,'1');
$read = fread($open,255);
$exploded = explode(",",$read);
if($exploded[6] == '' || $exploded[6] == '</body></html>')
{ $text = 'streaming'; } else { $text = $exploded[6]; }
$id = str_replace("</body></html>","",$text);
} else { return false; }
fclose($open);
return $id;
fclose($open);
return $id;
}
$radioip = "93.100.61.75";
$radioport = "8000";
echo getID($radioip,$radioport);
echo ":;:";
$radioip = "67.212.165.106";
$radioport = "8144";
echo getID($radioip,$radioport);
echo ":;:";
$radioip = "93.100.61.75";
$radioport = "8024";
echo getID($radioip,$radioport);
echo ":;:";
// // outdated:
// $radioip = "173.236.30.162";
// $radioport = "8022";
// echo getID($radioip,$radioport);
// // outdated:
// $radioip = "91.237.213.34";
// $radioport = "8008";
// echo getID($radioip,$radioport).":;:";
$radioip = "79.120.39.202";
$radioport = "9009";
echo getID($radioip,$radioport);
echo ":;:";
// Icecast
// https://stackoverflow.com/a/17109654
function getMp3StreamTitle($streamingUrl, $interval, $offset = 0, $headers = true)
@ -58,29 +83,17 @@ function getMp3StreamTitle($streamingUrl, $interval, $offset = 0, $headers = tru
throw new Exception("Unable to open stream [{$streamingUrl}]");
}
$radioip = "93.100.61.75";
$radioport = "8000";
echo getID($radioip,$radioport).":;:";
$radioip = "67.212.165.106";
$radioport = "8144";
echo getID($radioip,$radioport).":;:";
$radioip = "173.236.30.162";
$radioport = "8022";
echo getID($radioip,$radioport).":;:";
// // outdated:
// $radioip = "91.237.213.34";
// $radioport = "8008";
// echo getID($radioip,$radioport).":;:";
$radioip = "79.120.39.202";
$radioport = "9009";
echo getID($radioip,$radioport).":;:";
echo getMp3StreamTitle('http://audio-online.net:8015/live', 19200);
echo ":;:";
echo getMp3StreamTitle('http://audio-online.net:8015/live', 19200).":;:";
echo getMp3StreamTitle('http://prem2.di.fm/dubtechno_hi?95f925a23d7093d9f7156fc5', 19200).":;:";
$radioip = "sonus.fm";
$radioport = "8000";
$postfix = "GET /7.html?sid=3 HTTP/1.1\nUser-Agent:Mozilla\n\n";
echo getID($radioip,$radioport,$postfix);
echo ":;:";
$radioip = "136.243.16.19";
$radioport = "8000";
$postfix = "GET /7.html?sid=3 HTTP/1.1\nUser-Agent:Mozilla\n\n";
echo getID($radioip,$radioport,$postfix).":;:";
echo getMp3StreamTitle('http://pub2.diforfree.org:8000/di_dubtechno_hi', 19200);
echo ":;:";
echo ":;:";
?>
?>

117
index.html

@ -17,32 +17,32 @@ a8" `Y88 88 88 88P' "8a 88 a8P_____88 a8" "" 88P' "8a
<link rel="stylesheet" type="text/css" href="anthrstlsht.css">
<title>dub tech</title>
<style type="text/css">
.container { display: table; height: 100vh; }
.tabb { display: table-cell; vertical-align: middle; }
body { background-color: #888; background: url(bk.jpg) repeat-y; }
.container { display: table; height: 100vh; }
.tabb { display: table-cell; vertical-align: middle; }
body { background-color: #888; background: url(bk.jpg) repeat-y; }
</style>
<!-- script by bodqhrohro -->
<!-- script by bodqhrohro -->
<script type="text/javascript">
function allID () {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'id.php');
xhr.send(null);
xhr.onreadystatechange = function() {
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {
xhr.responseText.split('\n').forEach(function(line) {
var kvID = line.split(':;:');
document.getElementById("first").innerHTML = kvID[1];
document.getElementById("second").innerHTML = kvID[2];
document.getElementById("third").innerHTML = kvID[3];
// document.getElementById("fourth").innerHTML = kvID[4];
document.getElementById("fifth").innerHTML = kvID[4];
document.getElementById("sixth").innerHTML = kvID[5];
document.getElementById("seventh").innerHTML = kvID[6];
document.getElementById("eighth").innerHTML = kvID[7];
})
}
}
}
function allID () {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'id.php');
xhr.send(null);
xhr.onreadystatechange = function() {
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {
xhr.responseText.split('\n').forEach(function(line) {
var kvID = line.split(':;:');
document.getElementById("first").innerHTML = kvID[1];
document.getElementById("second").innerHTML = kvID[2];
document.getElementById("third").innerHTML = kvID[3];
// document.getElementById("fourth").innerHTML = kvID[4];
document.getElementById("fifth").innerHTML = kvID[4];
document.getElementById("sixth").innerHTML = kvID[5];
document.getElementById("seventh").innerHTML = kvID[6];
document.getElementById("eighth").innerHTML = kvID[7];
})
}
}
}
allID();
setInterval(allID, 1e4);
</script>
@ -51,45 +51,50 @@ a8" `Y88 88 88 88P' "8a 88 a8P_____88 a8" "" 88P' "8a
<div class="container">
<table class="tabb">
<tr><td>
<h5 align="right"><b><a href="http://anima.sknt.ru">Anima Amoris [Dub Techno]</a></b></h5>
<h5 align="right"><b><a href="http://amoris.sknt.ru:8000">http://93.100.61.75:8000</a></b></h5>
</td><td><audio controls preload="none"><source src="http://amoris.sknt.ru:8000/;" type="audio/mpeg"></audio></td><td>
<h6 id="first"></h6>
<h5 align="right"><b><a href="http://anima.sknt.ru">Anima Amoris [Dub Techno]</a></b></h5>
<h5 align="right"><b><a href="http://amoris.sknt.ru:8000">http://93.100.61.75:8000</a></b></h5>
</td><td><audio controls preload="none"><source src="http://amoris.sknt.ru:8000/;" type="audio/mpeg"></audio></td><td>
<h6 id="first"></h6>
</td></tr><tr><td>
<h5 align="right"><b><a href="http://sursumcorda.ning.com">arctic dub (sursumcorda)</a></b></h5>
<h5 align="right"><b><a href="http://67.212.165.106:8144">http://67.212.165.106:8144</a></b></h5>
</td><td><audio controls preload="none"><source src="http://67.212.165.106:8144/;" type="audio/mpeg"></audio></td><td>
<h6 id="second"></h6>
<h5 align="right"><b><a href="http://anima.sknt.ru">Anima Amoris [DubTech Mix]</a></b></h5>
<h5 align="right"><b><a href="http://amoris.sknt.ru:8024">http://93.100.61.75:8024</a></b></h5>
</td><td><audio controls preload="none"><source src="http://amoris.sknt.ru:8024/;" type="audio/mpeg"></audio></td><td>
<h6 id="third"></h6>
</td></tr><tr><td>
<h5 align="right"><b><a href="http://dubtechno.com.br">Dub Techno Station</a></b></h5>
<h5 align="right"><b><a href="http://173.236.30.162:8022">http://173.236.30.162:8022</a></b></h5>
</td><td><audio controls preload="none"><source src="http://173.236.30.162:8022/stream" type="audio/mpeg"></audio></td><td>
<h6 id="third"></h6>
<h5 align="right"><b><a href="http://sursumcorda.ning.com">arctic dub (sursumcorda)</a></b></h5>
<h5 align="right"><b><a href="http://67.212.165.106:8144">http://67.212.165.106:8144</a></b></h5>
</td><td><audio controls preload="none"><source src="http://67.212.165.106:8144/;" type="audio/mpeg"></audio></td><td>
<h6 id="second"></h6>
</td></tr><tr><td>
<!-- outdated:<h5 align="right"><b><a href="http://dubtechno.com.br">Dub Techno Station</a></b></h5>
<h5 align="right"><b><a href="http://173.236.30.162:8022">http://173.236.30.162:8022</a></b></h5>
</td><td><audio controls preload="none"><source src="http://173.236.30.162:8022/stream" type="audio/mpeg"></audio></td><td>
<h6 id="third"></h6> -->
<!-- outdated: </td></tr><tr><td>
<h5 align="right"><b><a href="http://electronicmusic.fm">electronicmusic.fm - Dub</a><br>
<a href="http://91.237.213.34:8008">http://91.237.213.34:8008</a></b></h5>
</td><td><audio controls preload="none"><source src="http://91.237.213.34:8008/;" type="audio/mpeg"></audio></td><td>
<h6 id="fourth"></h6> -->
<h5 align="right"><b><a href="http://electronicmusic.fm">electronicmusic.fm - Dub</a><br>
<a href="http://91.237.213.34:8008">http://91.237.213.34:8008</a></b></h5>
</td><td><audio controls preload="none"><source src="http://91.237.213.34:8008/;" type="audio/mpeg"></audio></td><td>
<h6 id="fourth"></h6> -->
</td></tr><tr><td>
<h5 align="right"><b><a href="http://radcap.ru">Radio Caprice - Dub Techno</a></b></h5>
<h5 align="right"><b><a href="http://79.120.39.202:9009">http://79.120.39.202:9009</a></b></h5>
</td><td><audio controls preload="none"><source src="http://79.120.39.202:9009/;" type="audio/mpeg"></audio></td><td>
<h6 id="fifth"></h6>
<h5 align="right"><b><a href="http://radcap.ru">Radio Caprice - Dub Techno</a></b></h5>
<h5 align="right"><b><a href="http://79.120.39.202:9009">http://79.120.39.202:9009</a></b></h5>
</td><td><audio controls preload="none"><source src="http://79.120.39.202:9009/;" type="audio/mpeg"></audio></td><td>
<h6 id="fifth"></h6>
</td></tr><tr><td>
<h5 align="right"><b><a href="http://www.locafm.com/dub-techno/player.html">Loca FM Dub Techno</a></b></h5>
<h5 align="right"><b><a href="http://audio-online.net:8015/live">http://audio-online.net:8015/live</a></b></h5>
</td><td><audio controls src="http://audio-online.net:8015/live" preload="none"></audio></td><td>
<h6 id="sixth"></h6>
<h5 align="right"><b><a href="http://www.locafm.com/dub-techno/player.html">Loca FM Dub Techno</a></b></h5>
<h5 align="right"><b><a href="http://audio-online.net:8015/live">http://audio-online.net:8015/live</a></b></h5>
</td><td><audio controls src="http://audio-online.net:8015/live" preload="none"></audio></td><td>
<h6 id="sixth"></h6>
</td></tr><tr><td>
<h5 align="right"><b><a href="http://www.di.fm/dubtechno">Digitally Imported Dub Techno</a></b></h5>
<h5 align="right"><b><a href="http://prem2.di.fm/dubtechno_hi?95f925a23d7093d9f7156fc5">http://prem2.di.fm/dubtechno_hi</a></b></h5>
</td><td><audio controls src="http://prem2.di.fm/dubtechno_hi?95f925a23d7093d9f7156fc5" preload="none"></audio></td><td>
<h6 id="seventh"></h6>
<h5 align="right"><b><a href="http://www.chillkyway.net/">Chillkyway - outer space</a></b></h5>
<h5 align="right"><b><a href="http://sonus.fm:8000/index.html?sid=3">http://sonus.fm:8000</a></b></h5>
</td><td><audio controls preload="none"><source src="http://sonus.fm:8000/stream/3/" type="audio/mpeg"></audio></td><td>
<h6 id="seventh"></h6>
</td></tr><tr><td>
<h5 align="right"><b><a href="http://www.chillkyway.net/">Chillkyway - outer space</a></b></h5>
<h5 align="right"><b><a href="http://sonus.fm:8000/index.html?sid=3">http://sonus.fm:8000</a></b></h5>
</td><td><audio controls preload="none"><source src="http://136.243.16.19:8000/stream/3/" type="audio/mpeg"></audio></td><td>
<h6 id="eighth"></h6>
<h5 align="right"><b><a href="http://www.di.fm/dubtechno">Digitally Imported Dub Techno</a></b></h5>
<h5 align="right"><b><a href="http://pub2.diforfree.org:8000/di_dubtechno_hi">http://prem2.di.fm/dubtechno_hi</a></b></h5>
</td><td><audio controls src="http://pub2.diforfree.org:8000/di_dubtechno_hi" preload="none"></audio></td><td>
<h6 id="eighth"></h6>
</td><td>
</td></tr><tr><td colspan="3">
<br><h4 align="center"> </h4>

Loading…
Cancel
Save