-#! /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
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";
My::Web->footer();
+}
+1;