From: drowe67 Date: Sat, 25 May 2013 05:21:53 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freetel/code@1273 01035d8c-6547-0410-b346-abe4f... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=ff2c9ff27975a0d50c7ab2b7558470fe0953c8f7;p=freetel-svn-tracking.git git-svn-id: https://svn.code.sf.net/p/freetel/code@1273 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/cgi-bin/addbearing.cgi b/cgi-bin/addbearing.cgi deleted file mode 100755 index 95f95c6d..00000000 --- a/cgi-bin/addbearing.cgi +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# addbearing.cgi -# David Rowe 25 May 2013 -# -# CGI to add a new bearing - -cat < - - - - - -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 "
" -echo "
" -echo $lat $lng $bearing - -cat < - -EOF diff --git a/cgi-bin/cleardb.cgi b/cgi-bin/cleardb.cgi deleted file mode 100755 index 1d39234c..00000000 --- a/cgi-bin/cleardb.cgi +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# cleardb.cgi -# David Rowe 25 May 2013 -# -# CGI to delete entire bearing database - -cat < - - - - - -EOF - -# path to node database text file - -P=/var/www/foxy -rm $P/bearings.txt - -cat < - -EOF diff --git a/cgi-bin/delbearing.cgi b/cgi-bin/delbearing.cgi deleted file mode 100755 index 19168dfe..00000000 --- a/cgi-bin/delbearing.cgi +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# delbearing.cgi -# David Rowe 25 May 2012 -# -# CGI to delete a bearing - -cat < - - - - - -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 "
" -#echo "
" -#echo $lat $lng - -cat < - -EOF diff --git a/cgi-bin/getbearings.cgi b/cgi-bin/getbearings.cgi deleted file mode 100755 index 05f7c47f..00000000 --- a/cgi-bin/getbearings.cgi +++ /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 - -BEARINGS=/var/www/foxy/bearings.txt - -if [ -f $BEARINGS ] ; then - cat $BEARINGS -fi - -cat < - -EOF