sync
[www.jankratochvil.net.git] / project / harpy / Index.pm
1 # $Id$
2 # Main page of 'My::Project::harpy'
3 # Copyright (C) 2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 package project::harpy::Index;
20 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
21 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
22 our $CVS_ID=q$Id$;
23 use strict;
24 use warnings;
25
26 use My::Web;
27 Wuse 'project::Lib';
28 Wrequire 'product::Lib';
29
30
31 our @ListItem=(
32                 "name"=>"harpy",
33                 "platform"=>"unixuser",
34                 "priority"=>486,
35                 "cvs"=>"harpy",
36                 "link-Source file"=>'http://git.jankratochvil.net/?p=harpy.git;a=blob_plain;hb=HEAD;f=harpy',
37                 "summary"=>"ARP spoofer of nonexisting ethernet addresses",
38                 "license"=>"GPL",
39                 "maintenance"=>"ready",
40                 "language"=>"Perl",
41                 "description"=>sub { return <<"HERE"; },
42 <p>Would you like to setup so-called <b>proxyarp</b> but you do not know the specific
43 address as you need to <b>proxyarp</b> any address anybody would ask for?
44 It may be useful for @{[ 'Plug&nbsp;&amp;&nbsp;Play' ]}-like zero-configuration networks.</p>
45 <p>This project is a GPLed part of my product:
46 @{[ a_href '/product/hotelgate/',product::Lib->title(product::Lib->name_to_hashref("hotelgate")) ]}</p>
47 HERE
48                 );
49
50 sub handler
51 {
52 project::Lib->init();
53
54
55 my $hotelgate_title=product::Lib->title(product::Lib->name_to_hashref("hotelgate"));
56 print <<"HERE";
57 <table border="0" class="margin-center td-center">
58         <tr><td>@{[
59                 img '/product/hotelgate/Admin-Login-icon.jpeg',$hotelgate_title,
60                                 "a_href"=>'/product/hotelgate/'
61                 ]}</td></tr>
62         <tr><td style="font-size: xx-large;">@{[ a_href '/product/hotelgate/',$hotelgate_title ]}</td></tr>
63 </table>
64 HERE
65
66
67 exit;
68 }
69 1;