#!/usr/bin/perl
####################################################
if($ENV{
QUERY_STRING
}) {
@pairs = split(/&/,$ENV{
QUERY_STRING
});
}
else {
read(STDIN,$buffer,$ENV{
CONTENT_LENGTH
});
@pairs = split(/&/, $buffer);
}
foreach $pair (@pairs) {
($name, $value) = split(/=/,$pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
$FORM{$name} = $value;
}
inpass();
####Çì´õ
sub html_header {
print "Content-Type:text/htmlnn";
print "
Pass
n";
}
sub html_footer {
print "n";
exit;
}
####ÀÔ·Â
sub inpass {
html_header();
print "ÀÌ°÷¿¡ µé¾î°¡·Á¸é ¾ÏÈ£°¡ ÇÊ¿äÇÕ´Ï´Ù. ";
print "(need password if you come in here.) ";
print "";
print "";
print " |