diff --git a/README.md b/README.md index 106bda3..94b2399 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ bitrix-antispam =============== -1C Bitrix anti-spam mod. 3.11.13 +1C Bitrix anti-spam mod. 3.11.14 Information page, http://cleantalk.org/bitrix-antispam-module-bez-captcha diff --git a/cleantalk.antispam/include.php b/cleantalk.antispam/include.php index 37aaf1b..c3135bc 100644 --- a/cleantalk.antispam/include.php +++ b/cleantalk.antispam/include.php @@ -22,7 +22,7 @@ use Cleantalk\Common\Firewall\Modules\SFW; if ( ! defined( 'CLEANTALK_USER_AGENT' ) ) - define( 'CLEANTALK_USER_AGENT', 'bitrix-31113' ); + define( 'CLEANTALK_USER_AGENT', 'bitrix-31114' ); define('APBCT_TBL_FIREWALL_DATA', 'cleantalk_sfw'); // Table with firewall data. define('APBCT_TBL_FIREWALL_LOG', 'cleantalk_sfw_logs'); // Table with firewall logs. diff --git a/cleantalk.antispam/install/version.php b/cleantalk.antispam/install/version.php index 7cf0ae7..324639a 100644 --- a/cleantalk.antispam/install/version.php +++ b/cleantalk.antispam/install/version.php @@ -1,5 +1,5 @@ "3.11.13", - "VERSION_DATE" => "2021-04-05 10:00:00" + "VERSION" => "3.11.14", + "VERSION_DATE" => "2021-04-06 10:00:00" ); diff --git a/cleantalk.antispam/lib/Cleantalk/Common/Firewall/FirewallUpdater.php b/cleantalk.antispam/lib/Cleantalk/Common/Firewall/FirewallUpdater.php index 86e78b0..e83dd2f 100644 --- a/cleantalk.antispam/lib/Cleantalk/Common/Firewall/FirewallUpdater.php +++ b/cleantalk.antispam/lib/Cleantalk/Common/Firewall/FirewallUpdater.php @@ -89,7 +89,7 @@ public function update() if( Get::get('spbc_remote_call_action') == 'sfw_update__write_base' && ! Get::get('firewall_updating_id') && $fw_stats['firewall_updating_id'] && - time() - $fw_stats['firewall_updating_last_start'] < 60 ){ + time() - $fw_stats['firewall_updating_last_start'] < 0 ){ return true; } @@ -107,7 +107,7 @@ public function update() } // Set new update ID - if( ! $fw_stats['firewall_updating_id'] || time() - $fw_stats['firewall_updating_last_start'] > 300 ){ + if( Get::get('spbc_remote_call_action') == 'sfw_update__write_base' && (! $fw_stats['firewall_updating_id'] || time() - $fw_stats['firewall_updating_last_start'] > 300)) { $helper::setFwStats( array( 'firewall_updating_id' => md5( rand( 0, 100000 ) ),