--- chik/chik.cgi 2000/10/31 21:30:30 1.1 +++ chik/chik.cgi 2000/11/01 04:06:49 1.2 @@ -15,27 +15,17 @@ to the secretary "Team NN started at I, with +the questions, with the headers and +F<../../cfg/chik/f.cfg> with the footers. -It expects to find the file F<../mail/chik/robot.cfg>, which is a piece of -Perl code, defining the following variables: - -=over 4 - -=item C<$secretary> - -Email of the secretary - -=item C<$questions> - -Location of the file with the questions - -=back =head1 AUTHOR @@ -43,28 +33,55 @@ Boris Veytsman =head1 DATE -$Date: 2000/10/31 21:30:30 $ +$Date: 2000/11/01 04:06:49 $ =head1 VERSION -$Revision: 1.1 $ +$Revision: 1.2 $ =cut use strict; -use CGI; +use CGI qw/:standard/; +use DBI; + +my $secretary="elir\@immisrael.com"; +my $SENDMAIL = "/usr/sbin/sendmail"; +my $questions = "../../cfg/chik/q.txt"; +my $header = "../../cfg/chik/h.html"; +my $footer = "../../cfg/f.html"; my $query=new CGI; print $query->header; -print $query->start_html(-title=>'Вопросы ЧИК',-bgcolor=>'#fff0e0'); +print $query->start_html(-title=>'Robot turnira CHIK',-bgcolor=>'#fff0e0'); print Include_virtual("../dimrub/db/reklama.html"); -print $query->h1({'-align'=>'center'},'Вопросы ЧИК'); +print $query->h1({'-align'=>'center'},'Робот турнира ЧИК'); + +open(HEADER,$header); +print
; +close HEADER; + +print "

Сейчас на куличках ", `date`,"

\n"; + +if ($query->param('Look')) { + print_list($query); + $query->delete('Look'); +} elsif ($query->param('Start')) { + $query->delete('Start'); + print_questions($query); +} print_query($query); +open(FOOTER,$footer); +print