if ($_GET['action'] == "getAlbumArt") { $id3 = $streams->id3($_GET['dir'], $_GET['file']); print json_encode(array("albumart" => $id3['albumart'])); $streams->print_gzipped_page(); die; } else { if ($_GET['action'] == "getHomeIndex") { print $streams->getHomeIndex(); die; } else { if ($_GET['action'] == "createPersonalRadio") { print $streams->createPersonalRadio($_GET['dir'], $_GET['num']); die; } else { if ($_GET['action'] == "startPersonalRadio") { print $streams->startPersonalRadio($_GET['num'], $_GET['station']); die; } else { if ($_GET['action'] == "addToPersonalRadio") { print $streams->addToPersonalRadio($_GET['dir']); die; } else { if ($_GET['action'] == "removeFromPersonalRadio") { print $streams->removeFromPersonalRadio($_GET['dir'], $_GET['station']); die; } else { if ($_GET['action'] == "saveMyRadio") { print $streams->saveMyRadio($_GET['name']); die; } else { if ($_GET['action'] == "viewMyRadio") {