require "message"
def do_post_page(cgi)
mstore = get_message_store
user = get_session(cgi)['user']
num = cgi['id'][0]
message = mstore.get_message(num.to_i)
template = get_template
template.gsub!(/%%HEADER%%/, header(cgi))
template.gsub!(/%%USER%%/, user)
cgi.out{ template }
end
def get_template
"
%%HEADER%%
"
end