blob: 86d7190faf02c986943ae03924e67cfa5ccafe9e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="https://arf20.com/style.css">
<title>ARFNET</title>
</head>
<body>
<header><a href="/">
<img src="http://arf20.com/arfnet_logo.png" width="64"><span class="title"><strong>ARFNET</strong></span>
</a></header>
<hr>
<main>
<h2 class="center">Radio</h2>
<p>Listen to ARFNET Internet Radio<br>
Weird nice music arf20 likes</p>
<audio controls>
<source src="/stream" type="audio/ogg">
</audio>
<pre>
<?php
$host = "192.168.4.6";
$output = null;
exec("/usr/bin/mpc --host=$host -f \"[[%artist% - ][%album% - ]%title%]|[%file%]\"", $output);
echo $output[0] . "\n";
echo $output[1];
?>
</pre>
</main>
</body>
</html>
|