Beispiel #1
0
}
if (isset($_GET['activate_notification'])) {
    if (isset($_GET['event']) && $_GET['event']) {
        EfrontNotification::activateEventNotification($_GET['activate_notification']);
    } else {
        $notification = new EfrontNotification($_GET['activate_notification']);
        $notification->activate();
    }
    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;