diff --git a/ajax/system/sys_actions.php b/ajax/system/sys_actions.php new file mode 100644 index 00000000..ec7aef16 --- /dev/null +++ b/ajax/system/sys_actions.php @@ -0,0 +1,21 @@ +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'])) { diff --git a/locale/en_US/LC_MESSAGES/messages.mo b/locale/en_US/LC_MESSAGES/messages.mo index c7daa31f..ae9de85f 100644 Binary files a/locale/en_US/LC_MESSAGES/messages.mo and b/locale/en_US/LC_MESSAGES/messages.mo differ diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po index 0b72060b..368341c4 100644 --- a/locale/en_US/LC_MESSAGES/messages.po +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -752,6 +752,18 @@ msgstr "Reboot" msgid "Shutdown" msgstr "Shutdown" +msgid "System reboot" +msgstr "System reboot" + +msgid "System shutdown" +msgstr "System shutdown" + +msgid "Reboot now? The system will be temporarily unavailable." +msgstr "Reboot now? The system will be temporarily unavailable." + +msgid "Shutdown now? The system will be unavailable." +msgstr "Shutdown now? The system will be unavailable." + msgid "System Rebooting Now!" msgstr "System Rebooting Now!" diff --git a/templates/system.php b/templates/system.php index 65a3834e..cf390742 100755 --- a/templates/system.php +++ b/templates/system.php @@ -52,3 +52,39 @@ + + + + + + diff --git a/templates/system/basic.php b/templates/system/basic.php index 81adb6d2..182a5bb1 100644 --- a/templates/system/basic.php +++ b/templates/system/basic.php @@ -55,8 +55,8 @@ include('includes/sysstats.php');
- " /> - " /> + " /> + " />