From 6d94778307baa36fc46d17dfd7cc305ad470665c Mon Sep 17 00:00:00 2001 From: adrien Date: Sat, 8 Feb 2025 23:35:29 +0100 Subject: [PATCH] preset --- config.php | 20 ++++- index.php | 11 +-- options.php | 90 ++++++++++++------- scan.php | 72 +++++++-------- style.css | 4 + stylesheets/{hostScan.xsl => hostDetails.xsl} | 8 +- stylesheets/{lanScan.xsl => lanTable.xsl} | 16 ++-- stylesheets/lib/head.xsl | 21 ++--- stylesheets/lib/nav.xsl | 4 +- 9 files changed, 139 insertions(+), 107 deletions(-) rename stylesheets/{hostScan.xsl => hostDetails.xsl} (95%) rename stylesheets/{lanScan.xsl => lanTable.xsl} (90%) diff --git a/config.php b/config.php index e816723..14f3ac0 100644 --- a/config.php +++ b/config.php @@ -9,4 +9,22 @@ $DATADIR = "."; $SCRIPTARGSFILE = "script-args.ini"; $LANSCANOPTIONS = "-PSmicrosoft-ds -F -T5 --datadir '$DATADIR' --script http-info,smb-shares-size --script-args-file '$SCRIPTARGSFILE'"; $HOSTSCANOPTIONS = "-A -T5 --datadir '$DATADIR' --script http-info,smb-shares-size --script-args-file '$SCRIPTARGSFILE'"; -$COMMONOPTIONS = "--datadir '$DATADIR' --script-args-file '$SCRIPTARGSFILE'"; +$COMMONOPTIONS = [ + "--datadir" => $DATADIR, + "--script-args-file" => $SCRIPTARGSFILE, +]; +$PRESETS = [ + "lanScan" => [ + "-PS" => "microsoft-ds", + "-F" => true, + "-T" => 5, + "--script" => "http-info,smb-shares-size", + "--stylesheet" => "lanTable.xsl", + ], + "host" => [ + "-A" => true, + "-T" => 5, + "--script" => "http-info,smb-shares-size", + "--stylesheet" => "hostDetails.xsl", + ], +]; \ No newline at end of file diff --git a/index.php b/index.php index 661af66..866eca3 100644 --- a/index.php +++ b/index.php @@ -27,10 +27,6 @@ background: #1b1c1dc0; backdrop-filter: blur(7px); } - - .logo { - margin-right: 0 !important; - } @@ -55,11 +51,12 @@

Découvrir ou superviser un réseau

-
+
@@ -100,7 +97,7 @@ Exemples: /24 10.
- + diff --git a/options.php b/options.php index fcbfb41..4442190 100755 --- a/options.php +++ b/options.php @@ -25,7 +25,8 @@ - @@ -38,10 +39,10 @@
- -
@@ -50,7 +51,7 @@ Exemples: /24 10.
-
@@ -384,12 +385,12 @@ Exemples: /24 10.
Temporisation et performances
- + @@ -492,9 +493,9 @@ Exemples: /24 10.
@@ -545,67 +546,83 @@ Exemples: /24 10.
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
+
+ + +
+ +
+ +
+ +
+
+ - + /24 10. @@ -44,8 +40,7 @@ - +