#!C:\Perl\bin\perl.exe

use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard); #Upload on lextutor seems to need this

###### NOTE ######
## THIS IS A GENERIC FOLDER-PERMISSIONS AVOIDER####



print "Content-type: text/html\n\n";
print "<html><head><title>FOLDER ACCESS (BNL)</title></head><body><font face=arial>";

print "<p><blockquote><h3>June 07 BNL family lists:</h3>";

# First elimination of need for refresh
$dir = "c:/inetpub/wwwroot/vp/bnl/display_lists" ;
opendir (DIR, "$dir/");
@FILES = grep(/.txt/,readdir(DIR));
foreach (@FILES) {
	print "<a href=$_>$_</a><br>";

	}
closedir (DIR);

print "<p>Use BACK button to return to this page; close this page to get back to VP-BNL";
#Got it! Thanks CGI City


print <<"EOF";

<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=852812;
var sc_invisible=1;
var sc_partition=6;
var sc_security="929dd6c8";
var sc_text=2;
</script>

<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c7.statcounter.com/counter.php?sc_project=852812&amp;java=0&amp;security=929dd6c8&amp;invisible=1" alt="stats count" border="0"></a> </noscript>

EOF

print "</body></html>";