MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/libexec/webmin/shorewall/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/webmin/shorewall/check.cgi
#!/usr/bin/perl
# check.cgi
# Check if the firewall is valid

require './shorewall-lib.pl';
&ui_print_header(undef, $text{'check_title'}, "");
print "<b>$text{'check_cmd'}</b><br>\n";
print "<font size=-1><pre>";
open(STATUS, "$config{'shorewall'} check 2>&1 |");
while(<STATUS>) {
	print &html_escape($_);
	}
close(STATUS);
print "</pre></font>\n";
if ($?) {
	print "<b>$text{'check_failed'}</b><p>\n";
	}
else {
	print "<b>$text{'check_ok'}</b><p>\n";
	}
&ui_print_footer("", $text{'index_return'});


Anon7 - 2021