Unrestricted system reboot/shutdown and replace "I want this" text for popup message

This commit is contained in:
bergware
2016-10-09 11:20:15 +02:00
parent e97aefdd79
commit e64bdd59be
2 changed files with 65 additions and 57 deletions
+18
View File
@@ -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;
}
?>