3 # the required file defines: $helm_dir, $helm_url_path, $getheader_url,
4 # $style_url, $webeq_url, $webeqp_url
5 require "/local/lib/helm/configuration.pl";
7 $baseuri0 = $dirname = $uri = $ENV{"REQUEST_URI"};
9 $dirname =~ s/$helm_url_path//;
10 $dirname = $helm_dir.$dirname;
12 $baseuri0 =~ s/$helm_url_path//;
14 opendir(DIR, $dirname);
15 @filenames = readdir(DIR);
19 foreach $i (@filenames) {
22 <img border="0" src="/icons/back.gif" alt="[BACK]"> <a href="$uri$i">Parent Directory</a>
24 } elsif ($i !~ /^\./) {
25 # hidden files excluded
26 (undef,undef,$mode) = stat("$dirname$i");
30 <img border="0" src="/icons/folder.gif" alt="[DIR]"> <a href="$uri$i">$i</a>
34 if ($i =~ /\.(con|var|ind)\.xml$/) {
35 my $i_without_xml = $i;
36 $i_without_xml =~ s/(.*)\.xml/$1/;
38 my $baseuri = "cic:".$baseuri0;
40 <img border="0" src="/icons/generic.red.gif" alt="[DIR]"> <a
41 href="$uri$i">$i</a> <a
42 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>
44 } elsif ($i =~ /\.(con|var|ind)\.ann\.xml$/) {
45 my $i_without_xml = $i;
46 my $i_without_ann_and_xml = $i;
47 $i_without_xml =~ s/(.*)\.xml/$1/;
48 $i_without_ann_and_xml =~ s/(.*)\.ann\.xml/$1/;
50 my $baseuri = "cic:".$baseuri0;
52 <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>
54 } elsif ($i =~ /\.theory\.xml$/) {
55 my $i_without_xml = $i;
56 $i_without_xml =~ s/(.*)\.xml/$1/;
58 my $baseuri = "theory:".$baseuri0;
60 <img border="0" src="/icons/layout.gif" alt="[DIR]"> <a
61 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>
66 <img border="0" src="/icons/unknown.gif" alt="[DIR]"> <a href="$uri$i">$i</a>
74 Content-type: text/html
76 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
77 "http://www.w3.org/TR/REC-html40/loose.dtd">
80 <title>Index of $uri</title>
82 <body bgcolor="#ffffff" text="#000000">
83 <table><tr><td bgcolor="#ffffff" class="title">
84 <font size="+3" face="Helvetica,Arial,sans-serif"><b>Index of $uri</b></font>
86 <hr noshade align="left" width="80%">
90 <hr noshade align="left" width="80%">