dolibarr 19.0.3
|
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 30 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 71 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 131 of file antivir.class.php.
References dol_sanitizePathName(), and dol_string_nospecial().
Referenced by dol_avscan_file().