From 2e77a552dcccd05be5d7e03673ca7e5b80c97676 Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 16 Nov 2026 13:44:19 +0100 Subject: =?UTF-8?q?nouveau=20d=C3=A9p=C3=B4t=20sans=20les=20clients,=20lan?= =?UTF-8?q?cer=20curl.php=20apr=C3=A8s=20clonage=20du=20d=C3=A9p=C3=B4t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download.php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 download.php (limited to 'download.php') diff --git a/download.php b/download.php new file mode 100644 index 0000000..94ec6fd --- /dev/null +++ b/download.php @@ -0,0 +1,10 @@ + 'rustdesk.bat', 'win_uninstall' => 'rustdesk-uninstall.bat', 'deb' => 'rustdesk.sh', 'arch' => 'rustdesk.sh']; +$scripts = ['win' => 'scripts/rustdesk.bat', 'win_uninstall' => 'scripts/rustdesk-uninstall.bat', 'deb' => 'scripts/rustdesk-deb.sh', 'arch' => 'scripts/rustdesk-arch.sh']; + +header("Content-Type: application/octet-stream"); +header('Content-Disposition: attachment; filename="' . $file_names[$_GET['os']] . '"'); +header('Content-Length: ' . filesize($scripts[$_GET['os']])); + +readfile($scripts[$_GET['os']]); +exit; -- cgit v1.2.3