summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2003-03-02 19:44:50 +0000
committerPeter Palfrader <peter@palfrader.org>2003-03-02 19:44:50 +0000
commitbd41d830d9bf16bffd27c0d809cde8dc065d4dcc (patch)
tree2be7ad2f5dd609a3b7f9c46dbcaaee83625fbd61
parent5f8f7c06c3cb058f4bb0ba08ed530a5de949f5ec (diff)
Show date of laste update
-rw-r--r--Echolot/Fromlines.pm8
-rw-r--r--templates/fromlinesindex.html6
2 files changed, 9 insertions, 5 deletions
diff --git a/Echolot/Fromlines.pm b/Echolot/Fromlines.pm
index e43389e..a0c7bbf 100644
--- a/Echolot/Fromlines.pm
+++ b/Echolot/Fromlines.pm
@@ -1,7 +1,7 @@
package Echolot::Fromlines;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: Fromlines.pm,v 1.5 2003/02/25 19:59:01 weasel Exp $
+# $Id: Fromlines.pm,v 1.6 2003/03/02 19:44:50 weasel Exp $
#
=pod
@@ -50,8 +50,12 @@ sub build_fromlines() {
$from = 'Middleman Remailer' if $middleman;
my $disclaim_top = $from_info->{'disclaim_top'} && ! $middleman ? 1 : 0;
my $disclaim_bot = $from_info->{'disclaim_bot'} && ! $middleman ? 1 : 0;
+ my $last_update = $from_info->{'last_update'};
+ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = gmtime($last_update);
my $frominfo = $disclaim_top.':'.$disclaim_bot.':'.$from;
- push @{$from_types->{$frominfo}}, $type;
+ my $date = sprintf("%04d-%02d-%02d", $year+1900, $mon+1, $mday);
+ my $value = $type." ($date)";
+ push @{$from_types->{$frominfo}}, $value;
};
my $types_from;
for my $frominfo (sort keys %$from_types) {
diff --git a/templates/fromlinesindex.html b/templates/fromlinesindex.html
index 7e40bac..ef3374a 100644
--- a/templates/fromlinesindex.html
+++ b/templates/fromlinesindex.html
@@ -3,7 +3,7 @@
<title>From Headers [<TMPL_VAR NAME="SITE_NAME">]</title>
<META HTTP-EQUIV="Expires" CONTENT="<TMPL_VAR NAME="EXPIRES">">
<link href="echolot.css" rel="stylesheet" type="text/css">
- <!-- $Id: fromlinesindex.html,v 1.5 2003/02/26 11:46:05 weasel Exp $ -->
+ <!-- $Id: fromlinesindex.html,v 1.6 2003/03/02 19:44:50 weasel Exp $ -->
</head>
<body>
<h1>From Headers [<TMPL_VAR NAME="SITE_NAME">]</h1>
@@ -20,7 +20,7 @@ convenience.
<p>
<table border=1>
-<tr><tr><th>nick</th><th>Disclaimer</th><th>From Line</th><th>type</th></tr>
+<tr><tr><th>nick</th><th>Disclaimer</th><th>From Line</th><th>type/updated</th></tr>
<TMPL_LOOP NAME="default">
<TMPL_LOOP NAME="data">
@@ -46,7 +46,7 @@ etc.
<p>
<table border=1>
-<tr><tr><th>nick</th><th>Disclaimer</th><th>From Line</th><th>type</th></tr>
+<tr><tr><th>nick</th><th>Disclaimer</th><th>From Line</th><th>type/updated</th></tr>
<TMPL_LOOP NAME="usersupplied">
<TMPL_LOOP NAME="data">