Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / ResRAM / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 91%
rename from project/ResRAM/ListItem.pm
rename to project/ResRAM/Index.pm
index 6fc4ef0..b206cb0
@@ -1,7 +1,5 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::ResRAM' for list.cgi.pl
+# Main page of 'My::Project::ResRAM'
 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
@@ -18,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-package project::ResRAM::ListItem;
+package project::ResRAM::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,6 +24,7 @@ use strict;
 use warnings;
 
 use My::Web;
+Wuse 'project::Lib';
 
 
 our @ListItem=(
@@ -47,4 +46,11 @@ memory and a reset-surviving resident module is installed.</p>
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+My::Web->footer();
+}
 1;