&My::Web::footer call is deprecated now, use just: exit;
[www.jankratochvil.net.git] / project / Nokia61 / Index.pm
1 # $Id$
2 # Main page of 'My::Project::Nokia61'
3 # Copyright (C) 2003-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::Nokia61::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
29
30 our @ListItem=(
31                 "name"=>"Rotation",
32                 "platform"=>"web",
33                 "priority"=>480,
34                 "icon"=>"Nokia61-icon.jpeg",
35                 "download"=>"Nokia61.c",
36                 "summary"=>"Nokia logical game &quot;Rotation&quot; solver",
37                 "license"=>"PD",
38                 "maintenance"=>"ready",
39                 "language"=>"C, PHP",
40                 "description"=><<"HERE",
41 <p>At least Nokia 3210 offers game <b>Rotation</b>, this little software will
42 tell you the optimal solution steps for the given game board situation.
43 The goal is to get board with
44 <b>1&nbsp;2&nbsp;3</b>, <b>4&nbsp;5&nbsp;6</b>, <b>7&nbsp;8&nbsp;9</b>,
45 in rows.</p>
46 HERE
47                 );
48
49 sub handler
50 {
51 project::Lib->init();
52
53
54 My::Web->make_file(path_abs_disk("Nokia61"));
55 # FIXME: <col width="0*" />
56 #        <col width="1*" />
57 # What was the reason? Currently it hides the whole <table/> in:
58 #       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050719 Galeon/1.3.21
59 print <<"HERE";
60 <table border="0" width="100%">
61         <tr>
62                 <td align="center">
63 <!--iframe src="Nokia61.php?base=.%2F" width="500" height="600"-->
64 <p>@{[ a_href 'Nokia61.php?base=.%2F','Program on-line.' ]}</p>
65 <!--/iframe-->
66                 </td>
67                 <td align="center">@{[ img 'Nokia61.jpeg','Illustration' ]}</td>
68         </tr>
69 </table>
70 HERE
71
72
73 exit;
74 }
75 1;