#!/usr/bin/perl

print "Content-Type: Text/HTML\n\n";

use CGI ':standard';
use Vpanel 1.00;
require $header;
require $accountinfo;

$domainname = find_domain ($mainuser);

# Define the tab which appears to the front
$tab_section = $tabnum_mailwall;

# Output the content associated with this tab
print "<body class=section-$tab_section>";

# display tabs
require $tabdisplay;

print_header("Removal of Virus protection for $domainname");

$virus_status = virus_scanning_status($domainname);
if ($virus_status eq "on" )
{
	print "Thank you for your request to turn off MailWall's Anti-Virus protection.";
	show_time_to_change();

	$ret = php_request ("setVirusScan", "scope=domain:$domainname", "virusScan=No");

} else {
	print "Sorry, but it seems that this feature cannot be turned off at the moment.";
	print_support_contact_information();
}	

require $footer;
