#! /usr/bin/perl # # $Id$ # Local package configuration for HTML/XHTML output generation # Copyright (C) 2003 Jan Kratochvil # # 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 # the Free Software Foundation; exactly version 2 of June 1991 is required # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package WebConfig; require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway use vars qw($VERSION $CVS_ID); $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; }; $CVS_ID=q$Id$; use strict; use warnings; require Exporter; use vars qw(@ISA @EXPORT); @ISA=qw(Exporter); @EXPORT=qw(%WebConfig); use My::Web; require CGI; my $resume_url="/resume/Resume-JanKratochvil.html.pl/Resume-JanKratochvil.html"; our %WebConfig=( "admin_mail"=>'web-www.jankratochvil.net@jankratochvil.net', "SendMsg_to"=>'web-www.jankratochvil.net@jankratochvil.net', "cvs_id_author"=>sub { my($name)=@_; return My::Web::a_href("http://www.jankratochvil.net/","Jan Kratochvil") if 0 || $name eq "short" || $name eq "lace"; return CGI::escapeHTML($name); }, "viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/www/www.jankratochvil.net/", "title_prefix"=>"Jan Kratochvil", "project_viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/", "pserver"=>':pserver:pserver:@cvs.jankratochvil.net', "pserver_path"=>"/cvs", "resume_url"=>$resume_url, "web_hostname_sub"=>sub () { return "www.jankratochvil.net"; }, # $My::Web::W->{"r"}->hostname() "mailman_url_sub" =>sub () { return "http://".&{$My::Web::W->{"web_hostname_sub"}}."/mailman/"; }, "pipermail_url_sub"=>sub () { return "http://".&{$My::Web::W->{"web_hostname_sub"}}."/pipermail/"; }, "heading"=>sub () { print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print '
'."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print '
'."\n"; print My::Web::a_href('http://www.jankratochvil.net/','Jan Kratochvil', "attr"=>'style="text-decoration: inherit; /* revoke underline */;"'); print '
'; print '
'."\n"; print ''."\n"; print ''."\n"; my @sections=( "/project/"=>"Projects", "http://cvs.jankratochvil.net/"=>"CVS", # "/News.html.pl"=>"News", $resume_url=>"Resume", "/Contact.html.pl"=>"Contact", ); while (@sections) { my $section_path=shift @sections; my $section_name=shift @sections; print '\n"; } print ''."\n"; print '
'; print(($My::Web::W->{"section"} || "") eq $section_name ? "$section_name" : My::Web::a_href($section_path,$section_name, "attr"=>'style="text-decoration: inherit; /* revoke underline */;"')); print "
'."\n"; print '
'."\n"; print My::Web::vskip("1ex") if !$My::Web::W->{"WebConfig::heading_novskip"}; }, "footing"=>sub () { # print "

footing

\n"; }, "footing_delimit"=>sub () { return if $My::Web::W->{"no_job"}; print <<"HERE";
A programmer for hire: I am looking for new challenges. If you find the software here useful, please @{[ My::Web::a_href($My::Web::W->{"resume_url"},'consider me') ]} for your next software project.
HERE }, ); 1;