mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-08 22:09:14 +00:00
more published feeds work
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user