mirror of
https://github.com/unraid/webgui.git
synced 2026-05-05 01:09:25 -05:00
Unrestricted system reboot/shutdown and replace "I want this" text for popup message
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?PHP
|
||||
/* Copyright 2005-2016, Lime Technology
|
||||
* Copyright 2012-2016, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
switch ($_POST['cmd']) {
|
||||
case 'reboot' : exec('/sbin/reboot'); break;
|
||||
case 'shutdown': exec('/sbin/poweroff'); break;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user