exit; } else { if (isset($_GET['deactivate_notification'])) { if (isset($_GET['event']) && $_GET['event']) { EfrontNotification::deactivateEventNotification($_GET['deactivate_notification']); } else { $notification = new EfrontNotification($_GET['deactivate_notification']); $notification->deactivate(); } exit; } } try { if (isset($_GET['delete_notification'])) { if (isset($_GET['event'])) { EfrontNotification::deleteEventNotification($_GET['delete_notification']); } else { $notification = new EfrontNotification($_GET['delete_notification']); $notification->delete(); } if ($_GET['ajax']) { echo json_encode(array('status' => 1)); exit; } else { eF_redirect(basename($_SERVER['PHP_SELF']) . "?ctg=digests&message=" . urlencode(_NOTIFICATIONDELETEDSUCCESSFULLY) . "&message_type=success"); } } if (isset($_GET['delete_all_notifications'])) { eF_deleteTableData("notifications"); echo json_encode(array('status' => 1)); exit;