summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-06-27 11:57:49 -0400
committerjustauser <[email protected]>2013-06-27 11:57:49 -0400
commit7171f32dc5ace4f36e1e70605ae96ebdbdf25c4f (patch)
treee998d4fca34cebe801c982d1d7bf8932adbf218a /classes/pref
parent891e36f57e2e3955a4f13019e8fdc58fce826434 (diff)
parentfac096405338e0f46fa248320318436d862678fc (diff)
Merge remote-tracking branch 'origin' into hookhead
Conflicts: classes/feeds.php fix for merging up to the origin
Diffstat (limited to 'classes/pref')
-rw-r--r--classes/pref/feeds.php23
-rw-r--r--classes/pref/filters.php5
2 files changed, 4 insertions, 24 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index d2dc6f7c3..870c4fed4 100644
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -792,31 +792,10 @@ class Pref_Feeds extends Handler_Protected {
print "<div class=\"dlgSec\">".__("Feed")."</div>";
print "<div class=\"dlgSecCont\">";
- /* Title */
-
- print "<input dojoType=\"dijit.form.ValidationTextBox\"
- disabled=\"1\" style=\"font-size : 16px; width : 20em;\" required=\"1\"
- name=\"title\" value=\"\">";
-
- $this->batch_edit_cbox("title");
-
- /* Feed URL */
-
- print "<br/>";
-
- print __('URL:') . " ";
- print "<input dojoType=\"dijit.form.ValidationTextBox\" disabled=\"1\"
- required=\"1\" regExp='^(http|https)://.*' style=\"width : 20em\"
- name=\"feed_url\" value=\"\">";
-
- $this->batch_edit_cbox("feed_url");
-
/* Category */
if (get_pref('ENABLE_FEED_CATS')) {
- print "<br/>";
-
print __('Place in category:') . " ";
print_feed_cat_select("cat_id", false,
@@ -862,7 +841,7 @@ class Pref_Feeds extends Handler_Protected {
$this->batch_edit_cbox("auth_login");
- print "<br/><input dojoType=\"dijit.form.TextBox\" type=\"password\" name=\"auth_pass\"
+ print "<hr/> <input dojoType=\"dijit.form.TextBox\" type=\"password\" name=\"auth_pass\"
placeHolder=\"".__("Password")."\" disabled=\"1\"
value=\"\">";
diff --git a/classes/pref/filters.php b/classes/pref/filters.php
index 099c88252..63318033e 100644
--- a/classes/pref/filters.php
+++ b/classes/pref/filters.php
@@ -590,14 +590,15 @@ class Pref_Filters extends Handler_Protected {
$enabled = checkbox_to_sql_bool($_REQUEST["enabled"]);
$match_any_rule = checkbox_to_sql_bool($_REQUEST["match_any_rule"]);
$title = $this->dbh->escape_string($_REQUEST["title"]);
+ $inverse = checkbox_to_sql_bool($_REQUEST["inverse"]);
$this->dbh->query("BEGIN");
/* create base filter */
$result = $this->dbh->query("INSERT INTO ttrss_filters2
- (owner_uid, match_any_rule, enabled, title) VALUES
- (".$_SESSION["uid"].",$match_any_rule,$enabled, '$title')");
+ (owner_uid, match_any_rule, enabled, title, inverse) VALUES
+ (".$_SESSION["uid"].",$match_any_rule,$enabled, '$title', $inverse)");
$result = $this->dbh->query("SELECT MAX(id) AS id FROM ttrss_filters2
WHERE owner_uid = ".$_SESSION["uid"]);