| Server IP : 193.86.120.172 / Your IP : 216.73.216.215 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /volume1/web/jservices_cz/ |
Upload File : |
<?php
declare(strict_types=1);
require_once __DIR__ . '/config.php';
vyzaduj_prihlaseni();
$soubor = basename((string) ($_GET['soubor'] ?? ''));
$plnaCesta = '/volume1/web/_ADMIN/auto_backup/J Services/' . $soubor;
// Bezpečnostní kontroly
if ($soubor === '' || !preg_match('/^jservices-[\d_]+\.zip$/', $soubor)) {
http_response_code(400);
die('Neplatný název souboru.');
}
if (!file_exists($plnaCesta)) {
http_response_code(404);
die('Soubor nenalezen.');
}
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename="' . $soubor . '"');
header('Content-Length: ' . filesize($plnaCesta));
header('Cache-Control: no-cache');
readfile($plnaCesta);
exit;