fix OPML publishing (2)

master
Andrew Dolgov 14 years ago
parent e5075c1023
commit f29033f86c

@ -163,6 +163,10 @@
print "<div id=\"infoBoxTitle\">".__('Public OPML URL')."</div>"; print "<div id=\"infoBoxTitle\">".__('Public OPML URL')."</div>";
print "<div class=\"infoBoxContents\">"; 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); $url_path = opml_publish_url($link);
print __("Your Public OPML URL is:"); print __("Your Public OPML URL is:");

@ -1446,11 +1446,6 @@
print "<button onclick=\"gotoExportOpml()\">". print "<button onclick=\"gotoExportOpml()\">".
__('Export OPML')."</button>"; __('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 "<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>"; 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