fix OPML publishing (2)

master
Andrew Dolgov 14 years ago
parent e5075c1023
commit f29033f86c

@ -467,7 +467,7 @@
if ($subop == "regenOPMLKey") {
print "<rpc-reply>";
set_pref($link, " _PREFS_PUBLISH_KEY",
set_pref($link, "_PREFS_PUBLISH_KEY",
sha1(uniqid(rand(), true)), $_SESSION["uid"]);
$new_link = opml_publish_url($link);
print "<link><![CDATA[$new_link]]></link>";

@ -163,6 +163,10 @@
print "<div id=\"infoBoxTitle\">".__('Public OPML URL')."</div>";
print "<div class=\"infoBoxContents\">";
if (!get_pref($link, "_PREFS_PUBLISH_KEY"))
set_pref($link, "_PREFS_PUBLISH_KEY",
sha1(uniqid(rand(), true)));
$url_path = opml_publish_url($link);
print __("Your Public OPML URL is:");

@ -1446,11 +1446,6 @@
print "<button onclick=\"gotoExportOpml()\">".
__('Export OPML')."</button>";
if (!get_pref($link, "_PREFS_OPML_PUBLISH_KEY")){
set_pref($link, "_PREFS_OPML_PUBLISH_KEY",
sha1(uniqid(rand(), true)));
}
print "<p>".__('Your OPML can be published publicly and can be subscribed by anyone who knows the URL below.');
print "<div class=\"insensitive\">" . __("Note: Published OPML does not include your Tiny Tiny RSS settings, feeds that require authentication or feeds hidden from Popular feeds.") . "</div>" . "</p>";

Loading…
Cancel
Save