#! /bin/sh
# 310597: Daniel Goetz, DL3NEU
# dpuser

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

cat dptop.html

echo "<PRE>"
call=$(echo ${QUERY_STRING} | sed -e s,'^call=',,)
/tmp/pkgbuild/ham/dpbox/work.riscv64/.destdir/usr/pkg/bin/dphttp "USER ${call}" | \
  /tmp/pkgbuild/ham/dpbox/work.riscv64/.destdir/usr/pkg/bin/dpcodeconv
echo "</PRE>"

cat dpbottom.html

echo "</BODY></HTML>"
