Compare commits
No commits in common. "91aca751380b92e68890f0367490ddc2c70695c6" and "ad6ca25493244690f5cb93622687c11c6a2f1950" have entirely different histories.
91aca75138
...
ad6ca25493
|
@ -161,8 +161,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||
$_SESSION['error'] = "Editing the platform failed. Error: $result";
|
||||
}
|
||||
}
|
||||
header('Location: ' . $redirectUrl);
|
||||
exit;
|
||||
if (!$isAjax) {
|
||||
header('Location: ' . $redirectUrl);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
@ -326,7 +326,6 @@
|
|||
</div>
|
||||
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=settings" id="addPlatformForm">
|
||||
<input type="hidden" name="item" value="platform">
|
||||
<input type="hidden" name="csrf_token" value="<?= $security->generateCsrfToken() ?>">
|
||||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label for="platformName" class="form-label">Platform name <span class="text-danger">*</span></label>
|
||||
|
@ -364,7 +363,6 @@
|
|||
<form method="POST" action="<?= htmlspecialchars($app_root) ?>?page=settings" id="addHostForm">
|
||||
<input type="hidden" name="item" value="host">
|
||||
<input type="hidden" name="platform" id="hostPlatformId">
|
||||
<input type="hidden" name="csrf_token" value="<?= $security->generateCsrfToken() ?>">
|
||||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label for="hostAddress" class="form-label">Address <span class="text-danger">*</span></label>
|
||||
|
@ -399,7 +397,6 @@
|
|||
<input type="hidden" name="platform" id="agentPlatformId">
|
||||
<input type="hidden" name="host" id="agentHostId">
|
||||
<input type="hidden" name="new" value="true">
|
||||
<input type="hidden" name="csrf_token" value="<?= $security->generateCsrfToken() ?>">
|
||||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label for="agentType" class="form-label">Agent type <span class="text-danger">*</span></label>
|
||||
|
@ -444,7 +441,6 @@
|
|||
<input type="hidden" name="item" value="platform">
|
||||
<input type="hidden" name="platform" id="deletePlatformId">
|
||||
<input type="hidden" name="delete" value="true">
|
||||
<input type="hidden" name="csrf_token" value="<?= $security->generateCsrfToken() ?>">
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-danger">
|
||||
<h6>Are you sure you want to delete this platform?</h6>
|
||||
|
@ -489,7 +485,6 @@
|
|||
<input type="hidden" name="platform" id="deleteHostPlatformId">
|
||||
<input type="hidden" name="host" id="deleteHostId">
|
||||
<input type="hidden" name="delete" value="true">
|
||||
<input type="hidden" name="csrf_token" value="<?= $security->generateCsrfToken() ?>">
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-danger">
|
||||
<h6>Are you sure you want to delete this host?</h6>
|
||||
|
@ -529,7 +524,6 @@
|
|||
<input type="hidden" name="item" value="agent">
|
||||
<input type="hidden" name="delete" value="true">
|
||||
<input type="hidden" name="agent" id="deleteAgentId">
|
||||
<input type="hidden" name="csrf_token" value="<?= $security->generateCsrfToken() ?>">
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-danger">
|
||||
<h6>Are you sure you want to delete this agent?</h6>
|
||||
|
|
Loading…
Reference in New Issue