X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=web%2Fportkart.pl;h=259376e39522f73a024449260de09e853620ff1e;hb=065361daac62b4cdb33cf19caa534e29ac1dfde0;hp=24a26ecb09ab1b0f30438f83873d6a8ebe7e8f14;hpb=d6cfbb682b3492d24b6623fbf1345c5b2b95f230;p=nms diff --git a/web/portkart.pl b/web/portkart.pl index 24a26ec..259376e 100755 --- a/web/portkart.pl +++ b/web/portkart.pl @@ -2,13 +2,14 @@ use CGI; use GD; use DBI; +use lib '../include'; +use nms; my $cgi = CGI->new; -my $dbh = DBI->connect("dbi:Pg:dbname=snmpfetch;host=violet.tg05.gathering.org", "snmpfetch", "removed") - or die "Couldn't connect to database"; +my $dbh = nms::db_connect(); GD::Image->trueColor(1); -$img = GD::Image->new('snmp-bg.png'); +$img = GD::Image->new('bg2.png'); my $blk = $img->colorResolve(0, 0, 0);