Apache-Navbar/ 0040775 0000764 0000764 00000000000 07657634705 011623 5 ustar joe joe Apache-Navbar/MANIFEST 0100644 0000764 0000764 00000000037 07657633702 012743 0 ustar joe joe MANIFEST Makefile.PL Navbar.pm Apache-Navbar/Navbar.pm 0100755 0000764 0000764 00000014377 07657634646 013410 0 ustar joe joe package Apache::Navbar; use strict vars; use Apache::Constants ':common'; use Apache::File; use Apache::URI; use IO::File; use vars qw($VERSION $mod_time $hours $link $header); my ($nav_handle, $header_handle, @header_links, $f, $url); my $conf_file; my %BARS = (); $VERSION = '0.01'; my $path = "/var/www/conf"; my $nav_file = $path . "/navigation.cnf"; my $header_file = $path . "/header.cnf"; my $footer_file = $path . "/footer.cnf"; my $tableatts = "border=0 width=100%"; $link = qq(
)); for $url ($parsed_header_file->urls) { my $cell; my $label = $parsed_header_file->label($url); $cell = qq($label); push(@nav_links, qq([$cell]\n)); } for $url ($parsed_nav_file->urls) { my $label = $parsed_nav_file->label($url); # if ($url =~ /lt/) { # push(@nav_links, qq([$label]\n)); # next; # } if ($url =~ /8080/) { push(@nav_links, qq([$label]\n)); next; } push(@nav_links, qq([$label]\n)); } push(@nav_links, qw( |