mirror of
https://github.com/webmin/webmin.git
synced 2026-01-16 15:06:07 +00:00
19 lines
318 B
Perl
Executable File
19 lines
318 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# stop.cgi
|
|
# Shut down the firewall
|
|
|
|
require './shorewall-lib.pl';
|
|
if ($access{'nochange'}) {
|
|
&redirect("/");
|
|
exit 0;
|
|
}
|
|
|
|
&error_setup($text{'stop_err'});
|
|
$out = &backquote_logged("$config{'shorewall'} stop 2>&1");
|
|
if ($?) {
|
|
&error("<pre>$out</pre>");
|
|
}
|
|
&webmin_log("stop");
|
|
&redirect("");
|
|
|