From 5dd7d08390b0c3c5732bc8629258e718cea31dd8 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 20 Aug 2026 01:00:43 +0200 Subject: =?UTF-8?q?les=20t=C3=A9l=C3=A9chargements=20fonctionnent?= 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..c40ee2d --- /dev/null +++ b/download.php @@ -0,0 +1,10 @@ + 'rustdesk.bat', 'deb' => 'rustdesk.sh', 'arch' => 'rustdesk.sh']; +$scripts = ['win' => 'scripts/rustdesk.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; \ No newline at end of file -- cgit v1.2.3