From 48113dc7cc490eafe6b3473004656b639d839912 Mon Sep 17 00:00:00 2001 From: adrien Date: Sun, 13 Oct 2024 07:28:11 +0200 Subject: [PATCH] fix names --- options.php | 50 ++++++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/options.php b/options.php index 9aa1218..a16a9b4 100755 --- a/options.php +++ b/options.php @@ -62,19 +62,19 @@ Exemples: /24 10.
- " title="Liste de ports ex: 22,23,25,80,200-1024,60000-">
- " title="Liste de ports ex: 22,23,25,80,200-1024,60000-">
- " title="Liste de ports ex: 22,23,25,80,200-1024,60000-">
@@ -85,7 +85,7 @@ Exemples: /24 10.
- /> + />
@@ -102,47 +102,41 @@ Exemples: /24 10.
- -
- - "> -
- " title="[num de protocole]">
-
+
/> - +
-
+
/> - +
-
+
/> - +
-
+
/> - +
@@ -173,25 +167,25 @@ Exemples: /24 10.
-
+
onchange="pInput.disabled = FCheckbox.checked" /> - +
-
- +
+ pattern="(([TU]:)?[0-9\-]+|[a-z\-]+)(,([TU]:)?[0-9\-]+|,[a-z\-]+)*" value="" title="Liste de ports ex: ssh,ftp,U:53,111,137,T:21-25,80,139,8080">
-
+
/> - +
@@ -270,8 +264,12 @@ foreach (scandir($SCANS_DIR) as $filename) { new TagsInput(PAInput) new TagsInput(PUInput) new TagsInput(POInput) - new TagsInput(pInput) + var pTagsInput = new TagsInput(pInput) new TagsInput(dnsServersInput) + FCheckbox.onchange = () => { + pInput.disabled = FCheckbox.checked + pTagsInput.setDisabled(FCheckbox.checked) + } newScanForm.onsubmit = function(event) { if (this.checkValidity()) {