Database_Baseline.zip - Revisions for creating views and routines
installer.php - Fix bug when update_db.php - Converted STIG download to identify the zip files from the a-z master list and download them individually instead of downloading the compilation zip file. Also integrated the sunset list into the same process so ALL STIGs are downloaded and imported at the same time
This commit is contained in:
@ -41,7 +41,7 @@ $db_step = [
|
||||
'cpe' => ['filter' => FILTER_VALIDATE_BOOLEAN],
|
||||
'cve' => ['filter' => FILTER_VALIDATE_BOOLEAN],
|
||||
'stig' => ['filter' => FILTER_VALIDATE_BOOLEAN],
|
||||
'update-freq' => ['filter' => FILTER_VALIDATE_INT, 'flag' => FILTER_NULL_ON_FAILURE]
|
||||
'update-freq' => ['filter' => FILTER_VALIDATE_FLOAT, 'flag' => FILTER_NULL_ON_FAILURE]
|
||||
];
|
||||
$company_step = [
|
||||
'company' => $params,
|
||||
@ -194,7 +194,6 @@ function save_Database($params)
|
||||
unset($db);
|
||||
}
|
||||
|
||||
$successful = true;
|
||||
$zip = new ZipArchive();
|
||||
$db = new mysqli(DB_SERVER, $params['root-uname'], $params['root-pwd'], 'mysql');
|
||||
if ($db->connect_errno && $db->connect_errno == 1045) {
|
||||
@ -361,7 +360,6 @@ EOO;
|
||||
|
||||
if (preg_grep("/Access Denied/i", $output)) {
|
||||
$errors[] = $output;
|
||||
$successful = false;
|
||||
}
|
||||
else {
|
||||
unlink($file);
|
||||
|
Reference in New Issue
Block a user