diff --git a/config.php b/config.php
index 8c50b13..98edc75 100644
--- a/config.php
+++ b/config.php
@@ -1,8 +1,8 @@
+
+
+
+
+
+ lanScan
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- lanScan
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ['regexp' => '/^[\da-zA-Z-. \/]+$/'], "flags" => FILTER_NULL_ON_FAILURE]);
+if ($lan) {
+ $cmd = "$lanScanCmd $lan";
+
+ if (!file_exists($SCANSDIR)) mkdir($SCANSDIR);
+ $filename = str_replace("/", "!", $lan);
+ $path = "$SCANSDIR/$filename.xml";
+
+ if (!file_exists($path)) $cmd .= " | tee '$path'";
+
+ header('Content-type: text/xml');
+ system("$cmd", $retcode);
+
+ exit();
+}
+
+$host = filter_input(INPUT_GET, 'host', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => '/^[\da-zA-Z-. \/]+$/'], "flags" => FILTER_NULL_ON_FAILURE]);
+if ($host) {
+ $cmd = "$hostScanCmd $host";
+
+ if (!file_exists($SCANSDIR)) mkdir($SCANSDIR);
+ $filename = str_replace("/", "!", $host);
+ $path = "$SCANSDIR/$filename.xml";
+
+ if (!file_exists($path)) $cmd .= " | tee '$path'";
+
+ header('Content-type: text/xml');
+ system("$cmd", $retcode);
+
+ exit();
+}
+
+include "home.php";
\ No newline at end of file
diff --git a/scan.php b/scan.php
deleted file mode 100644
index 4689547..0000000
--- a/scan.php
+++ /dev/null
@@ -1,35 +0,0 @@
- ['regexp' => '/^[\da-zA-Z-. \/]+$/'], "flags" => FILTER_NULL_ON_FAILURE]);
-if ($lan) {
- $cmd = "$lanScanCmd $lan";
-
- if (!file_exists($SCANSDIR)) mkdir($SCANSDIR);
- $filename = str_replace("/", "!", $lan);
- $path = "$SCANSDIR/$filename.xml";
-
- if (!file_exists($path)) $cmd .= " | tee '$path'";
-
- header('Content-type: text/xml');
- system("$cmd", $retcode);
-
- exit();
-}
-
-$host = filter_input(INPUT_GET, 'host', FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => '/^[\da-zA-Z-. \/]+$/'], "flags" => FILTER_NULL_ON_FAILURE]);
-if ($host) {
- $cmd = "$hostScanCmd $host";
-
- if (!file_exists($SCANSDIR)) mkdir($SCANSDIR);
- $filename = str_replace("/", "!", $host);
- $path = "$SCANSDIR/$filename.xml";
-
- if (!file_exists($path)) $cmd .= " | tee '$path'";
-
- header('Content-type: text/xml');
- system("$cmd", $retcode);
-
- exit();
-}
\ No newline at end of file
diff --git a/stylesheets/lanScan.xsl b/stylesheets/lanScan.xsl
index a5ee26a..8f5330c 100644
--- a/stylesheets/lanScan.xsl
+++ b/stylesheets/lanScan.xsl
@@ -5,6 +5,7 @@
version="1.1">
+
@@ -153,7 +154,7 @@ $('.ui.dropdown').dropdown()
- scan.php?host=
+ ?host=
|