Skip to content

Commit 0d4370a

Browse files
committed
Add new event hooks, update supports, update README.
1 parent d84dd5d commit 0d4370a

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## **What is phpMussel?**
88

9-
An ideal solution for shared hosting environments, where it's often not possible to utilise or install conventional anti-virus protection solutions, phpMussel is a PHP script designed to **detect trojans, viruses, malware and other threats** within files uploaded to your system wherever the script is hooked, based on the signatures of [ClamAV](https://www.clamav.net/) and others. For information regarding *HOW TO INSTALL* {2A+2B} and *HOW TO USE* {3A+3B} phpMussel, please refer either to the [Wiki](https://github.com/phpMussel/phpMussel/wiki) or to the [documentation](https://github.com/phpMussel/Docs/tree/master) (direct links to that documentation included under the "Documentation" header below this paragraph).
9+
An ideal solution for shared hosting environments, where it's often not possible to utilise or install conventional anti-virus protection solutions, phpMussel is a PHP script designed to **detect trojans, viruses, malware and other threats** within files uploaded to your system wherever the script is hooked, based on the signatures of [ClamAV](https://www.clamav.net/) and others. For information regarding *HOW TO INSTALL* and *HOW TO USE* phpMussel, please refer either to the [Wiki](https://github.com/phpMussel/phpMussel/wiki) or to the [documentation](https://github.com/phpMussel/Docs/tree/master) (direct links to that documentation included under the "Documentation" header below this paragraph).
1010

1111
---
1212

@@ -32,4 +32,4 @@ composer require phpmussel/core
3232
---
3333

3434

35-
Last Updated: 6 July 2020 (2020.07.06).
35+
Last Updated: 20 July 2020 (2020.07.20).

src/Loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The loader (last modified: 2020.07.16).
11+
* This file: The loader (last modified: 2020.07.20).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -83,7 +83,7 @@ class Loader
8383
/**
8484
* @var string phpMussel version number (SemVer).
8585
*/
86-
public $ScriptVersion = '3.0.0-alpha3';
86+
public $ScriptVersion = '3.0.0';
8787

8888
/**
8989
* @var string phpMussel version identifier (complete notation).

src/Scanner.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: The scanner (last modified: 2020.07.16).
11+
* This file: The scanner (last modified: 2020.07.19).
1212
*/
1313

1414
namespace phpMussel\Core;
@@ -259,6 +259,9 @@ public function scan($Files, int $Format = 0)
259259
);
260260
}
261261

262+
/** Fire event: "atEndOf_scan". */
263+
$this->Loader->Events->fireEvent('atEndOf_scan');
264+
262265
/** Return human-readable text. */
263266
if ($Format === 4) {
264267
return implode($this->Loader->L10N->getString('grammar_spacer'), array_filter($this->Loader->ScanResultsText));

tests/_support/config/phpmussel.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ lang='en'
1414
lang_override=true
1515
scan_cache_expiry=21600
1616
maintenance_mode=false
17-
statistics=true
18-
disabled_channels='VirusTotal_HTTP,hpHosts_HTTP'
17+
statistics=false
18+
disabled_channels='VirusTotal_HTTP'
1919
[signatures]
2020
active='clamav.cedb,clamav.db,clamav.fdb,clamav.hdb,clamav.htdb,clamav.mdb,clamav.ndb,clamav_elf.db,clamav_elf_regex.db,clamav_email.db,clamav_email_regex.db,clamav_exe.db,clamav_exe_regex.db,clamav_graphics.db,clamav_graphics_regex.db,clamav_java.db,clamav_java_regex.db,clamav_macho.db,clamav_macho_regex.db,clamav_ole.db,clamav_ole_regex.db,clamav_pdf.db,clamav_pdf_regex.db,clamav_regex.db,clamav_regex.htdb,clamav_regex.ndb,clamav_swf.db,clamav_swf_regex.db,hex_general_commands.csv,phpmussel.cedb,phpmussel.db,phpmussel.fdb,phpmussel.hdb,phpmussel.htdb,phpmussel.mdb,phpmussel.medb,phpmussel.ndb,phpmussel.udb,phpmussel_elf.db,phpmussel_email.db,phpmussel_email_regex.db,phpmussel_exe.db,phpmussel_exe_regex.db,phpmussel_graphics.db,phpmussel_graphics_regex.db,phpmussel_ole.db,phpmussel_ole_regex.db,phpmussel_pdf.db,phpmussel_regex.db,phpmussel_regex.htdb,phpmussel_regex.ndb,phpmussel_swf.db,phpmussel_swf_regex.db'
2121
fail_silently=true
@@ -67,7 +67,6 @@ vt_weighting=0
6767
vt_quota_rate=4
6868
vt_quota_time=1
6969
[urlscanner]
70-
lookup_hphosts=true
7170
google_api_key=''
7271
maximum_api_lookups=10
7372
maximum_api_lookups_response=false
@@ -105,7 +104,7 @@ magnification=1
105104
[phpmailer]
106105
event_log=''
107106
enable_two_factor=false
108-
enable_notifications=false
107+
enable_notifications=''
109108
skip_auth_process=false
110109
host=''
111110
port=587

tests/_support/config/phpmussel.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ core:
1515
scan_cache_expiry: 21600
1616
maintenance_mode: false
1717
statistics: false
18-
disabled_channels: "VirusTotal_HTTP,hpHosts_HTTP"
18+
disabled_channels: "VirusTotal_HTTP"
1919
signatures:
2020
active: "clamav.cedb,clamav.db,clamav.fdb,clamav.hdb,clamav.htdb,clamav.mdb,clamav.ndb,clamav_elf.db,clamav_elf_regex.db,clamav_email.db,clamav_email_regex.db,clamav_exe.db,clamav_exe_regex.db,clamav_graphics.db,clamav_graphics_regex.db,clamav_java.db,clamav_java_regex.db,clamav_macho.db,clamav_macho_regex.db,clamav_ole.db,clamav_ole_regex.db,clamav_pdf.db,clamav_pdf_regex.db,clamav_regex.db,clamav_regex.htdb,clamav_regex.ndb,clamav_swf.db,clamav_swf_regex.db,hex_general_commands.csv,phpmussel.cedb,phpmussel.db,phpmussel.fdb,phpmussel.hdb,phpmussel.htdb,phpmussel.mdb,phpmussel.medb,phpmussel.ndb,phpmussel.udb,phpmussel_elf.db,phpmussel_email.db,phpmussel_email_regex.db,phpmussel_exe.db,phpmussel_exe_regex.db,phpmussel_graphics.db,phpmussel_graphics_regex.db,phpmussel_ole.db,phpmussel_ole_regex.db,phpmussel_pdf.db,phpmussel_regex.db,phpmussel_regex.htdb,phpmussel_regex.ndb,phpmussel_swf.db,phpmussel_swf_regex.db"
2121
fail_silently: true
@@ -67,7 +67,6 @@ virustotal:
6767
vt_quota_rate: 4
6868
vt_quota_time: 1
6969
urlscanner:
70-
lookup_hphosts: true
7170
google_api_key: ""
7271
maximum_api_lookups: 10
7372
maximum_api_lookups_response: false
@@ -105,7 +104,7 @@ web:
105104
phpmailer:
106105
event_log: ""
107106
enable_two_factor: false
108-
enable_notifications: false
107+
enable_notifications: ""
109108
skip_auth_process: false
110109
host: ""
111110
port: 587

0 commit comments

Comments
 (0)