mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
Merge remote-tracking branch 'origin' into hookhead
Conflicts: classes/feeds.php fix for merging up to the origin
This commit is contained in:
@@ -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=\"\">";
|
||||
|
||||
|
||||
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user