From b9740e49ffc081f4c4947c8f6e820bf633292a0f Mon Sep 17 00:00:00 2001 From: Pecusx Date: Fri, 6 Jan 2017 16:35:55 +0100 Subject: [PATCH] Stationlist change - Experimental --- html/changeconf.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/html/changeconf.php b/html/changeconf.php index 227b82b..3e5420e 100755 --- a/html/changeconf.php +++ b/html/changeconf.php @@ -149,7 +149,22 @@ if (isset($msg)) { echo "\r\n"; } } elseif ($msg == "stations") { - echo "Not implemented..."; + echo "New stations list:\r\n"; + $stations = $_POST['stations']; + if ($stations[0] == "#") { + $stations = "\r\n".$stations; + } + $stations_tmp = preg_replace("/\n#.*/", "", $stations); + echo "
".htmlspecialchars($stations_tmp)."
"; + file_put_contents('/var/lib/radiod/stationlist_new', $stations); + echo "\r\nStill experimental :)
\r\n"; + echo "Generating new playlist...
\r\n"; + echo "\r\n"; } elseif ($msg == "network") { echo "Not implemented..."; } elseif ($msg == "update") {