File manager - Edit - /home/webapp69.cm.in.th/u69319090041/Shop41/public/ajax/theme.php
Back
<?php require_once __DIR__ . '/../../config/config.php'; header('Content-Type: application/json'); $theme = $_POST['theme'] ?? 'light'; if (in_array($theme, ['light', 'dark'])) { $_SESSION['theme'] = $theme; setcookie('shop_theme', $theme, time() + (86400 * 30), "/"); echo json_encode(['success' => true]); } else { echo json_encode(['success' => false]); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings