1 |
#!/usr/bin/perl |
#!/usr/bin/perl |
2 |
## This file is euc-jisx0213 encoding. |
## This file is euc-jisx0213 encoding. |
3 |
|
|
4 |
use Suika::CGI; |
#use Suika::CGI; |
5 |
$myvesion = '1.00 (2001-08-22)'; |
$myvesion = '1.00 (2001-08-22)'; |
6 |
|
|
7 |
$about_perl = <<"EOH"; |
$about_perl = <<"EOH"; |
40 |
|
|
41 |
#文字コード |
#文字コード |
42 |
$mojicode = "euc"; |
$mojicode = "euc"; |
43 |
|
require 'jcode.pl'; |
44 |
|
|
45 |
#NN2 で charset=EUC-JP を送ると化けるらしい。 |
#NN2 で charset=EUC-JP を送ると化けるらしい。 |
46 |
if( $ENV{'HTTP_USER_AGENT'} =~ /compatible/ ){ |
if( $ENV{'HTTP_USER_AGENT'} =~ /compatible/ ){ |
229 |
local($s) = &html_header('記事一覧'); |
local($s) = &html_header('記事一覧'); |
230 |
|
|
231 |
#ログ読み出し |
#ログ読み出し |
232 |
open(LOG, $logfile) or &Suika::CGI::Error::die('open', file => $logfile); |
open(LOG, $logfile) or die qq(open: $logfile: $!); #&Suika::CGI::Error::die('open', file => $logfile); |
233 |
print $s; |
print $s; |
234 |
my($count, $last_nj); |
my($count, $last_nj); |
235 |
$count = <LOG>;chop($count); |
$count = <LOG>;chop($count); |
848 |
# [ フォームからデータ取得 ] |
# [ フォームからデータ取得 ] |
849 |
|
|
850 |
sub read_form { |
sub read_form { |
851 |
%OPT = %Suika::CGI::param; |
# %OPT = %Suika::CGI::param; |
852 |
return; |
# return; |
853 |
my($pair,$buffer); |
my($pair,$buffer); |
854 |
if ($ENV{'REQUEST_METHOD'} eq "POST") { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); |
if ($ENV{'REQUEST_METHOD'} eq "POST") { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); |
855 |
} else { $buffer = $ENV{'QUERY_STRING'}; } |
} else { $buffer = $ENV{'QUERY_STRING'}; } |