[ Avaa Bypassed ]




Upload:

Command:

www-data@3.144.235.50: ~ $
#!/usr/bin/perl
# exec.cgi
# Run the cron job on all configured servers

require './cluster-copy-lib.pl';
&ReadParse();
&ui_print_unbuffered_header(undef, $text{'exec_title'}, "");

# Run on all servers and show output
$copy = &get_copy($in{'id'});
@files = split(/\t+/, $copy->{'files'});
$under = $copy->{'dest'} eq "/" ? "" :
		&text('exec_under', "<tt>$copy->{'dest'}</tt>");
if (@files > 3) {
	print &text('exec_files1', scalar(@files), $under),"<p>\n";
	}
else {
	print &text('exec_files2',
		    join(", ", map { "<tt>$_</tt>" } @files), $under),"<p>\n";
	}
@run = &run_cluster_job($copy, \&callback);
if (!@run) {
	print "$text{'exec_nohosts'}<p>\n";
	}

&webmin_log("exec", "copy", undef, $copy);

&ui_print_footer("edit.cgi?id=$in{'id'}", $text{'edit_return'},
	"", $text{'index_return'});

# callback(error, &server, message, dirs, command-output, before-output)
sub callback
{
local $d = $_[1]->{'desc'} || $_[1]->{'host'};
if (!$_[0]) {
	# Failed - show error
	print "<b>",&text('exec_failed', $d, $_[2]),"</b><p>\n";
	}
else {
	if ($_[6]) {
		# Show before command output
		print "<b>",&text('exec_before', $d),"</b><br>\n";
		print "<tt>",join("<br>", &mailboxes::wrap_lines($_[6], 80)),
		      "</tt><p>\n";
		}
	if (@{$_[4]}) {
		# Show created directories
		print "<b>",&text('exec_made', $d),"</b><br><ul>\n";
		foreach $f (@{$_[4]}) {
			print "<tt>$f</tt><br>\n";
			}
		print "</ul><p>\n";
		}
	if (!@{$_[2]}) {
		# Nothing copied
		print "<b>",&text('exec_nothing', $d),"</b><p>\n";
		}
	else {
		# Show copied files
		print "<b>",&text('exec_success', $d),"</b><br><ul>\n";
		foreach $f (@{$_[2]}) {
			print "<tt>$f</tt><br>\n";
			}
		print "</ul><p>\n";
		}
	if (@{$_[3]}) {
		# Show failed files
		print "<b>",&text('exec_not', $d),"</b><br><ul>\n";
		foreach $f (@{$_[3]}) {
			print "<tt>$f->[0]</tt> : $f->[1]<br>\n";
			}
		print "</ul><p>\n";
		}
	if ($_[5]) {
		# Show after command output
		print "<b>",&text('exec_cmd', $d),"</b><br>\n";
		print "<tt>",join("<br>", &mailboxes::wrap_lines($_[5], 80)),
		      "</tt><p>\n";
		}
	}
}


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 1.02 KB 0644
cluster-copy-lib.pl File 6.67 KB 0755
config File 12 B 0644
config.info File 83 B 0644
config.info.ca File 107 B 0644
config.info.de File 84 B 0644
config.info.fr File 107 B 0644
config.info.hu File 0 B 0644
config.info.ms File 86 B 0644
config.info.nl File 93 B 0644
config.info.no File 95 B 0644
config.info.pl File 90 B 0644
copy.pl File 1.8 KB 0755
delete.cgi File 507 B 0755
edit.cgi File 2.67 KB 0755
exec.cgi File 2.02 KB 0755
index.cgi File 1.89 KB 0755
log_parser.pl File 704 B 0755
module.info File 172 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 135 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 179 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 213 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 235 B 0644
module.info.ca File 156 B 0644
module.info.cs File 41 B 0644
module.info.cs.auto File 95 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 124 B 0644
module.info.de File 126 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 273 B 0644
module.info.es File 36 B 0644
module.info.es.auto File 113 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 145 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 213 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 134 B 0644
module.info.fr File 40 B 0644
module.info.fr.auto File 109 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 146 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 139 B 0644
module.info.hu File 35 B 0644
module.info.hu.auto File 99 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 129 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 190 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 144 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 141 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 136 B 0644
module.info.ms File 127 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 140 B 0644
module.info.nl File 38 B 0644
module.info.nl.auto File 106 B 0644
module.info.no File 30 B 0644
module.info.no.auto File 101 B 0644
module.info.pl File 120 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 147 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 153 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 147 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 230 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 132 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 118 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 135 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 320 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 148 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 216 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 195 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 137 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 115 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 121 B 0644
save.cgi File 2.1 KB 0755
uninstall.pl File 230 B 0755