Ajaxify system reboot/shutdown

This commit is contained in:
billz
2023-10-08 19:21:43 +02:00
parent 2ac5f94594
commit 21f703b5a9
4 changed files with 32 additions and 11 deletions

View File

@@ -47,15 +47,6 @@ function DisplaySystem(&$extraFooterScripts)
}
}
}
if (isset($_POST['system_reboot'])) {
$status->addMessage("System Rebooting Now!", "warning", false);
$result = shell_exec("sudo /sbin/reboot");
}
if (isset($_POST['system_shutdown'])) {
$status->addMessage("System Shutting Down Now!", "warning", false);
$result = shell_exec("sudo /sbin/shutdown -h now");
}
}
if (isset($_POST['RestartLighttpd'])) {