From c114a2596f15bedafa0acae68e8d48ad336129c3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 May 2017 09:07:49 +0300 Subject: move add_feed_url() to pref_feeds --- include/functions.php | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 4801876c1..3ea1035cb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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); -- cgit v1.2.3-54-g00ecf