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

move add_feed_url() to pref_feeds

This commit is contained in:
Andrew Dolgov
2017-05-11 09:07:49 +03:00
parent 6c34ef612c
commit c114a2596f
3 changed files with 9 additions and 15 deletions

View File

@@ -1791,19 +1791,6 @@
}
}
/**
* Compute the Mozilla Firefox feed adding URL from server HOST and REQUEST_URI.
*
* @return string The Mozilla Firefox feed adding URL.
*/
function add_feed_url() {
//$url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
$url_path = get_self_url_prefix() .
"/public.php?op=subscribe&feed_url=%s";
return $url_path;
} // function add_feed_url
function encrypt_password($pass, $salt = '', $mode2 = false) {
if ($salt && $mode2) {
return "MODE2:" . hash('sha256', $salt . $pass);