HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/share/webmin/cluster-copy/delete.cgi
#!/usr/bin/perl
# Delete multiple cluster copies

require './cluster-copy-lib.pl';
&ReadParse();
&error_setup($text{'delete_err'});
@d = split(/\0/, $in{'d'});
@d || &error($text{'delete_enone'});

foreach $d (@d) {
	$copy = &get_copy($d);
	if ($copy) {
		$job = &find_cron_job($copy);
		&delete_copy($copy);
		if ($job) {
			&lock_file(&cron::cron_file($job));
			&cron::delete_cron_job($job);
			&unlock_file(&cron::cron_file($job));
			}
		}
	}
&webmin_log("deletes", undef, scalar(@d));
&redirect("");