project structure refactoring

This commit is contained in:
xinatorus
2020-04-27 21:08:38 +02:00
parent e75de72afd
commit 8fd7fe8329
8 changed files with 0 additions and 0 deletions

18
app/controllers/scene.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
if (isset($_POST) && !empty($_POST)){
if (isset($_POST['submitFinal']) && $_POST['submitFinal'] != "") {
SceneManager::create($_POST['sceneIcon'], $_POST['sceneName'], json_encode($_POST['devices']));
header('Location: ' . BASEDIR . strtolower(basename(__FILE__, '.php')));
die();
}
//Debug
if (DEBUGMOD == 1) {
echo '<pre>';
var_dump($_POST);
echo '</pre>';
echo '<a href="/' . BASEDIR . strtolower(basename(__FILE__, '.php')).'">CONTINUE</a>';
die();
}
}