34 require_once
"class.ilVirusScanner.php";
46 $this->type =
"clamav";
47 $this->scanZipFiles =
true;
58 function scanFile($a_filepath, $a_origname =
"")
70 $this->scanFilePath = $a_filepath;
71 $this->scanFileOrigName = $a_origname;
74 $cmd = $this->scanCommand .
" --no-summary -i " . $a_filepath.
" 2>&1";
76 $this->scanResult = implode(
"\n",
$out);
79 if (ereg(
"FOUND", $this->scanResult))
81 $this->scanFileIsInfected =
true;
87 $this->scanFileIsInfected =
false;
92 $this->log->write(
"ERROR (Virus Scanner failed): "
94 .
"; COMMAMD=" .
$cmd);