chore: initial commit

This commit is contained in:
2026-06-13 00:11:05 +01:00
commit 2742a3baac
10 changed files with 277 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
function wakeOnLan($macAddress) {
$output = shell_exec("wakeonlan " . escapeshellarg($macAddress));
if ($output === null) {
return "Failed to send Magic Packet.";
}
return true;
return true;
}
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$macAddress = $_POST['target'];
$result = wakeOnLan($macAddress);
if ($result === true) {
$message = "Magic Packet sent successfully!";
} else {
$message = $result;
}
}