3 my $HELM_CONFIGURATION_PREFIX = $ENV{"HELM_CONFIGURATION_PREFIX"};
4 my $HELM_CONFIGURATION_PATH =
5 $HELM_CONFIGURATION_PREFIX."/local/lib/helm/configuration.pl";
6 # next require defines: $helm_dir, $html_link, $dtd_dir, $uris_dbm
7 require $HELM_CONFIGURATION_PATH;
9 $baseuri0 = $dirname = $uri = $ENV{"REQUEST_URI"};
11 $dirname =~ s/$helm_url_path//;
12 $dirname = $helm_dir.$dirname;
14 $baseuri0 =~ s/$helm_url_path//;
16 opendir(DIR, $dirname);
17 @filenames = readdir(DIR);
21 foreach $i (@filenames) {
24 <img border="0" src="/icons/back.gif" alt="[BACK]"> <a href="$uri$i">Parent Directory</a>
26 } elsif ($i !~ /^\./) {
27 # hidden files excluded
28 (undef,undef,$mode) = stat("$dirname$i");
32 <img border="0" src="/icons/folder.gif" alt="[DIR]"> <a href="$uri$i">$i</a>
36 if ($i =~ /\.(con|var|ind)\.xml$/) {
37 my $i_without_xml = $i;
38 $i_without_xml =~ s/(.*)\.xml/$1/;
40 my $baseuri = "cic:".$baseuri0;
42 <img border="0" src="/icons/generic.red.gif" alt="[DIR]"> <a
43 href="$uri$i">$i</a> <a
44 href="$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=annotatedpres.xsl&xmluri=$baseuri$i_without_xml">MathML</a> <a href="$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=content_to_html.xsl&xmluri=$baseuri$i_without_xml">HTML</a> <a href="$webeq_url?mmlurl=$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=annotatedpres.xsl&xmluri=$baseuri$i_without_xml">WEBEQ</a> <a href="$webeqp_url?mmlurl=$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=annotatedpres.xsl&xmluri=$baseuri$i_without_xml">WEBEQ PRESENTATION ONLY</a>
46 } elsif ($i =~ /\.(con|var|ind)\.ann\.xml$/) {
47 my $i_without_xml = $i;
48 my $i_without_ann_and_xml = $i;
49 $i_without_xml =~ s/(.*)\.xml/$1/;
50 $i_without_ann_and_xml =~ s/(.*)\.ann\.xml/$1/;
52 my $baseuri = "cic:".$baseuri0;
54 <img border="0" src="/icons/text.gif" alt="[DIR]"> <a href="$uri$i">$i</a> <a href="$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=annotatedpres.xsl&xmluri=$baseuri$i_without_ann_and_xml&annuri=$baseuri$i_without_xml">MathML</a> <a href="$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=content_to_html.xsl&xmluri=$baseuri$i_without_ann_and_xml&annuri=$baseuri$i_without_xml">HTML</a> <a href="$webeq_url?mmlurl=$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=annotatedpres.xsl&xmluri=$baseuri$i_without_ann_and_xml&annuri=$baseuri$i_without_xml">WEBEQ</a> <a href="$webeqp_url?mmlurl=$getheader_url?baseurl=$style_url&stylesheet1=rootcontent.xsl&stylesheet2=annotatedpres.xsl&xmluri=$baseuri$i_without_ann_and_xml&annuri=$baseuri$i_without_xml">WEBEQ PRESENTATION ONLY</a>
56 } elsif ($i =~ /\.theory\.xml$/) {
57 my $i_without_xml = $i;
58 $i_without_xml =~ s/(.*)\.xml/$1/;
60 my $baseuri = "theory:".$baseuri0;
62 <img border="0" src="/icons/layout.gif" alt="[DIR]"> <a
63 href="$uri$i">$i</a> <a href="$getheader_url?baseurl=$style_url&stylesheet1=theory_content.xsl&stylesheet2=theory_pres.xsl&xmluri=$baseuri$i_without_xml">MathML</a> <a href="$getheader_url?baseurl=$style_url&stylesheet1=roottheory.xsl&stylesheet2=content_to_html.xsl&xmluri=$baseuri$i_without_xml">HTML</a>
68 <img border="0" src="/icons/unknown.gif" alt="[DIR]"> <a href="$uri$i">$i</a>
76 Content-type: text/html
78 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
79 "http://www.w3.org/TR/REC-html40/loose.dtd">
82 <title>Index of $uri</title>
84 <body bgcolor="#ffffff" text="#000000">
85 <table><tr><td bgcolor="#ffffff" class="title">
86 <font size="+3" face="Helvetica,Arial,sans-serif"><b>Index of $uri</b></font>
88 <hr noshade align="left" width="80%">
92 <hr noshade align="left" width="80%">