Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / captive / Resources.pm
similarity index 90%
rename from project/captive/Resources.html.pl
rename to project/captive/Resources.pm
index eb6aacb..1af3c8d 100755 (executable)
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
 # Captive project Resources page Perl template.
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# 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
@@ -25,18 +23,18 @@ our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
-BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
-Wrequire 'My::Project';
+Wrequire 'project::Lib';
 
 
+sub handler
+{
 My::Web->init(
-               "__PACKAGE__"=>__PACKAGE__,
                "title"=>'Captive NTFS Internet Resources',
-               "WebConfig::heading_novskip"=>1,
+               "heading_novskip"=>1,
                );
 My::Web->heading();
-print My::Project->section("captive");
+print(project::Lib->section("captive"));
 
 
 print "<h1>Captive NTFS Internet Resources</h1>\n";
@@ -76,3 +74,5 @@ print "</ul>\n";
 
 
 My::Web->footer();
+}
+1;