[ Avaa Bypassed ]




Upload:

Command:

www-data@3.137.198.25: ~ $
#!/usr/bin/perl
# Save, delete or create a scheduled copy

require './cluster-copy-lib.pl';
&error_setup($text{'save_err'});
&ReadParse();

if (!$in{'new'}) {
	$copy = &get_copy($in{'id'});
	$job = &find_cron_job($copy);
	}

if ($in{'run'}) {
	# Run the job now
	&redirect("exec.cgi?id=$in{'id'}");
	exit;
	}
elsif ($in{'delete'}) {
	# Just delete it
	&delete_copy($copy);
	if ($job) {
		&lock_file(&cron::cron_file($job));
		&cron::delete_cron_job($job);
		&unlock_file(&cron::cron_file($job));
		}
	}
else {
	# Check and parse inputs
	$in{'files'} =~ s/\r//g;
	@files = split(/\n/, $in{'files'});
	foreach $f (@files) {
		$f =~ /^\// || &error(&text('save_efile', $f));
		}
	$copy->{'files'} = join("\t", @files);
	@files || &error($text{'save_efiles'});
	$in{'dest'} =~ /^\// || &error($text{'save_edest'});
	if ($in{'email_def'}) {
		$copy->{'email'} = '';
		}
	else {
		$in{'email'} =~ /^\S+$/ || &error($text{'save_eemail'});
		$copy->{'email'} = $in{'email'};
		}
	$copy->{'dest'} = $in{'dest'};
	$copy->{'dmode'} = $in{'dmode'};
	$copy->{'before'} = $in{'before'};
	$copy->{'cmd'} = $in{'cmd'};
	$copy->{'beforelocal'} = !$in{'beforeremote'};
	$copy->{'cmdlocal'} = !$in{'cmdremote'};
	@servers = split(/\0/, $in{'servers'});
	@servers || &error($text{'save_eservers'});
	$copy->{'servers'} = join(" ", @servers);
	$copy->{'sched'} = $in{'sched'};
	&cron::parse_times_input($copy, \%in);

	# Save or create
	&save_copy($copy);
	if ($job) {
		&lock_file(&cron::cron_file($job));
		&cron::delete_cron_job($job);
		}
	if ($in{'sched'}) {
		&cron::create_wrapper($cron_cmd, $module_name, "copy.pl");
		$job = { 'user' => 'root',
			 'command' => "$cron_cmd $copy->{'id'}",
			 'active' => 1,
			 'mins' => $copy->{'mins'},
			 'hours' => $copy->{'hours'},
			 'days' => $copy->{'days'},
			 'months' => $copy->{'months'},
			 'weekdays' => $copy->{'weekdays'},
			 'special' => $copy->{'special'} };
		&lock_file(&cron::cron_file($job));
		&cron::create_cron_job($job);
		}
	&unlock_file(&cron::cron_file($job)) if ($job);
	}
&webmin_log($in{'new'} ? 'create' : $in{'delete'} ? 'delete' : 'modify',
	    'copy', undef, $copy);
&redirect("");



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