+++ /dev/null
-#!/bin/sh
-# addbearing.cgi
-# David Rowe 25 May 2013
-#
-# CGI to add a new bearing
-
-cat <<EOF
-Content-type: text/html
-
-<html>
-<head>
-<meta http-equiv="cache-control" content="no-cache">
-<meta http-equiv="pragma" content="no-cache">
-<meta http-equiv="expires" content="-1"></head></head>
-<body>
-EOF
-
-lat=`echo "$QUERY_STRING" | sed -n "s/.*lat=\(.*\)&lng.*/\1/p"`
-lng=`echo "$QUERY_STRING" | sed -n "s/.*lng=\(.*\)&bearing.*/\1/p"`
-bearing=`echo "$QUERY_STRING" | sed -n "s/.*bearing=\(.*\)/\1/p"`
-
-echo $lat,$lng,$bearing >> /var/www/foxy/bearings.txt
-
-echo $QUERY_STRING "<br>"
-echo "<br>"
-echo $lat $lng $bearing
-
-cat <<EOF
-</body>
-</html>
-EOF
+++ /dev/null
-#!/bin/sh
-# cleardb.cgi
-# David Rowe 25 May 2013
-#
-# CGI to delete entire bearing database
-
-cat <<EOF
-Content-type: text/html
-
-<html>
-<head>
-<meta http-equiv="cache-control" content="no-cache">
-<meta http-equiv="pragma" content="no-cache">
-<meta http-equiv="expires" content="-1"></head></head>
-<body>
-EOF
-
-# path to node database text file
-
-P=/var/www/foxy
-rm $P/bearings.txt
-
-cat <<EOF
-</body>
-</html>
-EOF
+++ /dev/null
-#!/bin/sh
-# delbearing.cgi
-# David Rowe 25 May 2012
-#
-# CGI to delete a bearing
-
-cat <<EOF
-Content-type: text/html
-
-<html>
-<head>
-<meta http-equiv="cache-control" content="no-cache">
-<meta http-equiv="pragma" content="no-cache">
-<meta http-equiv="expires" content="-1"></head></head>
-<body>
-EOF
-
-lat=`echo "$QUERY_STRING" | sed -n "s/lat=\(.*\)&.*/\1/pg"`
-lng=`echo "$QUERY_STRING" | sed -n "s/.*lng=\(.*\)/\1/pg"`
-
-# path to node database text file
-
-P=/var/www/foxy
-
-cat $P/bearings.txt | sed "/$lat,$lng.*/ d" > $P/bearings.tmp
-cp $P/bearings.tmp $P/bearings.txt
-rm $P/bearings.tmp
-
-#echo $QUERY_STRING "<br>"
-#echo "<br>"
-#echo $lat $lng
-
-cat <<EOF
-</body>
-</html>
-EOF
+++ /dev/null
-#!/bin/sh
-# getbearings.cgi
-# David Rowe 25 May 2013
-#
-# CGI to return list of bearings from the bearings.txt database text file
-# We use a CGI rather than fetching the text file directly
-# so we can stop Firefox from caching
-
-cat <<EOF
-Content-type: text/html
-
-<html>
-<head>
-<meta http-equiv="cache-control" content="no-cache">
-<meta http-equiv="pragma" content="no-cache">
-<meta http-equiv="expires" content="-1">
-</head>
-<body>
-EOF
-
-BEARINGS=/var/www/foxy/bearings.txt
-
-if [ -f $BEARINGS ] ; then
- cat $BEARINGS
-fi
-
-cat <<EOF
-</body>
-</html>
-EOF