dolibarr 20.0.2
|
Class to scan for virus. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
dol_avscan_file ($file) | |
Scan a file with antivirus. | |
getCliCommand ($file) | |
Get full Command Line to run. | |
Class to scan for virus.
Definition at line 31 of file antivir.class.php.
AntiVir::__construct | ( | $db | ) |
AntiVir::dol_avscan_file | ( | $file | ) |
Scan a file with antivirus.
This function runs the command defined in setup. This antivirus command must return 0 if OK. Return also true (virus found) if file end with '.virus' (so we can make test safely).
string | $file | File to scan |
Definition at line 72 of file antivir.class.php.
References dol_syslog(), and getCliCommand().
AntiVir::getCliCommand | ( | $file | ) |
Get full Command Line to run.
string | $file | File to scan |
Definition at line 130 of file antivir.class.php.
References dol_sanitizePathName(), dol_string_nospecial(), and getDolGlobalString().
Referenced by dol_avscan_file().