aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/index.php b/index.php
index 66a685d..e892584 100644
--- a/index.php
+++ b/index.php
@@ -17,7 +17,16 @@
Weird nice music arf20 likes</p>
<audio controls>
<source src="/stream" type="audio/ogg">
- </audio>
+ </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>