PHP_SMART_HOME_V3/app/controllers/sceneController.php

19 lines
486 B
PHP
Raw Normal View History

2019-08-23 11:39:42 +00:00
<?php
if (isset($_POST) && !empty($_POST)){
2019-10-13 08:07:03 +00:00
if (isset($_POST['submitFinal']) && $_POST['submitFinal'] != "") {
2019-10-11 14:52:52 +00:00
SceneManager::create($_POST['sceneIcon'], $_POST['sceneName'], json_encode($_POST['devices']));
2020-04-28 09:52:14 +00:00
header('Location: ' . BASEURL . strtolower(basename(__FILE__, '.php')));
2019-10-13 08:07:03 +00:00
die();
2019-10-11 14:52:52 +00:00
}
2019-08-23 11:39:42 +00:00
//Debug
if (DEBUGMOD == 1) {
echo '<pre>';
var_dump($_POST);
echo '</pre>';
2020-04-28 09:52:14 +00:00
echo '<a href="/' . BASEURL . strtolower(basename(__FILE__, '.php')).'">CONTINUE</a>';
2019-08-23 11:39:42 +00:00
die();
}
}