#! /bin/sh
# dpcmd

echo "Content-type: text/html"
echo
echo "<HTML><HEAD>"
echo "<TITLE>DPBOX HTTP Interface: $QUERY_STRING</TITLE>"
echo "</HEAD><BODY>"
echo '<BODY BGCOLOR="#ffffff">'

cat dptop.html

echo "<PRE>"

/tmp/pkgbuild/ham/dpbox/work.riscv64/.destdir/usr/pkg/bin/dphttp "$QUERY_STRING" | \
  /tmp/pkgbuild/ham/dpbox/work.riscv64/.destdir/usr/pkg/bin/dpcodeconv

echo "</PRE>"

cat dpbottom.html

echo "</BODY></HTML>"
