aboutsummaryrefslogblamecommitdiff
path: root/index.php
blob: 86d7190faf02c986943ae03924e67cfa5ccafe9e (plain) (tree)
1
2
3
4
5



                              
                                                                                  













                                                                                                                     









                                                                                              


               
<!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>