Radio-dodsorfas/web/index.php

25 lines
435 B
PHP
Raw Permalink Normal View History

2018-09-27 14:18:03 +02:00
<?php
include('functions.php');
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$url = $_POST['url'];
$url = preg_replace("/:/", "$(colon)", $url);
echo telnet_send("request.push ffmpeg2wav:youtube-dl:" . $url);
}
?>
<html>
<head>
<title>Radio Dodsorfas</title>
</head>
<body>
<form action="/index.php" method="post">
Song: <input type="text" name="url"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>