34 require_once
"class.ilVirusScanner.php";
46 $this->type =
"antivir";
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 .
" " . $a_filepath.
" ";
76 $this->scanResult = implode(
"\n",
$out);
79 if (ereg(
"ALERT:", $this->scanResult))
81 $this->scanFileIsInfected =
true;
87 $this->scanFileIsInfected =
false;
92 $this->log->write(
"ERROR (Virus Scanner failed): "
94 .
"; COMMAMD=" .
$cmd);