[ Avaa Bypassed ]




Upload:

Command:

www-data@3.17.145.236: ~ $
#!/usr/bin/perl
# edit.cgi
# Display a form for editing or creating a table entry

require './shorewall-lib.pl';
&ReadParse();
&get_clean_table_name(\%in);
&can_access($in{'table'}) || &error($text{'list_ecannot'});
if ($in{'new'}) {
	&ui_print_header(undef, $text{$in{'tableclean'}."_create"}, "");
	if ($in{'before'} ne '') {
		$msg = &text('edit_before', $in{'before'}+1);
		}
	elsif ($in{'after'} ne '') {
		$msg = &text('edit_after', $in{'after'}+1);
		}
	print "<center><font size=+1>$msg</font></center>\n" if ($msg);
	}
else {
	&ui_print_header(undef, $text{$in{'tableclean'}."_edit"}, "");
	$pfunc = &get_parser_func(\%in);
	@table = &read_table_file($in{'table'}, $pfunc);
	$row = $table[$in{'idx'}];
	}

print "<form action=save.cgi>\n";
print "<input type=hidden name=table value='$in{'table'}'>\n";
print "<input type=hidden name=idx value='$in{'idx'}'>\n";
print "<input type=hidden name=new value='$in{'new'}'>\n";
print "<input type=hidden name=before value='$in{'before'}'>\n";
print "<input type=hidden name=after value='$in{'after'}'>\n";

print "<table border width=100%>\n";
print "<tr $tb> <td><b>",$text{$in{'tableclean'}."_header"},"</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";

$ffunc = $in{'tableclean'}."_form";
&$ffunc(@$row);

print "</table></td></tr></table>\n";
print "<table width=100%>\n";
if ($in{'new'}) {
	print "<td><input type=submit value='$text{'create'}'></td>\n";
	}
else {
	print "<td><input type=submit value='$text{'save'}'></td>\n";
	print "<td align=right><input type=submit name=delete ",
	      "value='$text{'delete'}'></td>\n";
	}
print "</table>\n";

print "</form>\n";

&ui_print_footer("list.cgi?table=$in{'table'}", $text{$in{'tableclean'}."_return"});


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 2.47 KB 0644
acl_security.pl File 1 KB 0755
backup_config.pl File 874 B 0755
check.cgi File 503 B 0755
clear.cgi File 313 B 0755
config File 166 B 0644
config.info File 509 B 0644
config.info.ca File 573 B 0644
config.info.de File 558 B 0644
config.info.es File 297 B 0644
config.info.fr File 466 B 0644
config.info.ms File 404 B 0644
config.info.nl File 394 B 0644
config.info.no File 402 B 0644
defaultacl File 19 B 0644
delete.cgi File 530 B 0755
down.cgi File 403 B 0755
dump.cgi File 337 B 0755
edit.cgi File 1.69 KB 0755
editcmt.cgi File 1014 B 0755
index.cgi File 2.52 KB 0755
install_check.pl File 380 B 0755
list.cgi File 3.39 KB 0755
log_parser.pl File 461 B 0755
manual_form.cgi File 710 B 0755
manual_save.cgi File 555 B 0755
module.info File 169 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 111 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 154 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 171 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 204 B 0644
module.info.ca File 100 B 0644
module.info.cs File 27 B 0644
module.info.cs.auto File 85 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 104 B 0644
module.info.de File 112 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 175 B 0644
module.info.es File 30 B 0644
module.info.es.auto File 76 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 114 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 154 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 102 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 114 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 166 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 108 B 0644
module.info.hu File 26 B 0644
module.info.hu.auto File 74 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 106 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 136 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 115 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 114 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 105 B 0644
module.info.ms File 113 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 98 B 0644
module.info.nl File 27 B 0644
module.info.nl.auto File 84 B 0644
module.info.no File 27 B 0644
module.info.no.auto File 76 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 105 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 99 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 105 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 109 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 180 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 113 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 104 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 111 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 192 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 129 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 162 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 158 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 136 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 82 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 88 B 0644
refresh.cgi File 427 B 0755
restart.cgi File 423 B 0755
save.cgi File 1.08 KB 0755
savecmt.cgi File 867 B 0755
shorewall-lib.pl File 57.91 KB 0755
start.cgi File 413 B 0755
status.cgi File 343 B 0755
stop.cgi File 312 B 0755
up.cgi File 397 B 0755