Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Settings/Admin.php')
-rw-r--r--lib/Settings/Admin.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php
index 052ba30..8036683 100644
--- a/lib/Settings/Admin.php
+++ b/lib/Settings/Admin.php
@@ -47,23 +47,7 @@ class Admin implements ISettings
*/
public function getForm()
{
- $suspicionLevel = $this->config->getAppValue(Application::APP_ID, 'suspicion_level', 2);
-
- $activeSuspicionLevel = [];
- $suspicionLevels = [['code' => 1, 'name' => 'Maybe suspicious'], ['code' => 2, 'name' => 'Suspicious']];
-
- if (intval($suspicionLevel) === 1) {
- $activeSuspicionLevel = ['code' => 1, 'name' => 'Maybe suspicious'];
- $suspicionLevels = [['code' => 2, 'name' => 'Suspicious']];
- } elseif (intval($suspicionLevel) === 2) {
- $activeSuspicionLevel = ['code' => 2, 'name' => 'Suspicious'];
- $suspicionLevels = [['code' => 1, 'name' => 'Maybe suspicious']];
- }
-
return new TemplateResponse(Application::APP_ID, 'admin', [
- 'minimum_sequence_length' => $this->config->getAppValue(Application::APP_ID, 'minimum_sequence_length', 5),
- 'active_suspicion_level' => $activeSuspicionLevel,
- 'suspicion_levels' => $suspicionLevels,
'expire_days' => $this->config->getAppValue(Application::APP_ID, 'expire_days', 7),
], '');
}