From e4f4b46f9d5d42dc53c4e2c5489da31a8ce10c26 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 9 Aug 2007 13:45:30 +0100 Subject: published feeds work --- modules/pref-feeds.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'modules/pref-feeds.php') diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 9ef88e8fa..b5070c7e9 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1043,5 +1043,24 @@ class=\"button\" onclick=\"gotoExportOpml()\" value=\"".__('Export OPML')."\">"; + + print "

Published articles

"; + + if (!get_pref($link, "_PREFS_PUBLISH_KEY")) { + set_pref($link, "_PREFS_PUBLISH_KEY", generate_publish_key()); + } + + print "

".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the address specified below.')."

"; + + $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \ + parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); + + $url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY"); + + print "

$url_path

"; + + print "

"; + } ?> -- cgit v1.2.3-54-g00ecf