mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
remake to switch betwen enable and disable buton and second button is remove, remova now not work
This commit is contained in:
1 parent
6689b4285e
commit
2117e9acac
3 files changed
+19
-8
No files matched your search
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
if (!empty ($_POST)){
|
||||
if (
|
||||
isset($_POST['name']) &&
|
||||
$_POST['name'] != ''
|
||||
){
|
||||
isset ($_POST['name']) &&
|
||||
$_POST['name'] != '' &&
|
||||
!isset ($_POST['remove'])
|
||||
) {
|
||||
if ($_POST['status'] == "true") {
|
||||
if (file_exists ($_SERVER['DOCUMENT_ROOT'] . BASEDIR . 'app/plugins/!' . $_POST['name'] . ".php")) {
|
||||
rename($_SERVER['DOCUMENT_ROOT'] . BASEDIR . 'app/plugins/!' . $_POST['name'] . ".php", $_SERVER['DOCUMENT_ROOT'] . BASEDIR . 'app/plugins/' . $_POST['name'] . ".php");
|
||||
@@ -16,4 +17,12 @@ if (!empty ($_POST)){
|
||||
header('Location: ./plugins');
|
||||
die();
|
||||
}
|
||||
|
||||
if (
|
||||
isset ($_POST['name']) &&
|
||||
$_POST['name'] != '' &&
|
||||
isset ($_POST['remove'])
|
||||
) {
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user