|
|
@ -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,43 +45,34 @@
|
|
|
|
$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"],
|
|
|
|
$content_preview = truncate_string(
|
|
|
|
$line["content_preview"], $line["link"],
|
|
|
|
strip_tags($line["content_preview"]), 100, '...');
|
|
|
|
$entry_timestamp, $line["author"], $entry_tags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (count($article_filters) != 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$content_preview = truncate_string(
|
|
|
|
|
|
|
|
strip_tags($line["content_preview"]), 100, '...');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($line["feed_title"])
|
|
|
|
if ($line["feed_title"])
|
|
|
|
$feed_title = $line["feed_title"];
|
|
|
|
$feed_title = $line["feed_title"];
|
|
|
|
|
|
|
|
|
|
|
|
print "<tr>";
|
|
|
|
print "<tr>";
|
|
|
|
|
|
|
|
|
|
|
|
print "<td width='5%' align='center'><input
|
|
|
|
print "<td width='5%' align='center'><input
|
|
|
|
dojoType=\"dijit.form.CheckBox\" checked=\"1\"
|
|
|
|
dojoType=\"dijit.form.CheckBox\" checked=\"1\"
|
|
|
|
disabled=\"1\" type=\"checkbox\"></td>";
|
|
|
|
disabled=\"1\" type=\"checkbox\"></td>";
|
|
|
|
print "<td>";
|
|
|
|
print "<td>";
|
|
|
|
|
|
|
|
|
|
|
|
print $line["title"];
|
|
|
|
print $line["title"];
|
|
|
|
print " (";
|
|
|
|
print " (";
|
|
|
|
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++;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($found >= 30)
|
|
|
|
$found++;
|
|
|
|
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>";
|
|
|
|