13 require_once
"class.ilVirusScanner.php";
25 $this->type =
"clamav";
26 $this->scanZipFiles =
true;
37 function scanFile($a_filepath, $a_origname =
"")
49 $this->scanFilePath = $a_filepath;
50 $this->scanFileOrigName = $a_origname;
53 $cmd = $this->scanCommand .
" --no-summary -i " . $a_filepath.
" 2>&1";
55 $this->scanResult = implode(
"\n",
$out);
58 if (ereg(
"FOUND", $this->scanResult))
60 $this->scanFileIsInfected =
true;
66 $this->scanFileIsInfected =
false;
71 $this->log->write(
"ERROR (Virus Scanner failed): "
73 .
"; COMMAMD=" .
$cmd);