From: Egon W. <eg...@us...> - 2002-08-02 15:37:17
|
Update of /cvsroot/woc/woc/cgi-bin/ctview In directory usw-pr-cvs1:/tmp/cvs-serv10119/ctview Added Files: view.pl Log Message: Added HTPLP dir (and a bit more). --- NEW FILE: view.pl --- #!/usr/local/gnu/bin/perl -w use diagnostics; use strict; use CGI qw(:standard); print "Content-type: text/html;\n\n"; my $lang1 = param("FROM"); my $lang2 = param("TO"); if ($lang1 ne $lang2) { open(INDEXFILE, "<../../web-docs/gui/index/index.$lang1-$lang2.html") || (print "<b>Cannot open file!</b>\n" && exit(1)); while(<INDEXFILE>) { print; } } else { print "<b>Languages should not be the same!</b>\n"; } |