X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/d8818469c070065e44415ede75007d5f3b276ea3..a78d9bf85e4e91b05abc18852c06e3ba65aff0aa:/cgi-bin/addnotes.pl diff --git a/cgi-bin/addnotes.pl b/cgi-bin/addnotes.pl index acab114..3a760a2 100755 --- a/cgi-bin/addnotes.pl +++ b/cgi-bin/addnotes.pl @@ -1,5 +1,13 @@ #!/usr/bin/perl +=comment + +Copyright (c) 2003-2010, Andrew Dunstan + +See accompanying License file for license details + +=cut + use strict; use CGI; @@ -21,7 +29,8 @@ my $sysnotes = $query->param('sysnotes'); my $content = "animal=$animal\&sysnotes=$sysnotes"; -require "$ENV{BFConfDir}/BuildFarmWeb.pl"; +use FindBin qw($RealBin); +require "$RealBin/../BuildFarmWeb.pl"; die "no dbname" unless $dbname; die "no dbuser" unless $dbuser; @@ -111,6 +120,3 @@ $db->disconnect; print "Content-Type: text/plain\n\n"; print "request was on:\n$content\n"; - - -