|
|
@ -12,10 +12,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
$filter["reg_exp"] = $reg_exp;
|
|
|
|
$filter["reg_exp"] = $reg_exp;
|
|
|
|
$filter["action"] = $action_name;
|
|
|
|
$filter["action"] = $action_name;
|
|
|
|
|
|
|
|
$filter["type"] = $type_name;
|
|
|
|
$filter["action_param"] = $action_param;
|
|
|
|
$filter["action_param"] = $action_param;
|
|
|
|
$filter["filter_param"] = $filter_param;
|
|
|
|
$filter["filter_param"] = $filter_param;
|
|
|
|
$filter["inverse"] = sql_bool_to_bool($inverse);
|
|
|
|
$filter["inverse"] = $inverse;
|
|
|
|
|
|
|
|
|
|
|
|
$filters[$type_name] = array($filter);
|
|
|
|
$filters[$type_name] = array($filter);
|
|
|
|
|
|
|
|
|
|
|
@ -27,8 +27,8 @@
|
|
|
|
$feed_title = getFeedTitle($link, $feed);
|
|
|
|
$feed_title = getFeedTitle($link, $feed);
|
|
|
|
|
|
|
|
|
|
|
|
$qfh_ret = queryFeedHeadlines($link, $feed,
|
|
|
|
$qfh_ret = queryFeedHeadlines($link, $feed,
|
|
|
|
300, "", false, false, false,
|
|
|
|
30, "", false, false, false,
|
|
|
|
false, "date_entered DESC", 0, $_SESSION["uid"]);
|
|
|
|
false, "date_entered DESC", 0, $_SESSION["uid"], $filter);
|
|
|
|
|
|
|
|
|
|
|
|
$result = $qfh_ret[0];
|
|
|
|
$result = $qfh_ret[0];
|
|
|
|
|
|
|
|
|
|
|
@ -45,12 +45,6 @@
|
|
|
|
$entry_timestamp = strtotime($line["updated"]);
|
|
|
|
$entry_timestamp = strtotime($line["updated"]);
|
|
|
|
$entry_tags = get_article_tags($link, $line["id"], $_SESSION["uid"]);
|
|
|
|
$entry_tags = get_article_tags($link, $line["id"], $_SESSION["uid"]);
|
|
|
|
|
|
|
|
|
|
|
|
$article_filters = get_article_filters($filters, $line["title"],
|
|
|
|
|
|
|
|
$line["content_preview"], $line["link"],
|
|
|
|
|
|
|
|
$entry_timestamp, $line["author"], $entry_tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (count($article_filters) != 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$content_preview = truncate_string(
|
|
|
|
$content_preview = truncate_string(
|
|
|
|
strip_tags($line["content_preview"]), 100, '...');
|
|
|
|
strip_tags($line["content_preview"]), 100, '...');
|
|
|
|
|
|
|
|
|
|
|
@ -69,19 +63,16 @@
|
|
|
|
print "<b>" . $feed_title . "</b>";
|
|
|
|
print "<b>" . $feed_title . "</b>";
|
|
|
|
print "): ";
|
|
|
|
print "): ";
|
|
|
|
print "<span class=\"insensitive\">" . $content_preview . "</span>";
|
|
|
|
print "<span class=\"insensitive\">" . $content_preview . "</span>";
|
|
|
|
|
|
|
|
print $line["date_entered"];
|
|
|
|
|
|
|
|
|
|
|
|
print "</td></tr>";
|
|
|
|
print "</td></tr>";
|
|
|
|
|
|
|
|
|
|
|
|
$found++;
|
|
|
|
$found++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($found >= 30)
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($found == 0) {
|
|
|
|
if ($found == 0) {
|
|
|
|
print "<tr><td align='center'>" .
|
|
|
|
print "<tr><td align='center'>" .
|
|
|
|
__("No recent articles matching this filter has been found.") . "</td></tr>";
|
|
|
|
__("No articles matching this filter has been found.") . "</td></tr>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "</table>";
|
|
|
|
print "</table>";
|
|
|
|