mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
14 lines
326 B
PHP
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: ' . BASEDIR . strtolower(basename(__FILE__, '.php')));
|
|
die();
|
|
}
|
|
?>
|