#!/usr/bin/env ruby # coding: euc-jp require "cgi" require "pstore" require 'kconv' # euc-jpへの変換のため(toeucメソッド) myname = "cc2.rb" c = CGI.new(:accept_charset => "EUC-JP") item = c["item"] cmt = c["comment"] time = Time.now # 時刻を保持するTimeクラス代入。nowは現時刻 edit_item = ARGV[0].to_s.toeuc # 修正モードの場合の修正項目名 oldcomment = "" # 修正モードの場合の既存コメント print 'Content-type: text/html; charset=EUC-JP