From 8801fb017ccd6e2c052ab449eed3ee1eb5b7e982 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Nov 2010 13:11:56 +0300 Subject: replace old-style published feed with universal secretkey-based approach used for all feeds; do not allow user/pass handling in generated feed urls; bump schema --- modules/popup-dialog.php | 60 ++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 27 deletions(-) (limited to 'modules/popup-dialog.php') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 54f4a3e61..61efd4c99 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -158,33 +158,6 @@ return; } - if ($id == "pubUrl") { - - print "
".__('Published Articles')."
"; - print "
"; - - $url_path = article_publish_url($link); - - print __("Your Published articles feed URL is:"); - - print "
"; - print "$url_path"; - print "
"; - - print "
"; - - print " "; - - print ""; - - print "
"; - - return; - } - if ($id == "pubOPMLUrl") { print "
".__('Public OPML URL')."
"; @@ -777,6 +750,39 @@ return; } + if ($id == "generatedFeed") { + + print "
".__('View as RSS')."
"; + print "
"; + + $params = explode(":", $param, 3); + $feed_id = db_escape_string($params[0]); + $is_cat = (bool) $params[1]; + + $key = get_feed_access_key($link, $feed_id, $is_cat); + + $url_path = htmlspecialchars($params[2]) . "&key=" . $key; + + print __("You can view this feed as RSS using the following URL:"); + + print "
"; + print "$url_path"; + print "
"; + + print "
"; + + print " "; + + print ""; + + print "
"; + + return; + } + print "
Internal Error

Unknown dialog $id

-- cgit v1.2.3