#!/usr/bin/perl
use usabcgi;
print "Content-type:text/html\n\n";
print "
Greenstone Usability - Report Details\n";
$ENV{HTTP_USER_AGENT}=~/([^\/]*)\/([0-9]+\.[0-9]+)/;
if(($1 ne "Netscape")||($2 > 4.77)){
print "\n"
}
print "\n";
($imageloc) = usabcgi::get_config_info("httpimg");
if(!($imageloc =~ "http")) {$imageloc="http://".$ENV{HTTP_HOST}.$imageloc;}
print "\nGreenstone Usability - Report Details | \n";
print "";
if ($imageloc) { print ""; }
print " | \n
";
if((!($ENV{QUERY_STRING}=~/\d/)) || ($ENV{QUERY_STRING}=~/\D/) ) {
print "Each report sent has an ID number. This page needs one of those numbers to work.
";
die;
}
($etcfileloc) = usabcgi::get_config_info("gsdlhome");
if(!($etcfileloc =~/\/$/)) {$etcfileloc.="/";}
$etcfileloc .= "etc/usability.txt";
open (FILEIN, $etcfileloc) or die "could not open usability.txt\n";
while(){
$etcfile.=$_;
}
close(FILEIN);
if(!($etcfile=~ /$ENV{QUERY_STRING}/)) {
print "Each report sent has an ID number. This program needs one of those ID numbers to work, and the ID number provided wans't found