aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@frank.tg14.gathering.org>2014-04-15 18:11:13 +0200
committerroot <root@frank.tg14.gathering.org>2014-04-15 18:11:13 +0200
commit1a680a536fa79cdb0b69644da6b068c1f72b9df4 (patch)
treea6d6a0fc5dfef31db8e5cb8fd91ff364723503e4
parent5ab53b8b11a3a904c204e722c758735db4e1555d (diff)
mod_perlify maps for APs, ports, power and uplinks
-rwxr-xr-xweb/nms.gathering.org/apkart.pl4
-rwxr-xr-xweb/nms.gathering.org/portkart.pl4
-rwxr-xr-xweb/nms.gathering.org/stromkart.pl4
-rwxr-xr-xweb/nms.gathering.org/uplinkkart.pl4
4 files changed, 12 insertions, 4 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);
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);
diff --git a/web/nms.gathering.org/stromkart.pl b/web/nms.gathering.org/stromkart.pl
index cfceb21..9660dec 100755
--- a/web/nms.gathering.org/stromkart.pl
+++ b/web/nms.gathering.org/stromkart.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;
@@ -15,7 +17,7 @@ my $maxtimeout = $greentimeout*9;
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);
diff --git a/web/nms.gathering.org/uplinkkart.pl b/web/nms.gathering.org/uplinkkart.pl
index 96ceb54..135cd61 100755
--- a/web/nms.gathering.org/uplinkkart.pl
+++ b/web/nms.gathering.org/uplinkkart.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;
@@ -15,7 +17,7 @@ my $maxtimeout = $greentimeout*9;
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);