diff options
| author | polo <ordipolo@gmx.fr> | 2026-11-16 13:44:19 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-11-16 13:44:19 +0100 |
| commit | 2e77a552dcccd05be5d7e03673ca7e5b80c97676 (patch) | |
| tree | 954a3532fece0b8b107ce451d6f03d81beaf5319 /download.php | |
| download | rustdesk-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.php | 10 |
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 | |||
| 5 | header("Content-Type: application/octet-stream"); | ||
| 6 | header('Content-Disposition: attachment; filename="' . $file_names[$_GET['os']] . '"'); | ||
| 7 | header('Content-Length: ' . filesize($scripts[$_GET['os']])); | ||
| 8 | |||
| 9 | readfile($scripts[$_GET['os']]); | ||
| 10 | exit; | ||
