#!/usr/sbin/perl # Notes: # # - going to have a problem with casing # - handle metachars # ---------------------------------------------------- # VARIABLES $docroot = "\/performer"; $absdocroot = "\/var\/www\/htdocs\/performer"; $dbsdir = "\/var\/www\/htdocs\/performer\/dbs"; $mandir = "/var/www/htdocs/performer/html_mans"; $cgiroot = "\/cgi-bin"; $fullcgiroot = "/var/www/cgi-bin"; # ---------------------------------------------------- # Main # LOOK for *.html in html_mans and in html_mans/B opendir(MANDIR,"$mandir"); @manlist = readdir MANDIR; closedir(MANDIR); foreach $MAN_PAGE (@manlist) { if ($MAN_PAGE =~ /.*\.html$/ ) { push(@man,"$MAN_PAGE/G"); } } opendir(MANDIRB,"$mandir/B"); @manlistb = readdir MANDIRB; closedir(MANDIRB); foreach $MAN_PAGEB (@manlistb) { if ($MAN_PAGEB =~ /.*\.html$/ ) { push(@man,"$MAN_PAGEB/B"); } } print "Content-type: text/html\n\n"; # Required for HTTP/1.0 compat. print "
\n"; print "\n\n