-#! /usr/bin/perl
-#
# $Id$
-# Definition of 'My::Project::mdsms' for list.cgi.pl
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Main page of 'My::Project::mdsms'
+# 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
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-package project::mdsms::ListItem;
+package project::mdsms::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$;
use warnings;
use My::Web;
+Wuse 'project::Lib';
our @ListItem=(
"download-sources .tar.Z"=>"dist/mdsms-1.5.3.tar.Z",
"download-logos from KESSLER Wireless Design"=>"http://www.kessler-design.com/wireless/samples.php3",
"cvs"=>"mdsms",
- "link-".a_href('http://freshmeat.net/','Freshmeat')=>
- a_href('http://freshmeat.net/projects/mdsms/','Mobile Device SMS tool'),
+ "link-Freshmeat"=>sub {
+ return a_href('http://freshmeat.net/projects/mdsms/','Mobile Device SMS tool');
+ },
"summary"=>"Mobile Device SMS Tool",
"license"=>"GPL",
"maintenance"=>"ready",
- "sponsorship"=>join(", ",
+ "sponsorship"=>sub { return join(", ",
a_href('http://www.tencom.cz/','TENcom Trade')
- .'/'.a_href('http://www.sme.cz/default.asp?lng=en&ver=html','SME'),
+ .'/'.a_href_cc({""=>'http://www.sme.cz/default.asp?lng=en&ver=html',
+ "CZ"=>'http://www.sme.cz/'},'SME'),
a_href('http://www.readynote.com/','ReadyNote'),
- a_href('http://www.atspraha.cz/','Advanced Telecom Services')),
+ a_href('http://www.atspraha.cz/','Advanced Telecom Services'));
+ },
"language"=>"C",
- "description"=><<"HERE",
+ "description"=>sub { return <<"HERE"; },
<p>Program sends NOL or NGG files as Nokia operator logo or group graphics through
@{[ a_href 'http://www.nokia.com/','Nokia' ]} @{[ a_href 'http://www.communicator.org/','Communicator' ]}
9110 (@{[ a_href 'http://www.nokia.com/phones/9000i','9000/9000i' ]}
HERE
);
+sub handler
+{
+project::Lib->init();
+
+
+print <<"HERE";
+<p>This software should be general-UNIX compatible. Please wait a minute when
+you run it, under various UNIXes it may take some time to finish.</p>
+<p><b>GSM network codes: </b>GSM network code needs to be given as parameter during
+sending of operator logo. Nice list of the codes you will find
+@{[ a_href 'http://kbs.cs.tu-berlin.de/~jutta/gsm/gsm-list.html','here' ]}.</p>
+HERE
+
+
+exit;
+}
1;