diff --git a/adf/saveData.php b/adf/saveData.php index b83e6e6..51cc4ec 100644 --- a/adf/saveData.php +++ b/adf/saveData.php @@ -5,7 +5,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Zkontrolovat, zda je klíč sliderValue v datech if (isset($data['sliderValue'])) { // Uložit hodnotu posuvníku na serveru - $filePath = 'adf/sliderValue.json'; + $filePath = 'sliderValue.json'; file_put_contents($filePath, json_encode(['sliderValue' => $data['sliderValue']])); echo json_encode(['success' => true]); @@ -14,7 +14,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } } elseif ($_SERVER['REQUEST_METHOD'] === 'GET') { // Kontrola existence souboru - $filePath = 'adf/sliderValue.json'; + $filePath = 'sliderValue.json'; if (file_exists($filePath)) { // Načtení obsahu souboru $fileContent = file_get_contents($filePath);