message != $prevmsg) || ($statusdec->status == "ready")) { print $status; break; } usleep(1000); } break; case ("getTimers"): $tree = getTimers(); print $tree; break; case ("editTimer"): $tree = editTimer($_REQUEST['id'], $_REQUEST['name'], $_REQUEST['active'], $_REQUEST['channumber'], $_REQUEST['date'], $_REQUEST['starttime'], $_REQUEST['endtime']); print $tree; break; case ("delTimer"): $tree = delTimer($_REQUEST['id']); print $tree; break; case ("browseFolder"): $path = $_REQUEST['path']; $tree = browseFolder($_REQUEST['path']); print $tree; break; case ("browseRec"): $tree = file_get_contents("textfiles/browseRec.txt"); print $tree; break; case ("browseAudio"): $tree = file_get_contents("textfiles/browseAudio.txt"); print $tree; break; case ("streamAudio"): $tree = file_get_contents("textfiles/streamAudio.txt"); print $tree; break; } ?>