]> git.sesse.net Git - nms/blobdiff - web/nettkart-web.pl
Added Chillout.
[nms] / web / nettkart-web.pl
index 3da5fe554ae92f9373889d5e28dd812ef6ae459a..040d4767865e5ee2a5566a60ff079caf0be4933f 100755 (executable)
@@ -1,11 +1,12 @@
 #! /usr/bin/perl
 use CGI;
 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";
-print $cgi->header(-type=>'text/html', -refresh=>'45; http://nms.tg05.gathering.org/nettkart-web.pl');
+my $dbh = nms::db_connect();
+print $cgi->header(-type=>'text/html', -refresh=>'45; http://nms.tg07.gathering.org/nettkart-web.pl');
 
 print <<"EOF";
 <html>