1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

subscribe to feed: use client dialog

This commit is contained in:
Andrew Dolgov
2021-02-15 15:21:25 +03:00
parent ecb36b6354
commit 6b006a18e7
5 changed files with 106 additions and 103 deletions

View File

@@ -80,18 +80,6 @@ class RPC extends Handler_Protected {
}
}
function addfeed() {
$feed = clean($_REQUEST['feed']);
$cat = clean($_REQUEST['cat']);
$need_auth = isset($_REQUEST['need_auth']);
$login = $need_auth ? clean($_REQUEST['login']) : '';
$pass = $need_auth ? clean($_REQUEST['pass']) : '';
$rc = Feeds::subscribe_to_feed($feed, $cat, $login, $pass);
print json_encode(array("result" => $rc));
}
function togglepref() {
$key = clean($_REQUEST["key"]);
set_pref($key, !get_pref($key));