X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fcgi%2Fmkindextheory.pl;h=424f688ff0bd747ddbbaac458310fb4c6d869809;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=b92f363611f6437db70f20e4eeb12ad84fe6e3cd;hpb=7998b94e5f83fb3c9009762a875a0136bc4052ec;p=helm.git diff --git a/helm/cgi/mkindextheory.pl b/helm/cgi/mkindextheory.pl index b92f36361..424f688ff 100755 --- a/helm/cgi/mkindextheory.pl +++ b/helm/cgi/mkindextheory.pl @@ -20,13 +20,14 @@ use CGI; my $cgi = new CGI($ENV{"REQUEST_URL"}); $uri = $cgi->param('theoryuri'); +$getterURL = $cgi->param('getterURL'); $uri =~ s/(.*)\/$/$1/; # Remove a final slash if present $uri .= "/"; # Put a final slash $myurl = $cgi->url(); $cont = ""; # modified by side-effect by &callback my $ua = LWP::UserAgent->new; -my $request = HTTP::Request->new(GET => $getter_url."ls?format=txt&baseuri=".$uri); +my $request = HTTP::Request->new(GET => $getterURL."ls?format=txt&baseuri=".$uri); my $response = $ua->request($request, \&callback); @filenames = split(/\n/, $cont); @@ -38,7 +39,7 @@ if ($uri ne "theory:/") { $output = < [BACK] -Parent Directory +Parent Directory EOT } @@ -52,7 +53,7 @@ foreach $i (@filenames) { $output .= < [DIR] -$name +$name EOT } elsif ($type eq "object") { @@ -61,7 +62,7 @@ EOT $output .= < [DIR] -$name +$name EOT } else {