diff options
| author | polo <ordipolo@gmx.fr> | 2026-08-18 22:07:51 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-08-18 22:07:51 +0200 |
| commit | bfdd14f0ad318be4622c9b07fd30f686f8c523d5 (patch) | |
| tree | db19ed2e43b14643a167315d77115d661317c55a | |
| download | rustdesk-scripts-bfdd14f0ad318be4622c9b07fd30f686f8c523d5.tar.gz rustdesk-scripts-bfdd14f0ad318be4622c9b07fd30f686f8c523d5.tar.bz2 rustdesk-scripts-bfdd14f0ad318be4622c9b07fd30f686f8c523d5.zip | |
first commit
| -rw-r--r-- | assets/favicon.png | bin | 0 -> 928 bytes | |||
| -rw-r--r-- | assets/logo.png | bin | 0 -> 81428 bytes | |||
| -rw-r--r-- | assets/ordipolo.png | bin | 0 -> 57420 bytes | |||
| -rw-r--r-- | client/rustdesk-x64.msi | bin | 0 -> 24825856 bytes | |||
| -rw-r--r-- | client/rustdesk-x86.exe | bin | 0 -> 11951472 bytes | |||
| -rw-r--r-- | client/rustdesk.deb | bin | 0 -> 23375776 bytes | |||
| -rw-r--r-- | client/rustdesk.tar.zst | bin | 0 -> 25258736 bytes | |||
| -rw-r--r-- | index.php | 2 | ||||
| -rw-r--r-- | main.css | 258 | ||||
| -rw-r--r-- | matomo.php | 25 | ||||
| -rw-r--r-- | rustdesk.txt | 4 | ||||
| -rwxr-xr-x | scripts/rustdesk-arch.sh | 15 | ||||
| -rw-r--r-- | scripts/rustdesk-deb.sh | 35 | ||||
| -rw-r--r-- | scripts/rustdesk.bat | 101 | ||||
| -rw-r--r-- | template.php | 36 | ||||
| -rw-r--r-- | view.php | 7 |
16 files changed, 483 insertions, 0 deletions
diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 0000000..09300a5 --- /dev/null +++ b/assets/favicon.png | |||
| Binary files differ | |||
diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..2976a9c --- /dev/null +++ b/assets/logo.png | |||
| Binary files differ | |||
diff --git a/assets/ordipolo.png b/assets/ordipolo.png new file mode 100644 index 0000000..03cdd07 --- /dev/null +++ b/assets/ordipolo.png | |||
| Binary files differ | |||
diff --git a/client/rustdesk-x64.msi b/client/rustdesk-x64.msi new file mode 100644 index 0000000..99a0870 --- /dev/null +++ b/client/rustdesk-x64.msi | |||
| Binary files differ | |||
diff --git a/client/rustdesk-x86.exe b/client/rustdesk-x86.exe new file mode 100644 index 0000000..cfd5157 --- /dev/null +++ b/client/rustdesk-x86.exe | |||
| Binary files differ | |||
diff --git a/client/rustdesk.deb b/client/rustdesk.deb new file mode 100644 index 0000000..7643fdb --- /dev/null +++ b/client/rustdesk.deb | |||
| Binary files differ | |||
diff --git a/client/rustdesk.tar.zst b/client/rustdesk.tar.zst new file mode 100644 index 0000000..cf7ce34 --- /dev/null +++ b/client/rustdesk.tar.zst | |||
| Binary files differ | |||
diff --git a/index.php b/index.php new file mode 100644 index 0000000..012c692 --- /dev/null +++ b/index.php | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | <?php | ||
| 2 | require 'view.php'; | ||
diff --git a/main.css b/main.css new file mode 100644 index 0000000..27e3f80 --- /dev/null +++ b/main.css | |||
| @@ -0,0 +1,258 @@ | |||
| 1 | body | ||
| 2 | { | ||
| 3 | font-size: 100%; | ||
| 4 | font-family: sans; | ||
| 5 | /* pour enlever la bande de la couleur du fond en haut et en bas de la page */ | ||
| 6 | margin: 0; | ||
| 7 | background-color: #F0EC41; | ||
| 8 | } | ||
| 9 | |||
| 10 | #bloc_page | ||
| 11 | { | ||
| 12 | max-width: 1200px; | ||
| 13 | /* la largeur max indiquée sert à réduire la variété des largeurs d'écran à prendre en compte */ | ||
| 14 | margin: auto; | ||
| 15 | padding: 0 20px 30px 20px; | ||
| 16 | background-color: white; | ||
| 17 | } | ||
| 18 | |||
| 19 | h1 | ||
| 20 | { | ||
| 21 | font-weight: normal; | ||
| 22 | display: inline-block; | ||
| 23 | margin: 5px; | ||
| 24 | border: 2px #008100 solid; | ||
| 25 | border-radius: 12px; | ||
| 26 | padding: 3px; | ||
| 27 | background-color: #F4F02D; | ||
| 28 | font-size: 120%; | ||
| 29 | } | ||
| 30 | |||
| 31 | h2 | ||
| 32 | { | ||
| 33 | font-weight: normal; | ||
| 34 | font-size: 110%; | ||
| 35 | text-decoration: underline; | ||
| 36 | } | ||
| 37 | |||
| 38 | p | ||
| 39 | { | ||
| 40 | margin: 10px; | ||
| 41 | } | ||
| 42 | |||
| 43 | a | ||
| 44 | { | ||
| 45 | color: black; | ||
| 46 | /* les liens déjà cliqués restent noirs */ | ||
| 47 | } | ||
| 48 | |||
| 49 | a:hover /* liens survolés par la souris */ | ||
| 50 | { | ||
| 51 | color: #004F00; | ||
| 52 | } | ||
| 53 | |||
| 54 | .lien:hover | ||
| 55 | { | ||
| 56 | font-weight: bold; | ||
| 57 | } | ||
| 58 | |||
| 59 | /* En-tête. */ | ||
| 60 | header | ||
| 61 | { | ||
| 62 | background-color: white; | ||
| 63 | display: flex; | ||
| 64 | flex-direction: column; | ||
| 65 | align-items: center; | ||
| 66 | margin-bottom: 20px; | ||
| 67 | } | ||
| 68 | |||
| 69 | header div, header p | ||
| 70 | { | ||
| 71 | margin-top: 5px; | ||
| 72 | } | ||
| 73 | |||
| 74 | #logohaut | ||
| 75 | { | ||
| 76 | width: 200px; | ||
| 77 | |||
| 78 | /* cacher petit logo */ | ||
| 79 | display: none; | ||
| 80 | } | ||
| 81 | |||
| 82 | #logotitre | ||
| 83 | { | ||
| 84 | height: 90px; | ||
| 85 | } | ||
| 86 | |||
| 87 | /* Menu de navigation. */ | ||
| 88 | nav | ||
| 89 | { | ||
| 90 | position: fixed; | ||
| 91 | z-index: 2; /* pour être dessus des prestations */ | ||
| 92 | text-align: center; | ||
| 93 | } | ||
| 94 | |||
| 95 | nav a | ||
| 96 | { | ||
| 97 | display: inline-block; /* menu horizontal */ | ||
| 98 | border: 2px #008100 solid; | ||
| 99 | border-radius: 12px; | ||
| 100 | padding: 3px; | ||
| 101 | margin: 2px; | ||
| 102 | background-color: #F4F02D; | ||
| 103 | font-size: 110%; | ||
| 104 | text-decoration: none; | ||
| 105 | } | ||
| 106 | |||
| 107 | /* "vous êtes ici" */ | ||
| 108 | #actuelle | ||
| 109 | { | ||
| 110 | color: #004F00; | ||
| 111 | border: 3px #004F00 solid; | ||
| 112 | } | ||
| 113 | |||
| 114 | /* Corps de page. */ | ||
| 115 | article | ||
| 116 | { | ||
| 117 | margin-left: 20px; | ||
| 118 | } | ||
| 119 | |||
| 120 | #description | ||
| 121 | { | ||
| 122 | margin: 0; | ||
| 123 | font-size: 110%; | ||
| 124 | } | ||
| 125 | |||
| 126 | .photo | ||
| 127 | { | ||
| 128 | border: 2px #008100 solid; | ||
| 129 | border-radius: 10px; | ||
| 130 | } | ||
| 131 | |||
| 132 | h3 | ||
| 133 | { | ||
| 134 | margin: 10px; | ||
| 135 | border: 2px #008100 solid; | ||
| 136 | border-radius: 12px; | ||
| 137 | padding: 3px; | ||
| 138 | text-align: center; | ||
| 139 | font-size: 100%; | ||
| 140 | background-color: white; | ||
| 141 | } | ||
| 142 | |||
| 143 | h3 a | ||
| 144 | { | ||
| 145 | text-decoration: none; | ||
| 146 | } | ||
| 147 | |||
| 148 | table | ||
| 149 | { | ||
| 150 | margin: 10px; | ||
| 151 | max-width: 470px; | ||
| 152 | /* fusionner les bordures */ | ||
| 153 | border-collapse: collapse; | ||
| 154 | } | ||
| 155 | |||
| 156 | caption span | ||
| 157 | { | ||
| 158 | font-size: 110%; | ||
| 159 | text-decoration: underline; | ||
| 160 | } | ||
| 161 | |||
| 162 | caption i | ||
| 163 | { | ||
| 164 | font-size: 90%; | ||
| 165 | } | ||
| 166 | |||
| 167 | td | ||
| 168 | { | ||
| 169 | |||
| 170 | border: 1px black solid; | ||
| 171 | } | ||
| 172 | |||
| 173 | pre | ||
| 174 | { | ||
| 175 | font-family: sans-serif; | ||
| 176 | font-size: 90%; | ||
| 177 | white-space: pre-wrap; | ||
| 178 | margin: 0 10px 10px 10px; | ||
| 179 | padding: 4px; | ||
| 180 | background-color: #f0f0f0; | ||
| 181 | } | ||
| 182 | |||
| 183 | a img | ||
| 184 | { | ||
| 185 | border: none; | ||
| 186 | /* retire la bordure bleue sur certains navigateurs */ | ||
| 187 | } | ||
| 188 | |||
| 189 | .parties | ||
| 190 | { | ||
| 191 | margin: 10px 0 15px 0; | ||
| 192 | } | ||
| 193 | |||
| 194 | textarea | ||
| 195 | { | ||
| 196 | width: 500px; | ||
| 197 | height: 200px; | ||
| 198 | } | ||
| 199 | |||
| 200 | /* lien fixe en bas */ | ||
| 201 | footer | ||
| 202 | { | ||
| 203 | display: flex; | ||
| 204 | flex-direction: column; | ||
| 205 | align-items: center; | ||
| 206 | } | ||
| 207 | |||
| 208 | footer h1 | ||
| 209 | { | ||
| 210 | position: fixed; | ||
| 211 | bottom: 0; | ||
| 212 | margin: 2px; /* de 5 par défaut */ | ||
| 213 | text-align: center; | ||
| 214 | } | ||
| 215 | footer a | ||
| 216 | { | ||
| 217 | text-decoration: none; | ||
| 218 | } | ||
| 219 | |||
| 220 | /* design responsive */ | ||
| 221 | @media screen and (max-width: 710px) | ||
| 222 | { | ||
| 223 | nav a | ||
| 224 | { | ||
| 225 | font-size: 100%; | ||
| 226 | } | ||
| 227 | |||
| 228 | h1 | ||
| 229 | { | ||
| 230 | font-size: 110%; | ||
| 231 | } | ||
| 232 | |||
| 233 | textarea | ||
| 234 | { | ||
| 235 | width: 400px; | ||
| 236 | height: 150px; | ||
| 237 | } | ||
| 238 | } | ||
| 239 | |||
| 240 | @media screen and (max-width: 500px) | ||
| 241 | { | ||
| 242 | #logohaut | ||
| 243 | { | ||
| 244 | /* afficher petit logo */ | ||
| 245 | display: inline; | ||
| 246 | } | ||
| 247 | #logotitre | ||
| 248 | { | ||
| 249 | /* cacher grand logo */ | ||
| 250 | display: none; | ||
| 251 | } | ||
| 252 | |||
| 253 | textarea | ||
| 254 | { | ||
| 255 | width: 270px; | ||
| 256 | height: 100px; | ||
| 257 | } | ||
| 258 | } | ||
diff --git a/matomo.php b/matomo.php new file mode 100644 index 0000000..238ae62 --- /dev/null +++ b/matomo.php | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | <?php | ||
| 2 | $cookies = 'remote.ordipolo.fr'; | ||
| 3 | $domain = 'remote.ordipolo.fr'; | ||
| 4 | $server = 'matomo.ordipolo.fr'; | ||
| 5 | ?> | ||
| 6 | |||
| 7 | <!-- Matomo --> | ||
| 8 | <script> | ||
| 9 | var _paq = window._paq = window._paq || []; | ||
| 10 | /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | ||
| 11 | _paq.push(["setCookieDomain", "*.<?= $cookies ?>"]); | ||
| 12 | _paq.push(["setDomains", ["*.<?= $domain ?>"]]); | ||
| 13 | _paq.push(["disableCookies"]); | ||
| 14 | _paq.push(['trackPageView']); | ||
| 15 | _paq.push(['enableLinkTracking']); | ||
| 16 | (function() { | ||
| 17 | var u="//<?= $server ?>/"; | ||
| 18 | _paq.push(['setTrackerUrl', u+'matomo.php']); | ||
| 19 | _paq.push(['setSiteId', '1']); | ||
| 20 | var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
| 21 | g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
| 22 | })(); | ||
| 23 | </script> | ||
| 24 | <noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//<?= $server ?>/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript> | ||
| 25 | <!-- End Matomo Code --> | ||
diff --git a/rustdesk.txt b/rustdesk.txt new file mode 100644 index 0000000..06b2a1b --- /dev/null +++ b/rustdesk.txt | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | remote.ordipolo.fr | ||
| 2 | R7CHxukdXNeeuV0A5r9n6lDVoIFTvdc050JFtucO7UM= | ||
| 3 | |||
| 4 | rustdesk.msi --config 9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye | ||
diff --git a/scripts/rustdesk-arch.sh b/scripts/rustdesk-arch.sh new file mode 100755 index 0000000..52f7175 --- /dev/null +++ b/scripts/rustdesk-arch.sh | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # version archlinux | ||
| 3 | |||
| 4 | url=https://remote.ordipolo.fr/scripts/rustdesk.tar.zst | ||
| 5 | file=/tmp/rustdesk.tar.zst | ||
| 6 | config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye | ||
| 7 | |||
| 8 | if [ ! -f $file ]; then | ||
| 9 | wget -O $file $url || exit 1 | ||
| 10 | fi | ||
| 11 | |||
| 12 | sudo pacman -U $file --noconfirm || exit 1 | ||
| 13 | sudo rustdesk --config $config || exit 1 | ||
| 14 | |||
| 15 | rustdesk & | ||
diff --git a/scripts/rustdesk-deb.sh b/scripts/rustdesk-deb.sh new file mode 100644 index 0000000..1dd29db --- /dev/null +++ b/scripts/rustdesk-deb.sh | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # version debian | ||
| 3 | |||
| 4 | url=https://remote.ordipolo.fr/scripts/rustdesk.deb | ||
| 5 | file=/tmp/rustdesk.deb | ||
| 6 | config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye | ||
| 7 | |||
| 8 | |||
| 9 | if [ ! -f $file ]; then | ||
| 10 | wget -O $file $url || exit 1 | ||
| 11 | fi | ||
| 12 | |||
| 13 | |||
| 14 | new_version=$(dpkg-deb -f "$file" Version) | ||
| 15 | installed_version=$(dpkg-query -W -f='${Version}' rustdesk 2>/dev/null || true) | ||
| 16 | echo "Version installée : ${installed_version:-aucune}" | ||
| 17 | echo "Version disponible : $new_version" | ||
| 18 | |||
| 19 | if [ -z "$installed_version" ]; then | ||
| 20 | echo "RustDesk n'est pas installé. Installation..." | ||
| 21 | sudo apt install -y "$file" | ||
| 22 | elif dpkg --compare-versions "$new_version" gt "$installed_version"; then | ||
| 23 | echo "Nouvelle version détectée. Mise à jour..." | ||
| 24 | sudo apt install -y "$file" | ||
| 25 | else | ||
| 26 | echo "RustDesk est déjà à jour." | ||
| 27 | fi | ||
| 28 | |||
| 29 | |||
| 30 | sudo rustdesk --config $config | ||
| 31 | mkdir -p ~/.config/rustdesk | ||
| 32 | sudo cp /root/.config/rustdesk/RustDesk2.toml "$HOME/.config/rustdesk/RustDesk2.toml" | ||
| 33 | sudo chown "$USER:$USER" "$HOME/.config/rustdesk/RustDesk2.toml" | ||
| 34 | |||
| 35 | rustdesk & | ||
diff --git a/scripts/rustdesk.bat b/scripts/rustdesk.bat new file mode 100644 index 0000000..e6e6ae4 --- /dev/null +++ b/scripts/rustdesk.bat | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | rem version windows | ||
| 2 | |||
| 3 | @echo off | ||
| 4 | setlocal | ||
| 5 | |||
| 6 | net session >nul 2>&1 | ||
| 7 | if %errorlevel% neq 0 ( | ||
| 8 | echo les droits administrateur sont necessaires | ||
| 9 | powershell -Command "Start-Process '%~f0' -Verb RunAs" | ||
| 10 | exit /b | ||
| 11 | ) | ||
| 12 | |||
| 13 | set config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye | ||
| 14 | |||
| 15 | if defined PROCESSOR_ARCHITEW6432 ( | ||
| 16 | set "ARCH=64" | ||
| 17 | ) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( | ||
| 18 | set "ARCH=64" | ||
| 19 | ) else ( | ||
| 20 | set "ARCH=32" | ||
| 21 | ) | ||
| 22 | if "%ARCH%"=="64" ( | ||
| 23 | set "URL=https://remote.ordipolo.fr/scripts/rustdesk-x64.msi" | ||
| 24 | set "INSTALLER=C:\Temp\rustdesk.msi" | ||
| 25 | ) else ( | ||
| 26 | set "URL=https://remote.ordipolo.fr/scripts/rustdesk-x86.exe" | ||
| 27 | set "INSTALLER=C:\Temp\rustdesk.exe" | ||
| 28 | ) | ||
| 29 | echo Architecture : %ARCH% bits | ||
| 30 | echo URL : %URL% | ||
| 31 | echo Installateur : %INSTALLER% | ||
| 32 | |||
| 33 | if not exist "C:\Temp" mkdir "C:\Temp" | ||
| 34 | |||
| 35 | if exist "C:\Program Files\RustDesk\rustdesk.exe" ( | ||
| 36 | echo RustDesk est deja installe | ||
| 37 | "C:\Program Files\RustDesk\rustdesk.exe" --config "%config%" | ||
| 38 | timeout /t 2 /nobreak >nul | ||
| 39 | start "" "C:\Program Files\RustDesk\rustdesk.exe" | ||
| 40 | exit /b | ||
| 41 | ) | ||
| 42 | |||
| 43 | |||
| 44 | @where curl.exe >nul 2>&1 | ||
| 45 | |||
| 46 | @if %errorlevel%==0 ( | ||
| 47 | echo Telechargement de RustDesk via cURL | ||
| 48 | curl.exe -fL -z "%INSTALLER%" -o "%INSTALLER%" "%URL%" || exit /b 1 | ||
| 49 | |||
| 50 | ) else ( | ||
| 51 | if not exist "%INSTALLER%" ( | ||
| 52 | echo Telechargement de RustDesk via PowerShell | ||
| 53 | powershell -NoProfile -ExecutionPolicy Bypass -Command ^ | ||
| 54 | "$web_client = New-Object Net.WebClient; $web_client.DownloadFile('%URL%', '%INSTALLER%')" ^ | ||
| 55 | || exit /b 1 | ||
| 56 | ) else ( | ||
| 57 | echo RustDesk deja telecharge | ||
| 58 | ) | ||
| 59 | ) | ||
| 60 | |||
| 61 | |||
| 62 | echo Installation de RustDesk | ||
| 63 | if "%ARCH%"=="64" ( | ||
| 64 | msiexec /i "%INSTALLER%" /qn INSTALLPRINTER=N | ||
| 65 | goto INSTALL_OK | ||
| 66 | ) | ||
| 67 | |||
| 68 | rem évite de mettre :WAIT_INSTALL dans un bloc if, else, etc | ||
| 69 | start "" /wait "%INSTALLER%" --silent-install | ||
| 70 | if errorlevel 1 ( | ||
| 71 | echo "erreur de l'installation de RustDesk" | ||
| 72 | exit /b 1 | ||
| 73 | ) | ||
| 74 | |||
| 75 | rem parce que start "" /wait peut ne pas avoir le comportement attendu | ||
| 76 | set /a COUNT=0 | ||
| 77 | :WAIT_INSTALL | ||
| 78 | if exist "C:\Program Files\RustDesk\rustdesk.exe" ( | ||
| 79 | echo installation terminee | ||
| 80 | goto INSTALL_OK | ||
| 81 | ) | ||
| 82 | set /a COUNT+=1 | ||
| 83 | if %COUNT% GEQ 60 ( | ||
| 84 | echo erreur installation non reussie apres 60s | ||
| 85 | exit /b 1 | ||
| 86 | ) | ||
| 87 | timeout /t 1 /nobreak >nul | ||
| 88 | goto WAIT_INSTALL | ||
| 89 | |||
| 90 | :INSTALL_OK | ||
| 91 | |||
| 92 | |||
| 93 | echo Installation du service | ||
| 94 | "C:\Program Files\RustDesk\rustdesk.exe" --install-service | ||
| 95 | timeout /t 3 /nobreak >nul | ||
| 96 | |||
| 97 | echo Application de la configuration | ||
| 98 | "C:\Program Files\RustDesk\rustdesk.exe" --config "%config%" | ||
| 99 | timeout /t 2 /nobreak >nul | ||
| 100 | |||
| 101 | start "" "C:\Program Files\RustDesk\rustdesk.exe" | ||
diff --git a/template.php b/template.php new file mode 100644 index 0000000..a59746f --- /dev/null +++ b/template.php | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | <!DOCTYPE html> | ||
| 2 | <html lang="fr"> | ||
| 3 | <head> | ||
| 4 | <meta charset="utf-8"> | ||
| 5 | <title>ORDIPOLO rustdesk scripts</title> | ||
| 6 | <link rel="icon" type="image/png" href="assets/favicon.png"> | ||
| 7 | <link rel="stylesheet" href="main.css"> | ||
| 8 | <meta name="viewport" content="width=device-width"> | ||
| 9 | <?php include("matomo.php"); ?> | ||
| 10 | </head> | ||
| 11 | <body> | ||
| 12 | <div id="bloc_page"> | ||
| 13 | <header> | ||
| 14 | <div> | ||
| 15 | <img id="logohaut" src="assets/logo.png" alt="ordipolo dépannage informatique Quimper"> | ||
| 16 | <img id="logotitre" src="assets/ordipolo.png" alt="ordipolo dépannage informatique Quimper"> | ||
| 17 | </div> | ||
| 18 | </header> | ||
| 19 | <h1>Scripts d'installation de Rustdesk</h1> | ||
| 20 | <section> | ||
| 21 | <div> | ||
| 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> | ||
| 24 | <p>Utilisateurs Windows: </p> | ||
| 25 | <p>Utilisateurs Linux, ce script doit être exécutable:</p> | ||
| 26 | <pre>sudo chmod +r script.sh</pre> | ||
| 27 | |||
| 28 | </div> | ||
| 29 | </section> | ||
| 30 | <h1>Liens de téléchargement</h1> | ||
| 31 | <section> | ||
| 32 | <?= $script_links ?> | ||
| 33 | </section> | ||
| 34 | </div> | ||
| 35 | </body> | ||
| 36 | </html> | ||
diff --git a/view.php b/view.php new file mode 100644 index 0000000..9134e59 --- /dev/null +++ b/view.php | |||
| @@ -0,0 +1,7 @@ | |||
| 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'; | ||
