aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: 1ec9d49b5a2abf5fd194ece78a397c7b2236d1e6 (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="http://arf20.com">
            <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>