Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marat2509 committed Mar 8, 2024
1 parent e895a3b commit 6448b7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
12 changes: 7 additions & 5 deletions nod32ms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ rotate_qty = 5
; Enabling internal key autosearch build-in module.
; It is used for searching keys in auto-mode using patterns located in
; "pattern" directory.
auto = 1
auto = 0

; Number of attempts to request new key if previous invalid
number_attempts = 5
Expand Down Expand Up @@ -218,11 +218,13 @@ versionv16 = 0 ; v16-17
versionep6 = 0 ; ep6
versionep7 = 0 ; ep7
versionep8 = 0 ; ep8
versionep9 = 1 ; ep9
versionep10 = 1 ; ep10
versionep9 = 0 ; ep9
versionep10 = 0 ; ep10
versionep11 = 1 ; ep11

; Eset Version 32bit OS
x32 = 1
x32 = 0
; Eset Version 64bit OS
x64 = 1
x64 = 0
; Eset Version arm64 OS
arm64 = 1
4 changes: 2 additions & 2 deletions worker/core/inc/classes/Mirror.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ static protected function parse_update_file($matches)

if (empty($output['file']) or empty($output['size']) or
(static::$ESET['x32'] != 1 and preg_match("/32|86/", $output['platform'])) or
(static::$ESET['x64'] != 1 and preg_match("/64/", $output['platform'])) or
(static::$ESET['arm64'] != 1 and preg_match("/a64/", $output['platform'])) or
(static::$ESET['x64'] != 1 and preg_match("/(?<!a)64/", $output['platform'])) or
(static::$ESET['arm64'] != 1 and preg_match("/a64/", $output['platform']))
) continue;
$new_files[] = $output;
$total_size += $output['size'];
Expand Down
7 changes: 6 additions & 1 deletion worker/core/inc/classes/Nod32ms.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ private function generate_html()
$total_size = $this->get_databases_size();
$web_dir = Config::get('SCRIPT')['web_dir'];
$ESET = Config::get('ESET');
$arch_list = array();
if ($ESET['x32'] == 1) $arch_list[] = Language::t('32bit');
if ($ESET['x64'] == 1) $arch_list[] = Language::t('64bit');
if ($ESET['arm64'] == 1) $arch_list[] = Language::t('arm64');

$html_page = '';

if (Config::get('SCRIPT')['generate_only_table'] == '0') {
Expand Down Expand Up @@ -507,7 +512,7 @@ private function generate_html()

$html_page .= '<tr>';
$html_page .= '<td colspan="2">' . Language::t("Present platforms") . '</td>';
$html_page .= '<td colspan="2">' . ($ESET['x32'] == 1 ? Language::t('32bit') : '') . ($ESET['x64'] == 1 ? ($ESET['x32'] ? ', ' . Language::t('64bit') : Language::t('64bit')) : '') . '</td>';
$html_page .= '<td colspan="2">' . implode(', ', $arch_list) . '</td>';
$html_page .= '</tr>';

$html_page .= '<tr>';
Expand Down

0 comments on commit 6448b7f

Please sign in to comment.