summaryrefslogtreecommitdiff
path: root/download.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-11-16 13:44:19 +0100
committerpolo <ordipolo@gmx.fr>2026-11-16 13:44:19 +0100
commit2e77a552dcccd05be5d7e03673ca7e5b80c97676 (patch)
tree954a3532fece0b8b107ce451d6f03d81beaf5319 /download.php
downloadrustdesk-scripts-2e77a552dcccd05be5d7e03673ca7e5b80c97676.tar.gz
rustdesk-scripts-2e77a552dcccd05be5d7e03673ca7e5b80c97676.tar.bz2
rustdesk-scripts-2e77a552dcccd05be5d7e03673ca7e5b80c97676.zip
nouveau dépôt sans les clients, lancer curl.php après clonage du dépôt
Diffstat (limited to 'download.php')
-rw-r--r--download.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/download.php b/download.php
new file mode 100644
index 0000000..94ec6fd
--- /dev/null
+++ b/download.php
@@ -0,0 +1,10 @@
1<?php
2$file_names = ['win' => 'rustdesk.bat', 'win_uninstall' => 'rustdesk-uninstall.bat', 'deb' => 'rustdesk.sh', 'arch' => 'rustdesk.sh'];
3$scripts = ['win' => 'scripts/rustdesk.bat', 'win_uninstall' => 'scripts/rustdesk-uninstall.bat', 'deb' => 'scripts/rustdesk-deb.sh', 'arch' => 'scripts/rustdesk-arch.sh'];
4
5header("Content-Type: application/octet-stream");
6header('Content-Disposition: attachment; filename="' . $file_names[$_GET['os']] . '"');
7header('Content-Length: ' . filesize($scripts[$_GET['os']]));
8
9readfile($scripts[$_GET['os']]);
10exit;