最新5
$subject
EOF
if($FORM{'nofirst'} ne "true" || $FORM{'st'} eq 1){
chop($LOG[0]);
($name,$mail,$time,$message,$subject) = split(/<>/,$LOG[0]);
#本文が空の場合
if ($message eq "") {
$name="";
$mail="";
$time="[ここ壊れてます]";
$message="[ここ壊れてます]";
}
# URLを変換(onpuch.jp以外のURLはリンクせず)
my $check = '(?:^|[\0-\200\240-\337])(?:[\201-\237\340-\374]{2})*';
$message =~ s/($check)(https?|ftp|gopher|telnet|whois|news)\:([\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)/$1$2\:$3<\/r>/igo;
$message =~ s/(http\:\/\/www\.onpuch\.jp[\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)<\/r>/$1<\/a>/igo;
$message =~ s/(https?|ftp|gopher|telnet|whois|news)\:([\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)<\/r>/(URL)/igo;
$message =~ s/($name";
}else{
$mailto = "$name";
}
print "[1:$mailto($time)]
$message
\n";
if($start eq 1){$start++;}
}
while($start != $end){
unless($LOG[$start-1]){last;}
chop($LOG[$start-1]);
($name,$mail,$time,$message,$subject) = split(/<>/,$LOG[$start-1]);
#本文が空の場合
if ($message eq "") {
$name="";
$mail="";
$time="[ここ壊れてます]";
$message="[ここ壊れてます]";
}
# URLを変換(onpuch.jp以外のURLはリンクせず)
my $check = '(?:^|[\0-\200\240-\337])(?:[\201-\237\340-\374]{2})*';
$message =~ s/($check)(https?|ftp|gopher|telnet|whois|news)\:([\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)/$1$2\:$3<\/r>/igo;
$message =~ s/(http\:\/\/www\.onpuch\.jp[\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)<\/r>/$1<\/a>/igo;
$message =~ s/(https?|ftp|gopher|telnet|whois|news)\:([\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)<\/r>/(URL)/igo;
$message =~ s/($name";
}else{
$mailto = "$name";
}
print "[$start:$mailto($time)]
$message
\n";
$start++;
}
#my $FL=1;
#if($FORM{'ls'} || $end > 1001 || $end > @LOG-1){$FL=0}
#if($FL){
print <掲示板に戻る
最初-
EOF
if ($st2 > 0) {
$hannyou = "./read.cgi/$FORM{'bbs'}/$FORM{'key'}/$st1-$st2" . "ni";
print <前$res1
EOF
}
if ($st3 - $LINENUM < 1) {
$hannyou = "./read.cgi/$FORM{'bbs'}/$FORM{'key'}/$st3-$st4" . "ni";
print <次$res2
EOF
} else {
$hannyou = "./read.cgi/$FORM{'bbs'}/$FORM{'key'}/$st5" . "-ni";
print <新着
EOF
}
print <最新5
EOF
#}
print "
\n";
print "$ver";
print "";
print "