fof_db_mark_feed_read(fof_current_user(), $_POST['feed']);
    } else {
        if (!empty($_POST['mark_read'])) {
            fof_db_mark_read(fof_current_user(), array($_POST['mark_read']));
        } else {
            if (!empty($_POST['fold'])) {
                fof_db_fold(fof_current_user(), array($_POST['fold']));
            } else {
                if (!empty($_POST['unfold'])) {
                    fof_db_unfold(fof_current_user(), array($_POST['unfold']));
                } else {
                    if (!empty($_POST['tag_read'])) {
                        fof_db_mark_tag_read(fof_current_user(), $_POST['tag_read']);
                    } else {
                        if (!empty($items) && !empty($_POST['action'])) {
                            if ($_POST['action'] == 'read') {
                                fof_db_mark_read(fof_current_user(), $items);
                            }
                            if ($_POST['action'] == 'unread') {
                                fof_db_mark_unread(fof_current_user(), $items);
                            }
                        }
                        if (!empty($_POST['return'])) {
                            header("Location: " . urldecode($_POST['return']));
                        }
                    }
                }
            }
        }
    }
}
Beispiel #2
0
function fof_mark_read($user_id, $items)
{
    fof_db_mark_read($user_id, $items);
}