search.dcgi - gopher-lawn - The gopher lawn gopher directory project.
HTML git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/
DIR Log
DIR Files
DIR Refs
DIR Tags
---
search.dcgi (612B)
---
1 #!/bin/sh
2 #
3 # Adapted from gopher://kalos.mine.nu/0/software/search_lawn.dcgi
4 #
5
6 IDX="index.gph"
7 STRIP="/lawn/"
8
9 search="$1"
10 arguments="$2"
11 host="$3"
12 port="$4"
13
14 printf "\n"
15 printf " ~~[[ T H E G O P H E R L A W N ]]~~\n"
16 printf "\n"
17 printf "_____[[ S_E_A_R_C_H ]]\n"
18
19 if [ -z "${search}" ];
20 then
21 printf "Please enter your search query.\n"
22 printf "[7|Gopher Lawn Search|/lawn/search.dcgi|server|port]\n"
23 else
24 printf "Search Results\n"
25 ./search.sh "${search}"
26 printf "\n"
27 printf "[7|Search Again|/lawn/search.dcgi|server|port]\n"
28 fi
29
30 printf "\n"
31 printf "[1|Back to the lawn.|/lawn|server|port]\n"
32