-elif [ -n "$_POST[dotmark.x]" -a -n "$_POST[dotmark.y]" ]; then
- sed -rn 's;^(session[0-9]+)_open:checked$;\1;p' "$tempfile" \
- | sort -n \
- | tail -n1 \
- | read sid
-
- x="$_POST[dotmark.x]"
- y="$_POST[dotmark.y]"
-
- convert "${tpyfile%.tpy}_${sid}.png" -draw "fill $_POST[color] circle $x,$y $(($x+5)),$y" "${tpyfile%.tpy}_${sid}.png"
-