diff --git a/inc/helper.inc b/inc/helper.inc index 6cbd4bc..e0c7aa0 100644 --- a/inc/helper.inc +++ b/inc/helper.inc @@ -242,6 +242,9 @@ function FileDetection($filename) if (preg_match('/Checklist:|Unclassified|Secret|STIG[_| ]ID/i', $line)) { $name['type'] = ECHECKLIST_CSV; } + elseif (preg_match("/host\-list/", $name['base_name'])) { + $name['type'] = HOST_LIST; + } elseif (preg_match('/^\"NetBIOSName|^\"JobName/', $line)) { $name['type'] = UNSUPPORTED_RETINA_CSV; } diff --git a/ste/index.php b/ste/index.php index fe8d330..44706a3 100644 --- a/ste/index.php +++ b/ste/index.php @@ -326,6 +326,10 @@ include_once 'header.inc'; #loading { display: none; } + .dz-image img { + width: 100%; + height: 100%; + }
@@ -559,39 +563,49 @@ include_once 'header.inc';
+
Click or Drop files here to upload
+ onsubmit="$('#submit').attr('disabled', true);return true;" id='host-list-form'> +
Must keep 'host-list' as part of the filename
' /> diff --git a/upload.php b/upload.php index bae90af..2688234 100644 --- a/upload.php +++ b/upload.php @@ -58,6 +58,9 @@ if ($fn) { case TECH_ECHECKLIST_EXCEL: print header(JSON) . json_encode(['imageUrl' => '/img/scan_types/echecklist.png']); break; + case HOST_LIST: + print header(JSON) . json_encode(['imageUrl' => '/img/file.png']); + break; default: print header(JSON) . json_encode(['imageUrl' => null]); unlink(TMP . "/" . basename($fn));