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 :)