#!/bin/sh

CAFEURL=http://www.kayhay.com/members/cafe
CAFEFILES=/var/lib/www/members/cafe
CAFECGIURL=http://www.kayhay.com/members/cgi-bin/cafe

if [ "$QUERY_refreshrate" = "" ]; then
  QUERY_refreshrate=15
fi
if [ "$QUERY_noflines" = "" ]; then
  QUERY_noflines=52
fi

echo Content-type: text/html
echo

cat << EOF
<html><title>Members Lounge</title>
<frameset rows="15%,70%,*">
<frame src="$CAFEURL/top.spider" scrolling="no" noresize>
<frame src="$CAFECGIURL/cafe02#end?refreshrate=$QUERY_refreshrate&noflines=$QUERY_noflines" >
<frame scrolling="no" src="$CAFECGIURL/cafe02_kruk">
</frameset>
</html>
EOF

echo \<B\>\<FONT COLOR=#00FF00 SIZE=-1\> >> $CAFEFILES/conversation.log
date +%H:%M  >> $CAFEFILES/conversation.log
echo u - $REMOTE_USER  >> $CAFEFILES/conversation.log
cat << EOF >> $CAFEFILES/conversation.log
 comes in. </B></FONT><BR>
EOF

echo $REMOTE_USER \<BR\> >> $CAFEFILES/people
