Device Update

* Backup Check Script noch mit meiner Email für Live Test
* Backup Check bei Devices hinzugefügt
This commit is contained in:
Daniel Spitzer
2025-05-19 20:20:02 +02:00
parent 8d6ba4aa5a
commit 9312cf5f5e
5 changed files with 98 additions and 2 deletions

View File

@@ -164,6 +164,7 @@ class DeviceController extends mfBaseController
$data['devicetype_id'] = $r->devicetype_id;
$data['parent_id'] = $r->parent_id;
$data['autobackup'] = trim($r->autobackup);
$data['backup_check'] = trim($r->backup_check);
if (trim($r->pop_id) == "0") {
$data['pop_id'] = NULL;
@@ -193,6 +194,9 @@ class DeviceController extends mfBaseController
if ($data['autobackup'] != "1") {
$data['autobackup'] = "0";
}
if ($data['backup_check'] != "1") {
$data['backup_check'] = "0";
}
if (!$data['parent_id']) {
$data['parent_id'] = NULL;
}
@@ -364,6 +368,7 @@ class DeviceController extends mfBaseController
exit;
}
private function uploadFile($id)
{
$r = $this->request;