#!/bin/sh SLEEPTIME=10 export SLEEPTIME CGI=/usr/www/users/tstrozyk/weeklyrentals.com/bin/cgiparse # $CGI -init $CGI -form > /tmp/es.$$ . /tmp/es.$$ rm /tmp/es.$$ echo "Set-Cookie:BROKER=$FORM_broker;domain=.$SERVER_NAME" echo "Set-Cookie:RPERIOD=$FORM_rperiod;domain=.$SERVER_NAME" echo "Set-Cookie:RPRICE=$FORM_rprice;domain=.$SERVER_NAME" echo "Set-Cookie:RWEEKS=$FORM_rweeks;domain=.$SERVER_NAME" echo "Set-Cookie:RBEDS=$FORM_rbeds;domain=.$SERVER_NAME" echo "Set-Cookie:RBATHS=$FORM_rbaths;domain=.$SERVER_NAME" echo "Set-Cookie:RDAY=$FORM_rday;domain=.$SERVER_NAME" if test "$FORM_reset" then echo "Set-Cookie:BROKER=;domain=.$SERVER_NAME" echo "Content-type: text/html Location: http://$SERVER_NAME/doform.cgi " exit fi umask 0 # exec > /tmp/rentlog 2>&1; set -x . /usr/www/users/tstrozyk/weeklyrentals.com/profile.real ATBACCOUNT="a6000034" export ATBACCOUNT if test "$FORM_sponsor" then rand=$FORM_sponsor else rand=`random 5` fi export REMOTE_ADDR REMOTE_HOST today=`date +%Y%m%d` #if test ! -d "logs/$today" #then mkdir "logs/$today" #fi #echo "$today|`date +%H:%M`|$REMOTE_ADDR|$REMOTE_HOST|$QUERY_STRING|$rand|$SERVER_NAME" >> logs/$today/s.txt echo "Content-type: text/html " if test "$FORM_sleeptime" then SLEEPTIME=$FORM_sleeptime fi export FORM_ryear export FORM_rbeds export FORM_rbaths export FORM_rperiod export FORM_rday export FORM_rprice export FORM_rsort export FORM_rweeks export FORM_uaddrno export FORM_id export FORM_ipid export FORM_output export FORM_unit export FORM_savefile export FORM_remloc export FORM_pid export FORM_ocacode export FORM_douni if test "$FORM_pid" then PID="$FORM_pid" export PID fi if test "$FORM_rperiod" = "pick" then FORM_rperiod="none" fi if test "$FORM_rprice" = "pick" then FORM_rprice="all" fi FORM_uaddrno="`echo $FORM_uaddrno | sed -e 's/ /+/g'`" RYEAR=$FORM_ryear ID=$FORM_id export RYEAR ID ATBACCOUNT="a6000247" ATBAREA="cmnj" export ATBACCOUNT ATBAREA # echo "($FORM_output)" if test "$FORM_output" -lt 5 then /usr/www/users/tstrozyk/weeklyrentals.com/bin/ginnmerge -t ./head fi # echo "(((($FORM_output)" if test "$FORM_savefile" then echo "Compiling all request...
" ./perl.all if test "$FORM_output" -lt 5 then /usr/www/users/tstrozyk/weeklyrentals.com/bin/ginnmerge -t ./foot fi exit fi echo "$FORM_broker" | perl.comma > /tmp/broker.$$ FORM_brokers=/tmp/broker.$$ export FORM_brokers RWEEKS="$FORM_rweeks" RPERIOD="$FORM_rperiod" export RWEEKS RPERIOD OCACODE="$FORM_ocacode" export OCACODE line=1 count=`cat /tmp/broker.$$ | wc -l` if test "$FORM_output" != "5" -a "$FORM_output" != "6" -a "$FORM_output" != "8" -a "$FORM_output" != "9" then echo "Making $count site requests ... " echo "Waiting $SLEEPTIME seconds for results ... " fi while test $line -le $count do broker=`sed -n -e ${line}p /tmp/broker.$$` export broker # echo "($broker) ..." # ./perl.get1 > tmp/$$.$line & 2> /dev/null # ./perl.get1 > tmp/$$.$line 2> /dev/null & # added for brokers who no telnet access ######################################## BEACH="$FORM_beach" if test -r "includes/beach/$broker" -a "$FORM_beach" = "yes" then BEACH="`cat includes/beach/$broker`" fi case $broker in rentals.GoldCoastSIR.com) curl "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=2190&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & #echo "http://bhhs.net/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=2190&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/gold # echo "http://bhhs.net/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1957&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" >> /tmp/marr.log ;; www.Monihan.com) curl "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=2238&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & echo "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=2238&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" >> /tmp/monihan.log ;; www.MarrAgency.com) curl "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1957&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & # echo "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1957&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" >> /tmp/marr.log # echo "http://bhhs.net/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1957&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" >> /tmp/marr.log ;; www.LFVacations.com|www.NJRealtyOC.com) curl "https://inne.com/trent.lnf.php?ryear=$FORM_ryear&beach=$BEACH&userid=&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & # echo "http://bhhs.net/trent.lnf.php?ryear=$FORM_ryear&beach=$BEACH&userid=1296&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/lf ;; oc.BHHS.net) curl "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1926&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & # echo "http://bhhs.net/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1296&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/bhhs # echo "http://bhhs.net/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1926&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/bhhs.save ;; si.BHHS.net) curl "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1055&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; br.BHHS.net) curl "https://inne.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1469&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & # echo "http://bhhs.net/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=1469&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/jim 2> /dev/null ;; www.nj-shore.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=7492&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & #echo "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=7492&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > /tmp/njshore2 # cp tmp/$$.$line /tmp/njshore2 ;; www.joelambjr.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=10590&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.outerbanksblue.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=10854&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.hatterasrealty.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=14029&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.islandrealty.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=12005&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.sunsetbeachnc.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=15868&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; dts.jess.com) curl "http://jess.com/cgi-bin/RENTSEARCH?ryear=$FORM_ryear&beach=$BEACH&userid=16103&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes&dts=yes" > tmp/$$.$line 2> /dev/null & ;; www.booerealty.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=16103&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.PruZack.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=4617&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.HughMerkle.com) curl "http://oceancityrealestate.com/trent.php?ryear=$FORM_ryear&beach=$BEACH&userid=27844&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.GoldCoastSIR.com) curl "http://ginn.goldcoastsir.com/cgi-bin/RENTSEARCH?ryear=$FORM_ryear&beach=$BEACH&broker=$broker&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; www.BergerRealty.com) curl "https://$broker/cgi-bin/RENTSEARCH?ryear=$FORM_ryear&beach=$BEACH&broker=$broker&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & ;; *) curl "http://$broker/cgi-bin/RENTSEARCH?ryear=$FORM_ryear&beach=$BEACH&broker=$broker&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/$$.$line 2> /dev/null & # echo "http://$broker/cgi-bin/RENTSEARCH?ryear=$FORM_ryear&beach=$BEACH&broker=$broker&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&city=$FORM_city&oacode=$FORM_oacode&tab=yes" > tmp/jimginn ;; # echo "http://$broker/cgi-bin/RENTSEARCH?ryear=$FORM_ryear&rprice=$FORM_rprice&rbeds=$FORM_rbeds&rbaths=$FORM_rbaths&rperiod=$FORM_rperiod&rweeks=$FORM_rweeks&rday=$FORM_rday&which=week&uaddrno=$FORM_uaddrno&tab=yes" "> tmp/$$.$line 2> /dev/null &" esac echo "$!" >> tmp/$$.all line=`expr $line + 1` done sleep $SLEEPTIME PID="$$" export PID # if test "$FORM_output" -lt 5 if test "$FORM_output" != "5" -a "$FORM_output" != "6" -a "$FORM_output" != "8" -a "$FORM_output" != "9" then echo "Compiling all request ... ($$) " NOW="`date +%m/%d/%Y@%H:%M`" echo "Report Run: $NOW
" #echo "

ID=$$

" else if test "$FORM_output" != "8" -a "$FORM_output" != "9" then echo " `cat ganal` " fi fi ./perl.all if test "$FORM_output" != "5" -a "$FORM_output" != "6" -a "$FORM_output" != "7" -a "$FORM_output" != "8" -a "$FORM_output" != "9" then CONTACTINFO="./includes/contact_info.php" export CONTACTINFO INCLUDEFLOAT="./includes/float.inc" # INCLUDEFLOAT2="./includes/float.22" export INCLUDEFLOAT INCLUDEFLOAT2 SPONSOR="./sponsors/$rand.inc" SPONSOR2="./sponsors/o$rand.inc" export SPONSOR SPONSOR2 /usr/www/users/tstrozyk/weeklyrentals.com/bin/ginnmerge -t ./foot else if test "$FORM_output" != "8" -a "$FORM_output" != "9" then echo " " fi fi # # kill all processes that still might be running ... ###################################################### line=1 while test $line -le $count do perlprocess=`sed -n -e ${line}p tmp/$$.all` kill -9 $perlprocess 2> /dev/null 1> /dev/null > /dev/null line=`expr $line + 1` done # echo "Compiling all request ...
" # ./perl.all # ginnmerge -t ./foot rm tmp/$$.* /tmp/broker.$$ 2> /dev/null