#! /usr/bin/perl # As with normal MLJ scripts, we need to source in the parameters. The # path must be hard-coded as this is a CGI script require "./parms.cgi"; # Now, see where we get our arguments from. if (defined($ENV{"REQUEST_METHOD"})) { # HTML request if ($ENV{'REQUEST_METHOD'} eq "POST") { # Get the input read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); # Split the name-value pairs } elsif ($ENV{'REQUEST_METHOD'} eq "GET") { $buffer = $ENV{"QUERY_STRING"}; } else { $buffer = ""; } @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); # Un-Webify plus signs and %-encoding $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $FORM{$name} = $value; } } &mlj_scj_page_headers("MLJ/SCJ Autoresponder Request Form", "Autoresponder Request Form"); print qq!
\n!; print "

\n"; print "\n"; print qq!\n"; print "
Send requested information to:
\n!; print "Internet Address: Name\@Site.Domain
\n"; print <<"EOF;";

EOF; # the FAQ print <<"EOF;"; \n"; print "\n"; print "\n"; # Now, the reading lists print <<"EOF;"; \n"; print "\n"; # Other print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
[FAQ]
S.C.J Frequently Asked Questions
EOF; print qq! "; print "Index to the parts of the S.C.J FAQ.\n"; print qq!

"; print "Send all parts of the S.C.J FAQ.\n"; open(INDEXFILE, "<$SCJHOME/FAQ/00-index.txt"); faqindex: while () { next faqindex if /^\#/; next faqindex if /^\s+$/; chop; if (/^(\S+)\s+(\S.*)/) { $file = $1; $descr = $2; print qq!

"; print &to_html($descr),"\n"; } else { print &to_html($_),"\n"; } } close(INDEXFILE); print "

\n"; print qq![RL]
!; print "S.C.J Reading Lists\n"; print "
EOF; print qq! "; print "Index to the parts of the S.C.J Reading Lists.\n"; print qq!

\n"; print "Send all parts of the S.C.J Reading Lists.\n"; open(INDEXFILE, "<$SCJHOME/RLISTS/00-index.txt"); rlindex: while () { next rlindex if /^\#/; next rlindex if /^\s+$/; chop; if (/^(\S+)\s+(\S.*)/) { $file = $1; $descr = $2; print qq!

\n"; print &to_html($descr),"\n"; } else { print &to_html($_),"\n"; } } close(INDEXFILE); print "

\n"; print qq![SCJP]
!; print "soc.culture.jewish.parenting\n"; print "
\n"; print qq! \n"; print "Frequently Asked Questions for soc.culture.jewish.parenting.\n"; print qq!

\n"; print "Uuencode zip of the randomizer software used by s.c.j.p.\n"; print "

\n"; print qq![FAQ]
!; print "

Mail.Liberal-Judaism
\n"; print "
\n"; print qq! \n"; print "Subjects Discussed in Mail.Liberal-Judaism.\n"; print qq!

!; print "Retrieve MLJ backissues by Email\n"; print "

\n"; print qq!

\n!; print "

\n"; &mlj_scj_page_closing(); sub to_html { local($str) = @_; $str =~ s/\&/\&\#38;/g; $str =~ s/\"/\"/g; $str =~ s/\'/\&\#39;/g; $str =~ s/\/\&\#62;/g; $str =~ s/\\/\&\#92;/g; $str =~ s/\~/\&\#126;/g; return($str); }