¾È³çÇϼ¼¿ä? ¾ó¸¶Àü¿¡ ¼Ò½º¸¦ ã½À´Ï´Ù¿¡ ºÎŹÇÏ¿© ¾ÆÀ̵𸦠ÀÔ·Â ¹ÞÀ¸¸é ±× ¾ÆÀ̵𰡠Á¦ °èÁ¤¿¡ µð·ºÅ丮·Î ¸¸µé¾îÁö´Â °ÍÀ» ¸¸µç ÀûÀÌ ÀÖ½À´Ï´Ù. ±×·±µ¥ »ý°¢Çغ¸¾Ò´õ´Ï, ¸¸¾à¿¡ ´Ù¸¥ »ç¶÷ÀÌ good ¶ó´Â ¾ÆÀ̵𸦠ÀÔ·ÂÇÏ¿© good ¶ó´Â µð·ºÅ丮°¡ ÀÌ¹Ì »ý¼ºµÇ¾î Àִµ¥ ¶Ç ´Ù¸¥ »ç¶÷ÀÌ good¸¦ ÀÔ·ÂÇÒ °æ¿ì "ÀÌ¹Ì ÀÖ´Â ¾ÆÀ̵ðÀÔ´Ï´Ù."¶ó°í ³ª¿À°Ô ÇÏ°í ½Í°Åµç¿ä.. ±×·¡¼ ¼öÁ¤À» Çߴµ¥ Àß ¾ÈµÇ³×¿ä. ¾Æ·¡ ¼Ò½º Á» º¸½Ã°í ´äº¯ Á» ºÎŹµå¸³´Ï´Ù. #!/usr/bin/perl $Truthee = 0; $i = 0; read(STDIN, $buffer, $ENV{ CONTENT_LENGTH });
@pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($kname, $value) = split(/=/, $pair); $value =~ tr/ / /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $$kname=$value; } opendir(DIR,"./"); @dirdata=readdir(DIR); closedir(DIR); while( $i < $dirdata){ if($dirdata[$i] eq $dir){ $Truthee = 1; } $i = $i 1; } print "$Truthee"; if($Truthee == 0 ){ rmdir ("$dir","755"); print "content-type:text/html
"; print "$dir µð·ºÅ丮°¡ ¸¸µé¾îÁ³½À´Ï´Ù."; } else{ print "content-type:text/html
"; print "there is same id"; }
|