From 4928b346b34c575552888c3c9e0c8496fab3f339 Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 18 Oct 2024 18:41:15 +0200 Subject: [PATCH] default --- README.md | 2 +- config.php | 4 ++-- filter_inputs.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8a8ccce..8075fd7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Scanne le réseau avec `nmap` et affiche les résultats dans une page web. On peut personnaliser les options prédéfinies pour les scans de réseau ou d'hôte dans le fichier `config.php` : ```php $presets = [ - "lan" => [ + "default" => [ '-PS' => 'microsoft-ds', '-F' => true, '-T5' => true, diff --git a/config.php b/config.php index 2b2b715..537b4cb 100644 --- a/config.php +++ b/config.php @@ -6,7 +6,7 @@ $NMAPDIR = dirname(`which nmap`) . "/../share/nmap"; $DATADIR = "datadir"; $presets = [ - "lan" => [ + "default" => [ '-PS' => 'microsoft-ds', '-F' => true, '-T5' => true, @@ -24,4 +24,4 @@ $presets = [ 'refreshPeriod' => 60, 'sudo' => true, ], -]; \ No newline at end of file +]; diff --git a/filter_inputs.php b/filter_inputs.php index cf94b32..818ff97 100644 --- a/filter_inputs.php +++ b/filter_inputs.php @@ -117,7 +117,7 @@ if ($preset && isset($presets[$preset])) { 'compareWith' => FILTER_VALIDATE_URL, 'refreshPeriod' => ['filter' => FILTER_VALIDATE_INT, 'options' => ['min_range' => 0]], 'sudo' => FILTER_VALIDATE_BOOLEAN, - ], false) ?: $presets["lan"]; + ], false) ?: $presets["default"]; } -$options["--datadir"] = $DATADIR; \ No newline at end of file +$options["--datadir"] = $DATADIR;