From 27260edaaaee1ff7e80ce6f25b76ff8a3cbdb354 Mon Sep 17 00:00:00 2001 From: fencl Date: Tue, 2 Jan 2024 13:08:53 +0100 Subject: [PATCH] change name --- adf/saveData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);