%# -*-perl-*- $Id: show.html,v 1.5 2000/10/29 21:32:49 xi Exp $
<%doc>
###############################################################################
# Usenet Indexer - A nice and fast usenet indexer
# Copyright (C) 2000 Christian Laursen
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
###############################################################################
%doc>
<% $r->hostname %>
%if ($id =~ /^\d+$/) {
<%perl>
my $prefix = sprintf("/home/xi/projects/deja.borderworlds.dk/data/article/%08x", $id);
open (FILE, "<$prefix.headers");
while () {
s/^Time: (\d+)$/'Date: '.localtime($1)/e;
$m->out(encode_entities($_));
}
close FILE;
%perl>
<%perl>
open (FILE, "<$prefix.body");
while () {
$m->out(encode_entities($_));
}
close FILE;
%perl>