X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=WebConfig.pm;h=001edc253c1a3ed2e097299a382b9943299a4c48;hb=b4d65bcbdd83f374d5b8ad10d72082c0089b99a4;hp=1e5db1777b38032e448853128ccb1611dc25cedb;hpb=023bd9615484000eec756de502600995e7b75fe8;p=www.jankratochvil.net.git diff --git a/WebConfig.pm b/WebConfig.pm index 1e5db17..001edc2 100644 --- a/WebConfig.pm +++ b/WebConfig.pm @@ -20,8 +20,9 @@ package WebConfig; require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway -use vars qw($VERSION); +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; @@ -30,10 +31,72 @@ use vars qw(@ISA @EXPORT); @ISA=qw(Exporter); @EXPORT=qw(%WebConfig); +use My::Web; +require CGI; + + our %WebConfig=( "admin_mail"=>'web-www.jankratochvil.net@jankratochvil.net', - "viewcvs"=>map({ (!$_ ? $_ : s#^/#http://cvs.jankratochvil.net/viewcvs/energie/#); } $ENV{"SCRIPT_NAME"}), + "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", + "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=( + My::Web::top_dir()."/project/"=>"Projects", + "http://cvs.jankratochvil.net/"=>"CVS", +# My::Web::top_dir()."/News.html.pl"=>"News", + My::Web::top_dir()."/resume/Resume-JanKratochvil.html.pl/Resume-JanKratochvil.html"=>"Resume", + My::Web::top_dir()."/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"; + }, ); 1;