change name
This commit is contained in:
@@ -5,7 +5,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
// Zkontrolovat, zda je klíč sliderValue v datech
|
// Zkontrolovat, zda je klíč sliderValue v datech
|
||||||
if (isset($data['sliderValue'])) {
|
if (isset($data['sliderValue'])) {
|
||||||
// Uložit hodnotu posuvníku na serveru
|
// Uložit hodnotu posuvníku na serveru
|
||||||
$filePath = 'adf/sliderValue.json';
|
$filePath = 'sliderValue.json';
|
||||||
file_put_contents($filePath, json_encode(['sliderValue' => $data['sliderValue']]));
|
file_put_contents($filePath, json_encode(['sliderValue' => $data['sliderValue']]));
|
||||||
|
|
||||||
echo json_encode(['success' => true]);
|
echo json_encode(['success' => true]);
|
||||||
@@ -14,7 +14,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
}
|
}
|
||||||
} elseif ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
} elseif ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||||
// Kontrola existence souboru
|
// Kontrola existence souboru
|
||||||
$filePath = 'adf/sliderValue.json';
|
$filePath = 'sliderValue.json';
|
||||||
if (file_exists($filePath)) {
|
if (file_exists($filePath)) {
|
||||||
// Načtení obsahu souboru
|
// Načtení obsahu souboru
|
||||||
$fileContent = file_get_contents($filePath);
|
$fileContent = file_get_contents($filePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user