Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / pgsqlsubstr / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 76%
rename from project/pgsqlsubstr/ListItem.pm
rename to project/pgsqlsubstr/Index.pm
index dff23d9..cce5aa6
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::pgsqlsubstr' for list.cgi.pl
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Main page of 'My::Project::pgsqlsubstr'
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # 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
@@ -18,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-package project::pgsqlsubstr::ListItem;
+package project::pgsqlsubstr::Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 our $CVS_ID=q$Id$;
@@ -26,10 +24,11 @@ use strict;
 use warnings;
 
 use My::Web;
+Wuse 'project::Lib';
 
 
 our @ListItem=(
-               "name"=>a_href('http://www.postgresql.org/','PostgreSQL').'-6.3 fix',
+               "name"=>sub { a_href('http://www.postgresql.org/','PostgreSQL').'-6.3 fix'; },
                "platform"=>"patch",
                "priority"=>290,
                "icon"=>"postgresql",
@@ -45,4 +44,17 @@ PostgreSQL engine.</p>
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+print <<"HERE";
+<p>Although the patch is noted by Thomas G. Lockhart he is referring in me in
+that text, believe me. :-)</p>
+HERE
+
+
+My::Web->footer();
+}
 1;