|
|
@ -33,6 +33,16 @@ class Pref_Filters extends Protected_Handler {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
$feed = -4;
|
|
|
|
$feed = -4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$regexp_valid = preg_match('/' . $filter['reg_exp'] . '/',
|
|
|
|
|
|
|
|
$filter['reg_exp']) !== FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print __("Articles matching this filter:");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"inactiveFeedHolder\">";
|
|
|
|
|
|
|
|
print "<table width=\"100%\" cellspacing=\"0\" id=\"prefErrorFeedList\">";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($regexp_valid) {
|
|
|
|
|
|
|
|
|
|
|
|
$feed_title = getFeedTitle($this->link, $feed);
|
|
|
|
$feed_title = getFeedTitle($this->link, $feed);
|
|
|
|
|
|
|
|
|
|
|
|
$qfh_ret = queryFeedHeadlines($this->link, $cat_filter ? $cat_id : $feed,
|
|
|
|
$qfh_ret = queryFeedHeadlines($this->link, $cat_filter ? $cat_id : $feed,
|
|
|
@ -44,11 +54,6 @@ class Pref_Filters extends Protected_Handler {
|
|
|
|
$articles = array();
|
|
|
|
$articles = array();
|
|
|
|
$found = 0;
|
|
|
|
$found = 0;
|
|
|
|
|
|
|
|
|
|
|
|
print __("Articles matching this filter:");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<div class=\"inactiveFeedHolder\">";
|
|
|
|
|
|
|
|
print "<table width=\"100%\" cellspacing=\"0\" id=\"prefErrorFeedList\">";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while ($line = db_fetch_assoc($result)) {
|
|
|
|
while ($line = db_fetch_assoc($result)) {
|
|
|
|
|
|
|
|
|
|
|
|
$entry_timestamp = strtotime($line["updated"]);
|
|
|
|
$entry_timestamp = strtotime($line["updated"]);
|
|
|
@ -83,6 +88,11 @@ class Pref_Filters extends Protected_Handler {
|
|
|
|
print "<tr><td align='center'>" .
|
|
|
|
print "<tr><td align='center'>" .
|
|
|
|
__("No articles matching this filter has been found.") . "</td></tr>";
|
|
|
|
__("No articles matching this filter has been found.") . "</td></tr>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
print "<tr><td align='center' class='error'>" .
|
|
|
|
|
|
|
|
__("Invalid regular expression.") . "</td></tr>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "</table>";
|
|
|
|
print "</table>";
|
|
|
|
print "</div>";
|
|
|
|
print "</div>";
|
|
|
|