diff options
author | Matt Katz <[email protected]> | 2010-04-09 19:48:31 -0400 |
---|---|---|
committer | Matt Katz <[email protected]> | 2010-04-09 19:48:31 -0400 |
commit | e0dc56d4668afb759b8cdd8cbd7ee6094917b673 (patch) | |
tree | e3a0b52521e5e12ef7ff9ab92cb5572f651aa3c8 | |
parent | 03b7473df4fe70fc9d634ee32ad67735d5dfc752 (diff) |
added function for publish_opml
-rw-r--r-- | functions.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 1133f925b..78adfdbcb 100644 --- a/functions.php +++ b/functions.php @@ -5732,6 +5732,22 @@ return $url_path; } + function opml_publish_url($link){ + $url_path = ""; + + + if ($_SERVER['HTTPS'] != "on") { + $url_path = "http://"; + } else { + $url_path = "https://"; + } + + $url_path .= $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); + $url_path .= "/opml.php?op=publish&key=" . + get_pref($link, "_PREFS_PUBLISH_KEY", $_SESSION["uid"]); + + return $url_path; + } /** * Purge a feed contents, marked articles excepted. |