Beispiel #1
0
                                 print $streams->suggestRadioStationItem($_GET['term']);
                                 die;
                             } else {
                                 if ($_GET['action'] == "addToRadioStation") {
                                     print $streams->addToRadioStation($_GET['station'], $_GET['dir']);
                                     die;
                                 } else {
                                     if ($_GET['action'] == "saveVolume") {
                                         print $streams->saveVolume($_GET['volume']);
                                         die;
                                     } else {
                                         if ($_GET['action'] == "downloadPlaylist") {
                                             die;
                                         } else {
                                             if ($_GET['action'] == "removeFromPlaylist") {
                                                 print $streams->removeFromPlaylist($_GET['dir'], $_GET['file']);
                                                 die;
                                             } else {
                                                 die("Unused action.");
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }