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