diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-15 18:11:13 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-15 18:11:13 +0200 |
commit | 1a680a536fa79cdb0b69644da6b068c1f72b9df4 (patch) | |
tree | a6d6a0fc5dfef31db8e5cb8fd91ff364723503e4 /web/nms.gathering.org/portkart.pl | |
parent | 5ab53b8b11a3a904c204e722c758735db4e1555d (diff) |
mod_perlify maps for APs, ports, power and uplinks
Diffstat (limited to 'web/nms.gathering.org/portkart.pl')
-rwxr-xr-x | web/nms.gathering.org/portkart.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/nms.gathering.org/portkart.pl b/web/nms.gathering.org/portkart.pl index a7cafef..455278e 100755 --- a/web/nms.gathering.org/portkart.pl +++ b/web/nms.gathering.org/portkart.pl @@ -4,12 +4,14 @@ use GD; use DBI; use lib '../../include'; use nms; +use File::Basename; my $cgi = CGI->new; +my $cwd = dirname($0); my $dbh = nms::db_connect(); GD::Image->trueColor(1); -$img = GD::Image->new('tg14-salkart.png'); +$img = GD::Image->new($cwd.'/tg14-salkart.png'); my $blk = $img->colorResolve(0, 0, 0); |