No,$text_title_number : $readline[2]
$Htm_in_head
END
&newwindow;
print "
$NaturalAlignS
$config[209]
";
if($readline[24] && (($config[98] != 3) || $FORM{'r_search'} || $FORM{'ryal'})){
$blankcolor="$readline[16]";
print "
<$fontface>> $readline[24]$TanignSpace($readline[25]) \n";
if($config[98] == 1){$T_dir_x2 = $readline[39] ? $readline[39] : $textdir ;
open(TEXT, "$thispath/$T_dir_x2/$readline[26].$filename_exp");@readtext=;close(TEXT);chop(@readtext);shift(@readtext);
foreach $text_print(@readtext){&text_print_fd('','1');
print "> $text_print $TanignSpace ";}}
print "$NewLinertn |
";}
print "
\n
";
print "$config[215] No, $text_title_number " if($config[214] != 2);
if(($readline[3] || $readline[6]) && ($config[207] != 2)){
print "$config[215] $CellTitleH[2]:$readline[3]";
if($readline[6]){print " ($printulineS$readline[6]$printulineE)\n";}
print " ($readline[5] $man_or_wom $readline[8])" if($readline[5] || $man_or_wom || $readline[8]);print " \n";}
if($readline[18]){print "$config[215] $W_Home:$printulineS$readline[18]$printulineE \n";}
for(49..52,189,190){if($config[$_] =~ s/\-(center|right|left)//i){$tbalign{$_} = "$1";}$config[$_] =~ s/=.*//;}
&Plusnum_txt(19,'','',49,'A');&Plusnum_txt(20,'','',50,'B');&Plusnum_txt(21,'','',51,'C');&Plusnum_txt(22,'','',52,'D');&Plusnum_txt(37,'','',189,'E');&Plusnum_txt(38,'','',190,'F');
if($config[10]==1){print "$config[215] $readline[14] \n";}
if($config[183] == 1){if($COUNT_hit =~ /$readline[1]=([0-9]*)/){$Mtxthit = $1;}$Mtxthit += 0;
print "$config[215] $CellTitleH[4]";
print "(Only)" if($config[29] != 2);
print ": $Mtxthit ȸ \n";}
if($config[13]==1){if($COUNT_point =~ /($readline[1])=(-?[0-9]*)/){$Mtxtpoint = $2;}
print "$config[215] $CellTitleH[5]:$Mtxtpoint \n";}
if($readline[17]){if(&music_type("$readline[17]")){$FileIMG = &Get_icon_type($readline[17]);&musicbox_print('17');$MfileUp = 1;}else{&Down_load_Link;}
print "$printulineS$readline[17]$printulineE (";
print &UnitFsize("$readline[29]");
if($MfileUp){if($COUNT_down =~ /$readline[1]=([0-9]*)/){$Dnfileread = $1;}
$Dnfileread += 0;print ", LOAD:$Dnfileread";}else{if($COUNT_down =~ /$readline[17]=([0-9]*)/){$Dnfileread = $1;}$Dnfileread += 0;
print ", DN:$Dnfileread";}print ") \n";}
if($readline[28]){if(&music_type("$readline[28]")){$FileIMG = &Get_icon_type($readline[28]);&musicbox_print('28');}
else{$linkload = $readline[28];$linkload =~ s/\&/VvQx/g;$linkload =~ s/=/QqxV/g;
print "";
$FileIMG = &Img_Dn_Open('28');}$readline[28] =~ s/\/$//;$readline[28] =~ s/\S+\///;$readline[28] =~ s/\?(.*)$//;
print "$printulineS$readline[28]$printulineE(";
print &UnitFsize("$readline[29]")." " if(!$readline[17] && $readline[29]);if($COUNT_down =~ /$readline[1]=([0-9]*)/){$Dnfileread2 = $1;}
$Dnfileread2 += 0;print "LOAD:$Dnfileread2" . ") \n";}
print " | \n<$fontface class='blinespace'>";
if(!$readline[36]){&PUT_img;}
print "$Donotpoint";
&open_main_text;
print "$config[204] $readline[2] $TanignSpace" if($readline[2] && $config[296]==1);
if($readline[34]){&Voteinput;}
else{print "
\n" if($readline[2] && $config[296]==1);}
if($readline[36] == 1 || $readline[36] == 2 || $readline[36] == 4){&PUT_img;}
$blankcolor = $color_line[$config[162]];chop(@readtext);shift(@readtext);
$SpaceNo = ($readline[31] == 2) ? '1' : '' ;
foreach $text_print(@readtext){&text_print_fd("$SpaceNo");if($FORM{'r_search'} && !$ck_wd && !$SHULine){foreach $key(@word_sh){$text_print =~ s/$key/$key<\/font>/ig;}}
print "$text_print$TalignSpacebody$Newline\n";
undef $ck_wd;}undef($Spaceinvert);if($readline[36] == 5){&PUT_img;}
print "$TxtEbr |
|
\n<$fontface>
$config[295]";if($nnew == 2){$TableManY = $config[217] - 1;if(!$config[186]){if($config[101] != 7){&title_icon_set;}}
else{$Myicon = &TableimgS_E("$config[186]");}print "
";if($config[217] > 1){&indextable ;}print "
";
$PREVBUTNLG = $PREVBUTN + $TableManY;$NEXTBUTNLG = $NEXTBUTN - $TableManY;$PREVBUTNLG = $indexsize - 1 if($PREVBUTNLG > $indexsize - 1);
$NEXTBUTNLG = '0' if($NEXTBUTNLG < 0);&INDEXBT_print if($config[181]==1);print "
";}
print "$config[287]$NaturalAlignE
";
# ¾Æ·¡ ³»¿ëÀº »ç¿ëÀÚ°¡ ÀÓÀǼöÁ¤, »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. »ó¿ë¹öÀü¿¡¼¸¸ Çã¿ëÇÕ´Ï´Ù.
print "Copyright(c) 2000 technote inc";
exit;}
sub SexRead{local($WMn) = @_;return if(!$WMn);if($WMn == 2){return $Sex_Wn;}else{return $Sex_Mn;}}
sub Img_Dn_Open{local($num,$num2)=@_;if($num == 17 && $num2 ne 'n'){if($readline[$num] =~ /\.(gif|jpg|htm|txt|bmp)/i){print " $NewWin";}}
return &Get_icon_type("$readline[$num]",$num);}
sub DnUp_Btn{print " ";
if($PREVBUTN < $indexsize){print "";}
if($NEXTBUTN >= 0){print " ";}
print " ";}
sub form_head{local($in1,$in2)=@_;print "";}
sub PUT_img{if($readline[36] == 2){$imgalign = 'align=left';}elsif($readline[36] == 4){$imgalign = 'align=right';}
elsif($readline[36] == 5){$nlin_e = "
";}else{$nline = "
\n";}
if($readline[9]){print "$nlin_e$nline";}
elsif($readline[10]){if($cgi_dir_appoint == 1){print "$nlin_e$nline";}
else{print "$nlin_e$nline";}}
elsif($readline[11]){print "$nlin_e$nline";}else{"";}}
sub Voteinput{$VT_rdline = $readtext[0];chop($VT_rdline);@TXR_line = split(/\|/,$VT_rdline);print '';
if(!$fail_v && &Checkcookie('Vo19C')){$Vs_v_ok = 1;}@vote_target = split(/\//,$TXR_line[34]);@vote_point = split(/\//,$TXR_line[35]);
$manytarget=@vote_target;foreach $key (@vote_point){$Total_Point += $key;$bestpoint = $key if($bestpoint < $key);}
$Total_Point = 1 if(!$Total_Point);$bestpoint = 1 if($bestpoint < 1);$brige = $Graph_w/$bestpoint;print " |
<$fontface class='blinespace'>";}
sub readtext_1{$NUMBERCK = ($indexsize - 1);while($NUMBERCK >= 0){last if($indexline[$NUMBERCK] =~ /^0\|$FORM{'x_number'}\|/);$NUMBERCK -= 1 ;}
@readline=split(/\|/,$indexline[$NUMBERCK]);&plus_point_vote if($FORM{'VOTEPUT'});&point_in if($FORM{'command'} eq 'point_in');$NEXTBUTN = $NUMBERCK - 1;$PREVBUTN = $NUMBERCK + 1;}
sub plus_point_vote{if($config[173] == 2){if(&Checkcookie('Vo19C')){$Check_vt = &Checkdomain('Vo19C');}}else{$Check_vt = &Checkcookie('Vo19C');}if($Check_vt){&open_main_text;$readtext[0] =~ s/\r//g;$readtext[0] =~ s/\n//g;@text_zeroline = split(/\|/,$readtext[0]);
$Num_arr = $FORM{'VOTEPUT'} - 1;@VP_line = split(/\//,$text_zeroline[35]);$VP_line[$Num_arr] += 1;$text_zeroline[35] = join('/',@VP_line);
$readtext[0] = join('|',@text_zeroline);$readtext[0] .= "\n";$T_dir_x2 = $readline[39] ? $readline[39] : $textdir ;
open(TEXT, ">$thispath/$T_dir_x2/$readline[1].$filename_exp");print TEXT @readtext;close(TEXT);$COOKIE{'VqbCa54'} = "$CooKieJoin" . substr($COOKIE{'VqbCa54'},0,200);&TempCookie("VqbCa54",$COOKIE{'VqbCa54'},1);}$fail_v = 1;}
sub point_in{local($Mtxtpoint,$P_hight,$P_low,@TemPontPerm);@TemPontPerm = split(/\//,$config[83]);foreach $key (@TemPontPerm) {
$P_hight = $key if($key > $P_hight);$P_low = $key if($key < $P_low);}if(($FORM{'point'} > $P_hight) || ($FORM{'point'} < $P_low)){
$Donotpoint = "+-- Çã¿ëÆ÷ÀÎÆ®¸¦ ÃÊ°úÇÕ´Ï´Ù. --+ ";return;}if($config[173] == 2){if(&Checkcookie('Po17p')){$Check_pt = &Checkdomain('Po17p');}}else{$Check_pt = &Checkcookie('Po17p');}
if($Check_pt){if($COUNT_point =~ /($readline[1])=(-?[0-9]*)/){$Mtxtpoint = $2 + $FORM{'point'};$COUNT_point =~ s/($readline[1])=(-?[0-9]*)/\1=$Mtxtpoint/;}
else{$COUNT_point .= "|$readline[1]=$FORM{'point'}\n";}&write_pointdata if($config[13] == 1);$COOKIE{'VqbCa54'} = "$CooKieJoin" . substr($COOKIE{'VqbCa54'},0,200);
&TempCookie("VqbCa54",$COOKIE{'VqbCa54'},1);}$fail_p = 1;}sub Checkcookie{local($receive) = @_;$CooKieJoin=$DIRtarget.$FORM{'x_number'}.$receive;
if($COOKIE{'VqbCa54'} =~ /$CooKieJoin/){$Donotpoint = "+--¿¬¼ÓÀûÀÎ ÅõÇ¥¹× Æò°¡´Â Çã¿ëµÇÁö ¾Ê½À´Ï´Ù !--+ ";return 0;}else{return 1;}}
sub Checkdomain{local($receive) = @_;$CooKieJoin=$DIRtarget.$FORM{'x_number'}.$receive;local($ip,$get_write_time,$get_write_point,$checkline);
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time+$NewLocaltime);$month=($mon+1);$ip = &Get_ip_id;$year += 1900;
$get_write_point = $ip.$FORM{'x_number'}.$receive;$get_write_time = $year.$month.$mday;open(CHECK,"$thispath/$pointck");$checkline = ;
close(CHECK);if($config[261] ne 'x'){if($checkline !~ /^$get_write_time/){if($config[261] > 1){$xtempday = $config[261] - 1;$xmday = $mday + 1;
for (1..$xtempday) {$x_get_write_time = $year.$month.$xmday;if($checkline =~ /^$x_get_write_time/){$BeAble = 1;last;}$xmday += 1;$xmday = 1 if($xmday > 31);}
$checkline = $get_write_time if(!$BeAble);}else{$checkline = $get_write_time;}}}if($checkline =~ /$get_write_point/){
$Donotpoint = "+--¿¬¼ÓÀûÀÎ ÅõÇ¥¹× Æò°¡´Â Çã¿ëµÇÁö ¾Ê½À´Ï´Ù !--+ ";
$COOKIE{'VqbCa54'} = "$CooKieJoin" . substr($COOKIE{'VqbCa54'},0,200);&TempCookie("VqbCa54",$COOKIE{'VqbCa54'},1);return 0;}
else{$checkline .= $get_write_point;open(CHECK,">$thispath/$pointck");print CHECK $checkline ;close(CHECK);&permission("$thispath/$pointck");return 1;}}
sub Get_ip_id{if($config[239]==3){$Get_turn = $visitor_line[0]?$visitor_line[0]:$cook_id;}else{$Get_turn = $ENV{'REMOTE_ADDR'}? $ENV{'REMOTE_ADDR'} : $ENV{'REMOTE_HOST'};}return $Get_turn;}
sub readtext_2{@readline=split(/\|/,$indexline[$FORM{'y_number'}]);$NEXTBUTN = $FORM{'y_number'} - 1;$PREVBUTN = $FORM{'y_number'} + 1;}
sub parse{$_ = $ENV{'REQUEST_METHOD'};if (/POST/) {read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});$ENV{'QUERY_STRING'} = $buffer;}
else { $buffer = $ENV{'QUERY_STRING'};}@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;}}
sub text_print_fd{local($SPcl,$ANtx) = @_;$text_print =~ s/\(/ \( /g;$text_print =~ s/\)/ \) /g;$text_print =~ s/\?/XqQoB/g;
if($text_print =~ /(\s|^)(http:\/\/\S+\.\S+)(\s|$)/goi){&auto_link($2);}if($text_print =~ /(\s|^)(ftp:\/\/\S+\.\S+)(\s|$)/goi){&auto_link($2);}
if($text_print =~ /(\s|^)(telnet:\/\/\S+\.\S+)(\s|$)/goi){&auto_link($2);}if($text_print =~ /(\s|^)(gopher:\/\/\S+\.\S+)(\s|$)/goi){&auto_link($2);}
if($text_print =~ /(\s|^)(news:\S+\.\S+)(\s|$)/goi){&auto_link($2);}if($text_print =~ /(\s|^)([0-9a-zA-Z]+\@\S+\.\S+)(\s|$)/goi){
my($mailadrd) = $2;$text_print =~ s/$mailadrd/$mailadrd<\/font><\/u><\/a>/;$ck_wd=1;}
$text_print =~ s/ \( /\(/g;$text_print =~ s/ \) /\)/g;$text_print =~ s/XqQoB/\?/g;if(($Spaceinvert) || ($config[172] == 1 && !$SPcl && !$ANtx)){
$text_print =~ s/\t/ /g;$text_print =~ s/\s\s/ /g;$Spaceinvert = 1;}if($ANtx){$text_print =~ s/<([^>]|\n)*>//g;}}
sub auto_link{local($Textarr) = @_;if(&linkfiletype($Textarr)){$T_Blank = 'target=_blank';}else{$T_Blank = '';}$text_print =~ s/$Textarr/$Textarr<\/font><\/u><\/a>/;$ck_wd=1;}
sub close_lock{$Nowtime = time+25;while (-e "$thispath/$lockfile" && (time < $Nowtime)) {sleep(1);}open(LOCK, ">$thispath/$lockfile");close(LOCK);}
sub open_lock{unlink("$thispath/$lockfile");}
sub open_config{open(FILE, "$board_dir_path/$loginfile");@configlog=;chop(@configlog);close(FILE);
$configlog[0] = &ch_pass("technote") if(!$configlog[0]);
@color_line=('','#000000','#6C6C6C','#B2B2B2','#DDDDDD','#eeeeee','#FFFFFF','#0000ff','#84C1FF','#E1F0FF','#ff0000','#FF6666','#FFC4C4','#FFF1F0','#008000','#00ff00','#ACFFAC','#E3FFE3','#800080','#FF00FF','#FFA8FF','#FFE8FF',
'#800000','#BA7676','#DFBFBF','#408080','#00FDFD','#D5FFFF','#808000','#ffff00','#FFFFaE','#FFFFee','#9D5F1A','#DD8A2F','#F1D0AB','#514B8D','#948EC4','#D0CEE6','#1B7058','#31CA9F','#FF0080','#FF860D','#000080','#996CF7',
'#88C42F','#45250C','#F5D021','#208FFF','#77B5C1','#E15E96','#A69FA4','#BE8149','#9F76C0','#C243F3','#0D9E05','#7B464D','#01C2B9','#474556','#285EB5','#43491F','#5D1F85',);
open(CONFIG, "$thispath/$configfile");@config=;chop(@config);close(CONFIG);
$Backgrimg_url = "$img_dir_url/background/$config[253]";$Buttonimg_url = "$img_dir_url/button/$config[255]";
$Buttonimg_url2 = "$img_dir_url/button3/$config[233]";$Subjectimg_url = "$img_dir_url/subjecticon/$config[254]";
$Formbtimg_url = "$img_dir_url/button2/$config[283]";}
sub open_index{open(INDEX,"$thispath/$indexfile") || &error_message("$DIRtarget BOARD ÀÇ $indexfile ÆÄÀÏÀ» ãÀ» ¼ö ¾ø½À´Ï´Ù.","config.cgi ÆÄÀÏÀ» ÅؽºÆ®ÆíÁý±â·Î ¿°í °æ·Î¼³Á¤À» ´Ù½Ã È®ÀÎ ÇϽʽÿÀ.","");
@indexline=;$indexsize=@indexline;chop(@indexline);close(INDEX);}
sub get_cookie {@cookies = split(/; /, $ENV{'HTTP_COOKIE'});foreach (@cookies) {($m_name, $m_value) = split(/=/, $_);$COOKIE{$m_name} = $m_value;}
if($COOKIE{"name$frankscrip"} && (&ch_pass($COOKIE{"name$frankscrip"}) eq "$configlog[0]")){&TempCookie("name$frankscrip",$COOKIE{"name$frankscrip"});$TEck_Name=1;}
if($config[112] == 2){$cookie_key=$scripimport.$DIRtarget;$cook_dirkey=$DIRtarget.$config[0];}else{$cookie_key=$scripimport.'nSXq';$cook_dirkey=$scripimport.'olkZq';}($cook_name,$cook_mail,$cook_home,$cook_visit,$cook_id)=split(/\|/,$COOKIE{$cookie_key});
if($COOKIE{($config[292]."home$frankscrip")}){@visitor_line=split(/\|/,$COOKIE{($config[292]."home$frankscrip")});
if(($config[112] == 2) && ($visitor_line[5] eq $config[0]) && ($DIRtarget eq $visitor_line[6])){$TEck_Home=1;}elsif(($config[112] == 1) && ($visitor_line[5] eq $configlog[0]) && ($cook_dirkey eq $visitor_line[6])){$TEck_Home=1;}else{"";}}
if($COOKIE{"mail$frankscrip"}){@manersplit = split(/\|/, $COOKIE{"mail$frankscrip"});$localmaster_pass = &ch_pass("$manersplit[0]");
if(($localmaster_pass eq $config[0]) || ($localmaster_pass eq $configlog[0])){$TEck_Mail = 1 if($manersplit[1] eq $DIRtarget);}}@back_index = split(/\|/,$2) if($COOKIE{'TabLeNumReM'} =~ /^($DIRtarget)-(.*)/);if($FORM{'nnew'} == 1){$nnew = 1;}elsif($FORM{'nnew'} == 2){$nnew = 2;}
elsif($COOKIE{'nnew'} =~ /^($DIRtarget)-(\d)/){$nnew = $2;}else{$nnew = 2;}&TempCookie("nnew","$DIRtarget-$nnew",'1');&TempCookie("koX8iT3Dda","$COOKIE{'koX8iT3Dda'}",1);}
sub ch_pass{local($inpass_x,)=@_;$inpass_x =~ s/\s//g;$inpass=$inpass_x;$inpass_x .= 'IlIl' if(2 > length($inpass_x));$chop1=chop($inpass);$chop2=chop($inpass);
$chop3=chop($inpass);$chop4=chop($inpass);$cryptword=$chop1.$chop2.$chop3.$chop4;$firstcrypt= crypt($cryptword,"$chop2$chop3");$chop1=chop($firstcrypt);
$chop2=chop($firstcrypt);return crypt($inpass_x,"$chop1$chop2");}
sub RE_join_index{&open_index;if(($FORM{'back'} && $config[177] != 1) || ($config[177] == 1 && !$FORM{'back'})){@indexline=reverse(@indexline);}
@exindexline = @indexline;$RE_NUMBER = ($indexsize - 1);while($RE_NUMBER >= 0){if($FORM{'x_number'}){last if($indexline[$RE_NUMBER] =~ /^[^\|]*\|$FORM{'x_number'}\|/);}
else{last if($RE_NUMBER == $FORM{'y_number'});}$RE_NUMBER -= 1;}
@readline = split(/\|/,$indexline[$RE_NUMBER]);$NEXTBUTN_x = ($RE_NUMBER - 1);$PREVBUTN_x = ($RE_NUMBER + 1);$FORM{'x_number'} = $readline[1];$neworderindex = 1;}
sub Getbgcolor{local($receive) = @_;if($receive eq 'clean' || $receive eq ''){return ;}
if($receive =~ /\^/){$receive =~ s/\^//g;return "background=$Userimg_url/$receive";}if($receive =~ /^[0-9]/){return "bgcolor=$color_line[$receive]";}
if($receive =~ /\//){return "background=$receive";}return "bgcolor=$receive";}
sub Content_type_print{print "Content-type: text/html\n\n";}
sub READ_right{if($config[131] == 2 && !$TEck_Mail){&MoveLocation('°ü¸®ÀÚ¸¸ÀÌ ±ÛÀбⰡ °¡´ÉÇÏ°Ô ¼³Á¤µÇ¾î ÀÖ½À´Ï´Ù.','priv_read_manager=1');}
elsif($config[131] == 3 && !$TEck_Home){&MoveLocation('ID Á¤½Äµî·Ï ȸ¿ø¿¡ ÇÑÇÏ¿© ±Û ÀбⰡ °¡´ÉÇÕ´Ï´Ù.','priv_read_id=1');}else{"";}}
sub ENTER_right{if($config[61] == 2 && !$TEck_Mail){&MoveLocation('°ü¸®ÀÚ¸¸ÀÌ BOARD ÀÔÀåÀÌ °¡´ÉÇÏ°Ô ¼³Á¤µÇ¾î ÀÖ½À´Ï´Ù.','priv_read_manager=1');}
elsif($config[61] == 3 && !$TEck_Home){&MoveLocation('ID Á¤½Äµî·Ï ȸ¿ø¿¡ ÇÑÇÏ¿© BOARD ÀÔÀåÀÌ °¡´ÉÇÕ´Ï´Ù.','priv_read_id=1');}else{"";}}
sub MoveLocation{
&Content_type_print;
local($local1,$local2,$local3,$local4)=@_;
print <$local1$Htm_in_head
|