forked from minutils/feed-on-feeds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
view-action.php
53 lines (47 loc) · 945 Bytes
/
view-action.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
*
* view-action.php - marks selected items as read (or unread)
*
*
* Copyright (C) 2004-2007 Stephen Minutillo
* [email protected] - http://minutillo.com/steve/
*
* Distributed under the GPL - see LICENSE
*
*/
include_once("fof-main.php");
while (list ($key, $val) = each ($_POST))
{
$first = false;
if($val == "checked")
{
$key = substr($key, 1);
$items[] = $key;
}
}
if($_REQUEST['deltag'])
{
fof_untag(fof_current_user(), $_REQUEST['deltag']);
}
else if($_POST['feed'])
{
fof_db_mark_feed_read(fof_current_user(), $_POST['feed']);
}
else
{
if($items)
{
if($_POST['action'] == 'read')
{
fof_db_mark_read(fof_current_user(), $items);
}
if($_POST['action'] == 'unread')
{
fof_db_mark_unread(fof_current_user(), $items);
}
}
header("Location: " . urldecode($_POST['return']));
}
?>