updating config-file xml's; prepare config-details view via ajax for config-commands/files to show in configuration

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-23 19:42:23 +02:00
parent 91d41af44a
commit 000cb93def
15 changed files with 121 additions and 9459 deletions

View File

@@ -116,6 +116,8 @@ class Ajax
return $this->resetTablelisting();
case 'editapikey':
return $this->editApiKey();
case 'getConfigDetails':
return $this->getConfigDetails();
default:
return $this->errorResponse('Action not found!');
}
@@ -317,4 +319,15 @@ class Ajax
));
return $this->jsonResponse(['allowed_from' => $allowed_from, 'valid_until' => $valid_until]);
}
private function getConfigDetails()
{
$distro = isset($_POST['distro,']) ? $_POST['distro,'] : "";
$section = isset($_POST['section']) ? $_POST['section'] : "";
$daemon = isset($_POST['daemon']) ? $_POST['daemon'] : "";
// @todo
return $this->jsonResponse(['title' => 'TODO', 'content' => '<div class="alert alert-warning" role="alert">TODO</div>']);
}
}