git-svn-id: https://svn.code.sf.net/p/freetel/code@1273 01035d8c-6547-0410-b346-abe4f...
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 25 May 2013 05:21:53 +0000 (05:21 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 25 May 2013 05:21:53 +0000 (05:21 +0000)
cgi-bin/addbearing.cgi [deleted file]
cgi-bin/cleardb.cgi [deleted file]
cgi-bin/delbearing.cgi [deleted file]
cgi-bin/getbearings.cgi [deleted file]

diff --git a/cgi-bin/addbearing.cgi b/cgi-bin/addbearing.cgi
deleted file mode 100755 (executable)
index 95f95c6..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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
diff --git a/cgi-bin/cleardb.cgi b/cgi-bin/cleardb.cgi
deleted file mode 100755 (executable)
index 1d39234..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/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
diff --git a/cgi-bin/delbearing.cgi b/cgi-bin/delbearing.cgi
deleted file mode 100755 (executable)
index 19168df..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/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
diff --git a/cgi-bin/getbearings.cgi b/cgi-bin/getbearings.cgi
deleted file mode 100755 (executable)
index 05f7c47..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/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