Initial Commit

This commit is contained in:
2025-06-05 08:52:31 +02:00
parent 6451705773
commit 3920faf465
30 changed files with 2936 additions and 0 deletions

22
server_command.php Normal file
View File

@ -0,0 +1,22 @@
<?php
if (!isset($_GET['action'])) {
http_response_code(400);
echo "No action given";
exit;
}
$action = $_GET['action'];
switch ($action) {
case 'shutdown':
shell_exec('shutdown now');
echo "Shutting down...";
break;
case 'reboot':
shell_exec('reboot');
echo "Rebooting...";
break;
default:
http_response_code(400);
echo "Unknown action";
}
?>