summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-09 14:09:34 +0100
committerAndrew Dolgov <[email protected]>2007-08-09 14:09:34 +0100
commit945c243e355d8f06779a395bda2f66bb0fd795c2 (patch)
tree340a4bc56045f068b29c71e0b956fb8d4866b8bb /modules
parente4f4b46f9d5d42dc53c4e2c5489da31a8ce10c26 (diff)
more published feeds work
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php17
-rw-r--r--modules/pref-feeds.php2
2 files changed, 18 insertions, 1 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 1e757ca72..ddf33a0df 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -295,6 +295,23 @@
}
+ if ($subop == "regenPubKey") {
+
+ print "<rpc-reply>";
+
+ set_pref($link, "_PREFS_PUBLISH_KEY", generate_publish_key());
+
+ $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \
+ parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
+
+ $new_link = $url_path . "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
+
+ print "<link><![CDATA[$new_link]]></link>";
+
+ print "</rpc-reply>";
+
+ }
+
if ($subop == "logout") {
logout_user();
print_error_xml(6);
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index b5070c7e9..173244245 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -1057,7 +1057,7 @@
$url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
- print "<p><a id=\"pubGenAddress\" target=\"_new\" href=\"$url_path\">$url_path</a></p>";
+ print "<p class=\"small\"><a id=\"pubGenAddress\" target=\"_new\" href=\"$url_path\">$url_path</a></p>";
print "<p><input type=\"submit\" onclick=\"return pubRegenKey()\"
value=\"".__('Generate another address')."\"></p>";