message != $prevmsg) || ($statusdec->status == "ready"))
{
print $status;
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 if ( $path == "/mnt/media/Videos/" ) {
$tree = file_get_contents("textfiles/browseFolder-vid.txt");
}
else if ( $path == "/mnt/media/Music/" ) {
$tree = file_get_contents("textfiles/browseFolder-aud.txt");
}
else
{
$tree = file_get_contents("textfiles/browseFolder-rec.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;
}
?>