diff options
Diffstat (limited to 'web/nms.gathering.org/apkart.pl')
-rwxr-xr-x | web/nms.gathering.org/apkart.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/nms.gathering.org/apkart.pl b/web/nms.gathering.org/apkart.pl index 3eef59b..1d905ba 100755 --- a/web/nms.gathering.org/apkart.pl +++ b/web/nms.gathering.org/apkart.pl @@ -6,7 +6,9 @@ use lib '../../include'; use nms; use strict; use warnings; +use File::Basename; my $cgi = CGI->new; +my $cwd = dirname($0); #my $greentimeout = 7200; my $greentimeout = 15*60; @@ -16,7 +18,7 @@ my $dbh = nms::db_connect(); GD::Image->trueColor(1); -my $img = GD::Image->new('tg14-salkart.png'); +my $img = GD::Image->new($cwd.'/tg14-salkart.png'); my $blk = $img->colorResolve(0, 0, 0); my $red = $img->colorResolve(255, 0, 0); |