X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=spider-web%2Fspider.cgi;fp=spider-web%2Fspider.cgi;h=b9b3a2595a488b37997c3029b5e4a9608dbe822d;hb=f319bf06d72d135e7ec14ff8b27627187f5e2595;hp=0000000000000000000000000000000000000000;hpb=55f14d9038abb44d61ac63298f9f39b9e53a39d1;p=spider.git diff --git a/spider-web/spider.cgi b/spider-web/spider.cgi new file mode 100755 index 00000000..b9b3a259 --- /dev/null +++ b/spider-web/spider.cgi @@ -0,0 +1,79 @@ +#! /bin/sh +# +################################################### +# +# Edit the following lines +# +# +portnumber=$"1407" +tempdir=$"/usr/local/httpd/spider/client/" +clustercall=$"PA4AB-15" +# +# +# +# End of configurable part +# +#################################################### +hostname=$"localhost" + +echo "Content-type: text/html" +echo +echo "" +echo "Spider DX Cluster" +echo "" +echo '' +echo "
"
+
+pattern=$(echo ${QUERY_STRING} | sed -e s,'call=',, | sed -e s/"&passwd="/" "/)
+call=$(echo $pattern | cut -d' ' -f1)
+passwd=$(echo $pattern | cut -s -d' ' -f2)
+
+
+if [ ${call} = ""]  ; then
+  echo "
" + echo "
" + echo "Welcome to the Spider DX Cluster" + echo "" + echo ${clustercall} + echo "" + echo "

 

" + echo '
' + echo "Your Call Please: " + echo ' ' + echo '' + echo "
" + echo "
" + +else + echo "" > ${tempfile}${call}.html + echo "" >> ${tempfile}${call}.html + echo "" >> ${tempfile}${call}.html + echo "" >> ${tempfile}${call}.html + echo '' >> ${tempdir}${call}.html + echo '' >> ${tempdir}${call}.html + echo '' >> ${tempdir}${call}.html + echo "" >> ${tempdir}${call}.html + echo "" >> ${tempdir}${call}.html + echo "" >> ${tempdir}${call}.html + GOTO='' + echo ${GOTO} + +fi + echo "
" + echo "" + +# all *.html tempory files remove older than 10 min +# +cd ${tempdir} +files=$(find *.html -mmin +10) +rm ${files}