19 lines
423 B
PHP
19 lines
423 B
PHP
|
<?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>';
|
||
|
echo '<a href="/vasek/home/' . strtolower(basename(__FILE__, '.php')).'">CONTINUE</a>';
|
||
|
die();
|
||
|
}
|
||
|
|
||
|
header('Location: /vasek/home/' . strtolower(basename(__FILE__, '.php')), TRUE);
|
||
|
die();
|
||
|
}
|