X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=web%2Fsshow.pl;h=5e0fbdce5e3fd901305a3c6350fc4eaf91ceb56a;hb=HEAD;hp=24ca128e0227b7234a762586b0cd8266cbd39b20;hpb=ce95bb11a855774a36fb21c0d16cfd0d6be3669d;p=nms diff --git a/web/sshow.pl b/web/sshow.pl index 24ca128..5e0fbdc 100755 --- a/web/sshow.pl +++ b/web/sshow.pl @@ -2,14 +2,10 @@ use lib '../include'; use nms; -# 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 @@ -78,7 +74,7 @@ WHERE gid = ?::text::int") my $cgi = new CGI; -print $cgi->header(-type=>'text/html'); +print $cgi->header(-type=>'text/html; charset=utf-8'); print << "EOF"; @@ -114,9 +110,6 @@ if (defined($cgi->param('agid'))) { my $gid = $cgi->param('gid'); if (!defined($gid)) { print "Du har ikke valgt en gid å slette.\n"; - } - if ($cgi->param('agid') eq 'Disable') { - $sdisablegid->execute($gid); print "

gid: ".$cgi->param('gid')." har blitt disablet.\n"; } else {