Devices Feature Erweiterung

* manueller Config Upload wurde integriert
*
This commit is contained in:
Daniel Spitzer
2025-04-15 10:42:39 +02:00
parent cd7abf0607
commit 48edde27ef
3 changed files with 197 additions and 0 deletions

View File

@@ -318,6 +318,9 @@ class DeviceController extends mfBaseController
case "createconfig":
$this->createConfig($ip);
break;
case "uploadFile":
$this->uploadFile($id);
break;
case "getoltinfo":
$this->getoltInfo($ip, $portid, $adv);
break;
@@ -361,6 +364,15 @@ class DeviceController extends mfBaseController
exit;
}
private function uploadFile($id)
{
$r = $this->request;
$file = $_FILES;
$response = DeviceModel::uploadFile($id, $file);
echo $response;
die();
}
private function createConfig($ip)
{