#!/usr/bin/perl
use lib '../include';
use nms;
-#
-#
-
-my $username = '';
-my $password = 'removed';
-
-# Seconds to wait for connection
-my $timeout = 15;
use warnings;
use strict;
use Switch;
use CGI;
-use Net::Telnet;
use DBI;
# Grab from .htaccess-authentication
my $cgi = new CGI;
-print $cgi->header(-type=>'text/html');
+print $cgi->header(-type=>'text/html; charset=utf-8');
print << "EOF";
<html>
my $gid = $cgi->param('gid');
if (!defined($gid)) {
print "<font color=\"red\">Du har ikke valgt en gid å slette.</font>\n";
- }
- if ($cgi->param('agid') eq 'Disable') {
- $sdisablegid->execute($gid);
print "<p>gid: ".$cgi->param('gid')." har blitt disablet.\n";
}
else {