1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Fixed domain and shared hosting deletion

Fixed domain and shared hosting deletion
This commit is contained in:
cp6 2021-01-30 10:10:27 +11:00
parent 69d6922ff3
commit 3de0b0956c

View File

@ -64,7 +64,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} elseif (isset($_POST['action']) && $_POST['action'] == 'update') { } elseif (isset($_POST['action']) && $_POST['action'] == 'update') {
$update = new itemUpdate($_POST); $update = new itemUpdate($_POST);
if (isset($_POST['me_delete'])) {//Delete object if (isset($_POST['me_delete']) || isset($_POST['sh_me_delete']) || isset($_POST['d_me_delete'])) {//Delete object
$update->deleteObjectData(); $update->deleteObjectData();
} elseif ($_POST['type'] == 'server_modal_edit') {//Update the server info } elseif ($_POST['type'] == 'server_modal_edit') {//Update the server info
$update->updateServerFromModal(); $update->updateServerFromModal();