help->select_count("software");
$cpe_count = $db->help->execute();
$cpe = $db->get_Settings(['cpe-progress', 'cpe-dl-progress']);
if (isset($cpe['cpe-dl-progress']) && between($cpe['cpe-dl-progress'], 0.01, 99.99)) {
$msg[] = "
CPE Download Progress: " . number_format($cpe['cpe-dl-progress'], 0) . "%
";
}
elseif (isset($cpe['cpe-progress']) && between($cpe['cpe-progress'], 0.01, 99.99)) {
$msg[] = "CPE Progress: " . number_format($cpe['cpe-progress'], 0) . "%
";
}
elseif (!$cpe_count) {
$msg[] = "No CPE's present in DB
";
}
$db->help->select_count("cve_db");
$cve_count = $db->help->execute();
$cve = $db->get_Settings([
'cve-progress', 'cve-dl-progress',
'nvd-progress', 'nvd-cve-dl-progress', 'nvd-year'
]);
if (isset($cve['cve-dl-progress']) && between($cve['cve-dl-progress'], 0.01, 99.99)) {
$msg[] = "CVE Download Progress: " . number_format($cve['cve-dl-progress'], 0) . "%
";
}
elseif (isset($cve['nvd-cve-dl-progress']) && between($cve['nvd-cve-dl-progress'], 0.01, 99.99)) {
$msg[] = "NVD CVE Download {$cve['nvd-year']} Progress: " . number_format($cve['nvd-cve-dl-progress'], 0) . "%
";
}
elseif (isset($cve['cve-progress']) && between($cve['cve-progress'], 0.01, 99.99)) {
$msg[] = "CVE Progress: " . number_format($cve['cve-progress'], 0) . "%
";
}
elseif (isset($cve['nvd-cve-progress']) && between($cve['nvd-cve-progress'], 0.01, 99.99)) {
$msg[] = "NVD CVE {$cve['nvd-year']} Progress: " . number_format($cve['cve-progress'], 0) . "%
";
}
elseif (!$cve_count) {
$msg[] = "No CVE's present in DB
";
}
$db->help->select_count("stigs");
$stig_count = $db->help->execute();
$stig = $db->get_Settings(['stig-progress', 'stig-dl-progress']);
if (isset($stig['stig-dl-progress']) && between($stig['stig-dl-progress'], 0.01, 99.99)) {
$msg[] = "STIG Download Progress: " . number_format($stig['stig-dl-progress'], 0) . "%
";
}
elseif (isset($stig['stig-progress']) && between($stig['stig-progress'], 0.01, 99.99)) {
$msg[] = "STIG Progress: " .
"" . number_format($stig['stig-progress'], 0) . "%" .
"
";
}
elseif (!$stig_count) {
$msg[] = "No STIG's present in DB
";
}
$nasl = $db->get_Settings(['nasl-progress', 'nasl-dl-progress', 'nasl-count']);
if (!$nasl['nasl-count']) {
if (isset($nasl['nasl-dl-progress']) && between($nasl['nasl-dl-progress'], 0.01, 99.99)) {
$msg[] = "NASL Download Progress: {$nasl['nasl-dl-progress']}%
";
}
elseif (isset($nasl['nasl-progress']) && between($nasl['nasl-progress'], 0.01, 99.99)) {
$msg[] = "NASL Progress: {$nasl['nasl-progress']}%
";
}
}
?>
Sagacity
" .
implode("", $msg) .
"";
}
?>