[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
ClamAV antivirus integration.
Copyright: | 2015 Ruslan Kabalin, Lancaster University. |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 156 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
scanner:: (4 methods):
is_configured()
scan_file()
get_clam_error_code()
scan_file_execute_commandline()
is_configured() X-Ref |
Are the necessary antivirus settings configured? return: bool True if all necessary config settings been entered |
scan_file($file, $filename, $deleteinfected) X-Ref |
Scan file, throws exception in case of infected file. param: string $file Full path to the file. param: string $filename Name of the file (could be different from physical file if temp file is used). param: bool $deleteinfected whether infected file needs to be deleted. return: void |
get_clam_error_code($returncode) X-Ref |
Returns the string equivalent of a numeric clam error code param: int $returncode The numeric error code in question. return: string The definition of the error code |
scan_file_execute_commandline($file) X-Ref |
Scan file using command line utility. param: string $file Full path to the file. return: array ($return, $notice) Execution return code and notification text. |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |