# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
fifofile="${_DATA}/mplayer.fifo"
# along with Serve0 If not, see <http://www.gnu.org/licenses/>.
fifofile="${_DATA}/mplayer.fifo"
printf '%s\n' $(validate "${_POST[ctl]}" "pause|stop" pause) >"$fifofile"
elif [ -n "${_POST[seek]+x}" ]; then
printf 'seek %s\n' $(validate "${_POST[seek]}" "[+-]?[0-9]+" 0) >"$fifofile"
printf '%s\n' $(validate "${_POST[ctl]}" "pause|stop" pause) >"$fifofile"
elif [ -n "${_POST[seek]+x}" ]; then
printf 'seek %s\n' $(validate "${_POST[seek]}" "[+-]?[0-9]+" 0) >"$fifofile"