mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Final Fixes And Clean Up
This commit is contained in:
1 parent
a3d911d3ec
commit
e0bbc09389
18 files changed
+29
-35
No files matched your search
@@ -32,7 +32,7 @@ if (isset($_POST) && !empty($_POST)){
|
||||
|
||||
AutomationManager::create($_POST['name'], $onDays, $doCode, $ifCode);
|
||||
|
||||
header('Location: ' . BASEDIR . strtolower(basename(__FILE__, '.php')));
|
||||
header('Location: ' . BASEURL . strtolower(basename(__FILE__, '.php')));
|
||||
die();
|
||||
} else if (isset($_POST['modalFinal']) && $_POST['action'] == "edit") {
|
||||
$doCode = json_encode($_POST['device'], JSON_PRETTY_PRINT);
|
||||
@@ -70,7 +70,7 @@ if (isset($_POST) && !empty($_POST)){
|
||||
|
||||
AutomationManager::create($_POST['name'], $onDays, $doCode, $ifCode, (isset ($_POST['automation_id']) ? $_POST['automation_id'] : ""));
|
||||
|
||||
header('Location: ' . BASEDIR . strtolower(basename(__FILE__, '.php')));
|
||||
header('Location: ' . BASEURL . strtolower(basename(__FILE__, '.php')));
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user