Preferenze notifiche
Scegli quali email vuoi ricevere da SmartTRF.
Preferenze salvate.
getConnection(); $userId = (int)($iduserlogin ?? 0); // Carica le preferenze correnti dell'utente $prefs = ['notify_export_email' => 1]; if ($userId > 0) { $s = $pdo->prepare("SELECT notify_export_email FROM auth_users WHERE id = ? LIMIT 1"); $s->execute([$userId]); $row = $s->fetch(PDO::FETCH_ASSOC); if ($row) { $prefs['notify_export_email'] = (int)($row['notify_export_email'] ?? 1); } } // Flash message post-save (via querystring) $saved = isset($_GET['saved']) && $_GET['saved'] === '1'; ?>