load(); $errors = []; $notice = null; if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (!hash_equals($_SESSION['csrf'], $_POST['csrf'] ?? '')) { $errors[] = 'Invalid CSRF token.'; } else { [$saved, $errs] = $settings->save($_POST, $_FILES); $current = $saved; $errors = $errs; if (!$errors) $notice = 'Settings updated successfully.'; } } ?> Settings ยท Admin

Site Settings

#
Logo preview
Hero preview

This updates the database. If settings.php exists, it is merged as fallback.