$to .= '@'.$hostname if $to eq 'anonymous';
$from .= '@'.$hostname if $from eq 'anonymous';
$to .= '@'.$mdomain if -d "$to\@$mdomain";
$to .= '@'.$hostname if $to eq 'anonymous';
$from .= '@'.$hostname if $from eq 'anonymous';
$to .= '@'.$mdomain if -d "$to\@$mdomain";
and not($dkey and ($ENV{HTTP_COOKIE}||'') =~ /dkey=$dkey/)
and open $file,'<',"$file/download")
{
and not($dkey and ($ENV{HTTP_COOKIE}||'') =~ /dkey=$dkey/)
and open $file,'<',"$file/download")
{
} else {
$range = sprintf("bytes %s-%s/%s",$seek,$total_size-1,$total_size);
}
} else {
$range = sprintf("bytes %s-%s/%s",$seek,$total_size-1,$total_size);
}
"Connection: close",
);
# nvt_print('','HTTP/1.1 200 OK',"Content-Length: $size","Content-Type: $type"); exit;
"Connection: close",
);
# nvt_print('','HTTP/1.1 200 OK',"Content-Length: $size","Content-Type: $type"); exit;
if ($type eq 'application/octet-stream') {
nvt_print(qq'Content-Disposition: attachment; filename="$filename"');
}
if ($type eq 'application/octet-stream') {
nvt_print(qq'Content-Disposition: attachment; filename="$filename"');
}