[ Avaa Bypassed ]




Upload:

Command:

www-data@3.137.180.196: ~ $
#!/usr/bin/perl
# Add or update a server or group from the webmin servers module

require './ipfw-lib.pl';
&ReadParse();
&foreign_require("servers", "servers-lib.pl");
@allservers = grep { $_->{'user'} } &servers::list_servers();

if ($in{'add'}) {
	# Add a single host
	@add = grep { $_->{'id'} eq $in{'server'} } @allservers;
	&error_setup($text{'add_err'});
	$msg = &text('add_msg', &server_name($add[0]));
	}
else {
	# Add all from a group
	($group) = grep { $_->{'name'} eq $in{'group'} }
			&servers::list_all_groups(\@allservers);
	foreach $m (@{$group->{'members'}}) {
		push(@add, grep { $_->{'host'} eq $m } @allservers);
		}
	&error_setup($text{'add_gerr'});
	$msg = &text('add_gmsg', $in{'group'});
	}

&ui_print_header(undef, $text{'add_title'}, "");
print "<b>$msg</b><p>\n";

# Setup error handler for down hosts
sub add_error
{
$add_error_msg = join("", @_);
}
&remote_error_setup(\&add_error);

# Make sure each host is set up for firewalling
foreach $s (@add) {
	$add_error_msg = undef;
	local $firewall = &remote_foreign_check($s, "ipfw");
	if ($add_error_msg) {
		print "$add_error_msg<p>\n";
		next;
		}
	if (!$firewall) {
		print &text('add_echeck', $s),"<p>\n";
		next;
		}
	&remote_foreign_require($s, "ipfw", "ipfw-lib.pl");

	local $ok = &remote_foreign_call($s, "ipfw",
					 "foreign_installed", "ipfw");
	if (!$ok) {
		print &text('add_eok'),"<p>\n";
		next;
		}

	$iconfig = &remote_foreign_config($s, "ipfw");
	$live = &remote_foreign_call($s, "ipfw",
				   "get_config", "$iconfig->{'ipfw'} show |");
	print &text('add_ok', $s->{'host'}, scalar(@$live)),"<p>\n";
	&add_cluster_server($s);
	}
&remote_finished();
if ($in{'add'}) {
	&webmin_log("add", "host", $add[0]->{'host'});
	}
else {
	&webmin_log("add", "group", $in{'group'});
	}

&ui_print_footer("cluster.cgi", $text{'cluster_return'});


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 1.04 KB 0644
apply.cgi File 293 B 0755
bootup.cgi File 240 B 0755
cluster.cgi File 1.98 KB 0755
cluster_add.cgi File 1.79 KB 0755
cluster_delete.cgi File 470 B 0755
config File 89 B 0644
config.info File 472 B 0644
config.info.ca File 433 B 0644
config.info.de File 539 B 0644
config.info.nl File 426 B 0644
convert.cgi File 274 B 0755
edit_rule.cgi File 10.16 KB 0755
index.cgi File 6.36 KB 0755
install_check.pl File 484 B 0755
ipfw-lib.pl File 17.42 KB 0755
log_parser.pl File 569 B 0755
module.info File 170 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 114 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 169 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 192 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 208 B 0644
module.info.ca File 106 B 0644
module.info.cs File 0 B 0644
module.info.cs.auto File 108 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 105 B 0644
module.info.de File 117 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 222 B 0644
module.info.es File 0 B 0644
module.info.es.auto File 99 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 105 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 171 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 113 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 117 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 157 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 112 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 139 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 112 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 158 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 125 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 120 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 121 B 0644
module.info.ms File 0 B 0644
module.info.ms.auto File 114 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 110 B 0644
module.info.nl File 21 B 0644
module.info.nl.auto File 98 B 0644
module.info.no File 0 B 0644
module.info.no.auto File 115 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 102 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 114 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 171 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 106 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 120 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 177 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 140 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 194 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 235 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 139 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 95 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 101 B 0644
move.cgi File 561 B 0755
save_rule.cgi File 8.19 KB 0755
setup.cgi File 4.14 KB 0755
start.pl File 271 B 0755
stop.pl File 254 B 0755
unapply.cgi File 257 B 0755