diff options
| author | polo <contact@ordipolo.fr> | 2026-08-20 01:00:43 +0200 |
|---|---|---|
| committer | polo <contact@ordipolo.fr> | 2026-08-20 01:00:43 +0200 |
| commit | 5dd7d08390b0c3c5732bc8629258e718cea31dd8 (patch) | |
| tree | b5bcf7abe97dc26c13a1059c6d25fbd8edd670ed | |
| parent | bfdd14f0ad318be4622c9b07fd30f686f8c523d5 (diff) | |
| download | rustdesk-scripts-5dd7d08390b0c3c5732bc8629258e718cea31dd8.tar.gz rustdesk-scripts-5dd7d08390b0c3c5732bc8629258e718cea31dd8.tar.bz2 rustdesk-scripts-5dd7d08390b0c3c5732bc8629258e718cea31dd8.zip | |
les téléchargements fonctionnent
| -rw-r--r-- | download.php | 10 | ||||
| -rw-r--r-- | index.php | 9 | ||||
| -rwxr-xr-x | scripts/rustdesk-arch.sh | 2 | ||||
| -rw-r--r-- | scripts/rustdesk-deb.sh | 2 | ||||
| -rw-r--r-- | scripts/rustdesk.bat | 4 | ||||
| -rw-r--r-- | template.php | 8 | ||||
| -rw-r--r-- | view.php | 7 |
7 files changed, 26 insertions, 16 deletions
diff --git a/download.php b/download.php new file mode 100644 index 0000000..c40ee2d --- /dev/null +++ b/download.php | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | <?php | ||
| 2 | $file_names = ['win' => 'rustdesk.bat', 'deb' => 'rustdesk.sh', 'arch' => 'rustdesk.sh']; | ||
| 3 | $scripts = ['win' => 'scripts/rustdesk.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; \ No newline at end of file | ||
| @@ -1,2 +1,9 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | require 'view.php'; | 2 | $systems = ['win' => 'Windows', 'deb' => 'Debian, Ubuntu, Linux Mint', 'arch' => 'Archlinux, Manjaro']; |
| 3 | |||
| 4 | $script_links = ''; | ||
| 5 | foreach($systems as $key => $value){ | ||
| 6 | $script_links .= '<p><a href="download.php?os=' . $key . '">' . $value . '</a></p>'; | ||
| 7 | } | ||
| 8 | |||
| 9 | require 'template.php'; | ||
diff --git a/scripts/rustdesk-arch.sh b/scripts/rustdesk-arch.sh index 52f7175..b7446b5 100755 --- a/scripts/rustdesk-arch.sh +++ b/scripts/rustdesk-arch.sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # version archlinux | 2 | # version archlinux |
| 3 | 3 | ||
| 4 | url=https://remote.ordipolo.fr/scripts/rustdesk.tar.zst | 4 | url=https://remote.ordipolo.fr/client/rustdesk.tar.zst |
| 5 | file=/tmp/rustdesk.tar.zst | 5 | file=/tmp/rustdesk.tar.zst |
| 6 | config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye | 6 | config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye |
| 7 | 7 | ||
diff --git a/scripts/rustdesk-deb.sh b/scripts/rustdesk-deb.sh index 1dd29db..0c03baa 100644 --- a/scripts/rustdesk-deb.sh +++ b/scripts/rustdesk-deb.sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # version debian | 2 | # version debian |
| 3 | 3 | ||
| 4 | url=https://remote.ordipolo.fr/scripts/rustdesk.deb | 4 | url=https://remote.ordipolo.fr/client/rustdesk.deb |
| 5 | file=/tmp/rustdesk.deb | 5 | file=/tmp/rustdesk.deb |
| 6 | config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye | 6 | config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye |
| 7 | 7 | ||
diff --git a/scripts/rustdesk.bat b/scripts/rustdesk.bat index e6e6ae4..708c18e 100644 --- a/scripts/rustdesk.bat +++ b/scripts/rustdesk.bat | |||
| @@ -20,10 +20,10 @@ if defined PROCESSOR_ARCHITEW6432 ( | |||
| 20 | set "ARCH=32" | 20 | set "ARCH=32" |
| 21 | ) | 21 | ) |
| 22 | if "%ARCH%"=="64" ( | 22 | if "%ARCH%"=="64" ( |
| 23 | set "URL=https://remote.ordipolo.fr/scripts/rustdesk-x64.msi" | 23 | set "URL=https://remote.ordipolo.fr/client/rustdesk-x64.msi" |
| 24 | set "INSTALLER=C:\Temp\rustdesk.msi" | 24 | set "INSTALLER=C:\Temp\rustdesk.msi" |
| 25 | ) else ( | 25 | ) else ( |
| 26 | set "URL=https://remote.ordipolo.fr/scripts/rustdesk-x86.exe" | 26 | set "URL=https://remote.ordipolo.fr/client/rustdesk-x86.exe" |
| 27 | set "INSTALLER=C:\Temp\rustdesk.exe" | 27 | set "INSTALLER=C:\Temp\rustdesk.exe" |
| 28 | ) | 28 | ) |
| 29 | echo Architecture : %ARCH% bits | 29 | echo Architecture : %ARCH% bits |
diff --git a/template.php b/template.php index a59746f..452b61f 100644 --- a/template.php +++ b/template.php | |||
| @@ -21,10 +21,10 @@ | |||
| 21 | <div> | 21 | <div> |
| 22 | <p>Télécharger le script correspondant à votre système d'exploitation à l'aide d'un des liens ci-dessous.</p> | 22 | <p>Télécharger le script correspondant à votre système d'exploitation à l'aide d'un des liens ci-dessous.</p> |
| 23 | <p>Ce script doit être exécuté en tant qu'administrateur.</p> | 23 | <p>Ce script doit être exécuté en tant qu'administrateur.</p> |
| 24 | <p>Utilisateurs Windows: </p> | 24 | <p>Utilisateurs Windows: votre ordinateur va vous demandé si vous souhaiter faire confiance en ce fichier télécharger.</p> |
| 25 | <p>Utilisateurs Linux, ce script doit être exécutable:</p> | 25 | <pre>Si vous ne connaissez pas votre interlocuteur au téléphone, arrêtez tout et raccrochez!</pre> |
| 26 | <pre>sudo chmod +r script.sh</pre> | 26 | <p>Utilisateurs Linux, vous devez rendre ce script exécutable. Ouvrez le terminal dans le dossiers "Téléchargements", et utilisez cette commande:</p> |
| 27 | 27 | <pre>sudo sh rustdesk.sh</pre> | |
| 28 | </div> | 28 | </div> |
| 29 | </section> | 29 | </section> |
| 30 | <h1>Liens de téléchargement</h1> | 30 | <h1>Liens de téléchargement</h1> |
diff --git a/view.php b/view.php deleted file mode 100644 index 9134e59..0000000 --- a/view.php +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | $systems = ['win' => 'Windows', 'deb' => 'Debian, Ubuntu, Linux Mint', 'arch' => 'Archlinux, Manjaro']; | ||
| 3 | $script_links = ''; | ||
| 4 | foreach($systems as $key => $value){ | ||
| 5 | $script_links .= '<p><a href="script-dl.php?os=' . $key . '">' . $value . '</a></p>'; | ||
| 6 | } | ||
| 7 | require 'template.php'; | ||
