<?php
session_start();
include 'koneksi.php';
if(!isset($_SESSION['admin'])){ echo json_encode(['success'=>false]); exit(); }
mysqli_query($koneksi, "UPDATE notifications SET is_read = 1");
echo json_encode(['success' => true]);
?>