home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet 1996 World Exposition
/
park.org.s3.amazonaws.com.7z
/
park.org.s3.amazonaws.com
/
cgi-bin
/
Japan
/
Theme
/
theme_read_comment.pl
< prev
next >
Wrap
Perl Script
|
2017-09-21
|
960b
|
53 lines
#!/usr/local/bin/perl
# theme_read_comment.pl
# Comments reader program in Japan theme pavilion
# kawauso@acs.dnp.co.jp
# 95/12/27
# THIS CODE USES THESE LIBRARIES
#
# jcode.pl Copyright (c) 1991,1992 Software Research Associates, Inc.
# Original by srekcah@sra.co.jp, Feb 1992
# Maintained by Kazumasa Utashiro <utashiro@sra.co.jp>
#
require 'jcode.pl';
#
# Ñ│ÑßÑ≤Ñ╚Ñ╒ÑíÑñÑδñ╬░╠├╓ñ≥╞└ñδ
#
########
#### www.mediagalxy.co.jpÑ╞Ñ╣Ñ╚═╤ ═╫╜±ñ¡╩╤ñ¿
########
$ac_comment_file = "/stage/htdocs/Japan/Theme/logs/theme_ac_comments.html";
#
# HTMLÑ╪Ñ├Ñ└╜╨╬╧
#
print "Content-type: text/html\n\n";
#
# Ñ│ÑßÑ≤Ñ╚Ñ╒ÑíÑñÑδñ≥╔╕╜α╜╨╬╧ñ╪╜╨╬╧
#
open (FILE, "<$ac_comment_file") || &err("Can not open comment file");
while (<FILE>) {
$code = &jcode'convert(*_, 'jis');
print $_;
}
close(FILE);
#
# Ñ¿ÑΘí╝ñ╬╛∞╣τ
#
sub err{
local($msg) = @_;
print "<p>$msg</p>\n";
close FILE;
print "</BODY></HTML>\n";
exit;
}