message; $status = $data->status; if ($prevmsg != $message) { print $tree; break; } else if ($status == "ready") { print $tree; break; } usleep(1000); } break; case ("getTimers"): $tree = file_get_contents("textfiles/getTimers.txt"); print $tree; break; case ("editTimer"): $id = $_REQUEST['id']; if (id) { $tree = file_get_contents("textfiles/editTimer.txt"); } else { $tree = file_get_contents("textfiles/addTimer.txt"); } print $tree; break; case ("deltimer"): $tree = file_get_contents("textfiles/delTimer.txt"); print $tree; break; case ("browseFolder"): $path = $_REQUEST['path']; if ( $path == "/video/" ) { $tree = file_get_contents("textfiles/browseFolder-rec.txt"); } else { $tree = file_get_contents("textfiles/browseFolder-vid.txt"); } 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; } ?>