]> git.sesse.net Git - nms/blobdiff - web/dhcpkart.pl
Change the background image to TG07.
[nms] / web / dhcpkart.pl
index 2558fb99542fd118b98509758eb2904cdd43143e..0cc0e6772398b7ab1c8cc868cde97fe392ecbf22 100755 (executable)
@@ -2,16 +2,17 @@
 use CGI;
 use GD;
 use DBI;
+use lib '../include';
+use nms;
 my $cgi = CGI->new;
 
 my $greentimeout = 900;
 my $maxtimeout = $greentimeout*9;
 
-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);