PHP_SMART_HOME_V3/app/controllers/dashboardController.php
2020-04-28 11:52:14 +02:00

14 lines
326 B
PHP

<?php
if (isset($_POST) && !empty($_POST)){
if (isset($_POST['modalFinal']) && $_POST['modalFinal'] != "") {
$subDeviceIds = $_POST['devices'];
foreach ($subDeviceIds as $subDeviceId) {
DashboardManager::Add($subDeviceId);
}
}
header('Location: ' . BASEURL . strtolower(basename(__FILE__, '.php')));
die();
}
?>