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>";
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:");
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>";